fix(python): change indent behavior

This commit is contained in:
2025-03-29 21:57:34 +01:00
parent 10661e0bb4
commit 363c16b338
+12
View File
@@ -61,3 +61,15 @@ vim.api.nvim_create_autocmd("FileType", {
end, end,
}) })
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,
}
end,
})