From 5a346cf7ead63a0824c822918567a714e810e39e Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Mon, 25 Nov 2024 21:36:40 +0100 Subject: [PATCH 1/2] Update ruff lsp reference --- templates/nvim/lua/lsp.lua.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } } From 903b70b59df823ee97186d4822480ed17cc6561b Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Mon, 25 Nov 2024 21:37:00 +0100 Subject: [PATCH 2/2] Open all folds by default --- templates/nvim/lua/options.lua.j2 | 1 + 1 file changed, 1 insertion(+) 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 [{