testing pyright
This commit is contained in:
parent
53218a7cce
commit
89655055e2
13
flake.nix
13
flake.nix
@ -28,6 +28,7 @@
|
||||
{
|
||||
environment.systemPackages = [
|
||||
inputs.neovim.packages.${pkgs.system}.neovim
|
||||
pkgs.nodePackages.pyright
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
@ -35,6 +36,18 @@
|
||||
set runtimepath+=${inputs.plugin-dracula}
|
||||
set runtimepath+=${inputs.plugin-lsp}
|
||||
colorscheme dracula
|
||||
|
||||
lua << EOF
|
||||
local lspconfig = require('lspconfig')
|
||||
|
||||
-- Configuration de Pyright pour Python
|
||||
lspconfig.pyright.setup {
|
||||
on_attach = function(client, bufnr)
|
||||
print("LSP started.")
|
||||
end,
|
||||
cmd = {"pyright-langserver", "--stdio"}
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user