global/neovim: switch from pyright to pylsp+ruff
This commit is contained in:
parent
0ecb179f26
commit
1cbfff3024
2 changed files with 19 additions and 2 deletions
|
@ -41,6 +41,11 @@
|
||||||
action = "<C-\\><C-n>";
|
action = "<C-\\><C-n>";
|
||||||
mode = "t";
|
mode = "t";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<M-CR>";
|
||||||
|
action.__raw = "vim.lsp.buf.code_action";
|
||||||
|
mode = [ "n" "i" "v" "s" ];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
|
@ -83,7 +88,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nimls.enable = true;
|
nimls.enable = true;
|
||||||
pyright.enable = true;
|
pylsp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
plugins = {
|
||||||
|
ruff = {
|
||||||
|
formatEnabled = true;
|
||||||
|
enable = true;
|
||||||
|
format = [ "I" ];
|
||||||
|
};
|
||||||
|
rope.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
rust-analyzer = {
|
rust-analyzer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
installRustc = false;
|
installRustc = false;
|
||||||
|
|
|
@ -53,8 +53,8 @@ in
|
||||||
pyls-isort
|
pyls-isort
|
||||||
pytest
|
pytest
|
||||||
])
|
])
|
||||||
pyright
|
|
||||||
pipenv
|
pipenv
|
||||||
|
ruff
|
||||||
|
|
||||||
# Racket
|
# Racket
|
||||||
racket
|
racket
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue