better neovim config for python

This commit is contained in:
Julien Malka 2023-01-20 01:28:17 +01:00
parent a1c2699143
commit c6188f62a5
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -34,14 +34,20 @@ with lib;
enable = true;
settings = {
coc.preferences.formatOnSaveFiletypes = [ "nix" "rust" "sql" "python" ];
languageserver = {
nix = {
command = "rnix-lsp";
filetypes = [
"nix"
];
languageserver =
{
python = {
command = "pyright";
filetypes = [ "py" "python" ];
};
nix = {
command = "rnix-lsp";
filetypes = [
"nix"
];
};
};
};
};
};
@ -81,6 +87,7 @@ with lib;
vim-scriptease
semshi
coc-prettier
coc-pyright
rust-vim
];