Enable treesitter indenting except for python (ongoing bug), install vim-python-pep8-indent plugin to handle for now

This commit is contained in:
Evie Litherland-Smith 2023-03-06 14:56:35 +00:00
parent 68c99b31d4
commit 30616d36f1
3 changed files with 18 additions and 6 deletions

View file

@ -18,12 +18,6 @@ vim.opt.splitright = true
-- Global
vim.g.python3_host_prog = vim.fn.stdpath "config" .. "/.venv/bin/python"
-- vim.g.python_indent = {
-- open_paren = "shiftwidth()",
-- nested_paren = "shiftwidth()",
-- continue = "shiftwidth()",
-- closed_paren_align_last_line = "v:false",
-- }
vim.g.loaded_ruby_provider = 0
vim.g.loaded_perl_provider = 0

View file

@ -4,4 +4,17 @@ return {
additional_vim_regex_highlighting = false,
disable = { "fortran" },
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "gnr",
scope_incremental = "gnc",
node_decremental = "gnm",
},
},
indent = {
enable = true,
disable = { "python" },
},
}

View file

@ -0,0 +1,5 @@
return {
'Vimjas/vim-python-pep8-indent',
lazy = true,
event = { "BufReadPre", "BufNewFile" },
}