fix(python): improve indent handling

This commit is contained in:
2025-07-24 07:17:00 +02:00
parent 169408b266
commit 0b23e44d2d
2 changed files with 6 additions and 6 deletions
+1 -6
View File
@@ -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,
})
+5
View File
@@ -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