Compare commits

...

2 commits

Author SHA1 Message Date
903b70b59d Open all folds by default 2024-11-25 21:37:00 +01:00
5a346cf7ea Update ruff lsp reference 2024-11-25 21:36:40 +01:00
2 changed files with 3 additions and 2 deletions

View file

@ -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
}
}
}

View file

@ -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 [{