diff --git a/lua/ow/core/autocommands.lua b/lua/ow/core/autocommands.lua index b26a968..f005ffc 100644 --- a/lua/ow/core/autocommands.lua +++ b/lua/ow/core/autocommands.lua @@ -56,11 +56,6 @@ vim.api.nvim_create_autocmd("FileType", { desc = "Customize python indentation", pattern = { "python" }, callback = function() - vim.g.python_indent = { - open_paren = 'shiftwidth()', - continue = 'shiftwidth()', - closed_paren_align_last_line = false, - } + vim.opt_local.indentkeys:remove("<:>") end, }) - diff --git a/lua/ow/core/globals.lua b/lua/ow/core/globals.lua index 8f582f3..7749418 100644 --- a/lua/ow/core/globals.lua +++ b/lua/ow/core/globals.lua @@ -12,6 +12,11 @@ vim.g.netrw_sort_sequence = '[\\/]\\s*,*' vim.g.netrw_special_syntax = 1 vim.g.netrw_timefmt = '%d-%m-%Y %H:%M' vim.g.c_syntax_for_h = 1 +vim.g.python_indent = { + open_paren = "shiftwidth()", + continue = "shiftwidth()", + closed_paren_align_last_line = false, +} local termfeatures = vim.g.termfeatures or {} termfeatures.osc52 = false