diff --git a/templates/nvim/lua/lsp.lua.j2 b/templates/nvim/lua/lsp.lua.j2 index a5ce5de..77782d1 100644 --- a/templates/nvim/lua/lsp.lua.j2 +++ b/templates/nvim/lua/lsp.lua.j2 @@ -64,7 +64,7 @@ local python_root_dir = function(fname) util.path.dirname(fname) end -nvim_lsp.ruff_lsp.setup({ +nvim_lsp.ruff.setup({ on_attach = on_attach, capabilities = capabilities, root_dir = python_root_dir @@ -79,7 +79,7 @@ nvim_lsp.pylsp.setup({ pylsp = { plugins = { ruff = { - enabled = false -- now through ruff_lsp + enabled = false -- now through ruff lsp } } } diff --git a/templates/nvim/lua/options.lua.j2 b/templates/nvim/lua/options.lua.j2 index 3cf2b6d..f04251f 100644 --- a/templates/nvim/lua/options.lua.j2 +++ b/templates/nvim/lua/options.lua.j2 @@ -20,6 +20,7 @@ vim.o.hidden = true -- folding vim.o.foldmethod = 'expr' +vim.o.foldlevel = 99 vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- don't open folds when jumping over one with (, {, [[ or [{