testing pyright

This commit is contained in:
Arthur Wambst 2025-03-18 23:07:59 +01:00
parent 53218a7cce
commit 89655055e2

View File

@ -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
'';
};
};