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