Enable treesitter indenting except for python (ongoing bug), install vim-python-pep8-indent plugin to handle for now
This commit is contained in:
parent
68c99b31d4
commit
30616d36f1
|
@ -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
|
||||
|
||||
|
|
|
@ -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" },
|
||||
},
|
||||
}
|
||||
|
|
5
config/nvim/lua/plugins/vim-python-pep8-indent.lua
Normal file
5
config/nvim/lua/plugins/vim-python-pep8-indent.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'Vimjas/vim-python-pep8-indent',
|
||||
lazy = true,
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
}
|
Loading…
Reference in a new issue