fix(python): improve indent handling
This commit is contained in:
@@ -56,11 +56,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
desc = "Customize python indentation",
|
desc = "Customize python indentation",
|
||||||
pattern = { "python" },
|
pattern = { "python" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.g.python_indent = {
|
vim.opt_local.indentkeys:remove("<:>")
|
||||||
open_paren = 'shiftwidth()',
|
|
||||||
continue = 'shiftwidth()',
|
|
||||||
closed_paren_align_last_line = false,
|
|
||||||
}
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ vim.g.netrw_sort_sequence = '[\\/]\\s*,*'
|
|||||||
vim.g.netrw_special_syntax = 1
|
vim.g.netrw_special_syntax = 1
|
||||||
vim.g.netrw_timefmt = '%d-%m-%Y %H:%M'
|
vim.g.netrw_timefmt = '%d-%m-%Y %H:%M'
|
||||||
vim.g.c_syntax_for_h = 1
|
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 {}
|
local termfeatures = vim.g.termfeatures or {}
|
||||||
termfeatures.osc52 = false
|
termfeatures.osc52 = false
|
||||||
|
|||||||
Reference in New Issue
Block a user