Compare commits
2 commits
c775ba3fa5
...
903b70b59d
| Author | SHA1 | Date | |
|---|---|---|---|
| 903b70b59d | |||
| 5a346cf7ea |
2 changed files with 3 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ local python_root_dir = function(fname)
|
||||||
util.path.dirname(fname)
|
util.path.dirname(fname)
|
||||||
end
|
end
|
||||||
|
|
||||||
nvim_lsp.ruff_lsp.setup({
|
nvim_lsp.ruff.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
root_dir = python_root_dir
|
root_dir = python_root_dir
|
||||||
|
|
@ -79,7 +79,7 @@ nvim_lsp.pylsp.setup({
|
||||||
pylsp = {
|
pylsp = {
|
||||||
plugins = {
|
plugins = {
|
||||||
ruff = {
|
ruff = {
|
||||||
enabled = false -- now through ruff_lsp
|
enabled = false -- now through ruff lsp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ vim.o.hidden = true
|
||||||
|
|
||||||
-- folding
|
-- folding
|
||||||
vim.o.foldmethod = 'expr'
|
vim.o.foldmethod = 'expr'
|
||||||
|
vim.o.foldlevel = 99
|
||||||
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
|
|
||||||
-- don't open folds when jumping over one with (, {, [[ or [{
|
-- don't open folds when jumping over one with (, {, [[ or [{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue