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