diff --git a/flake.nix b/flake.nix index ee6a796..de853e5 100644 --- a/flake.nix +++ b/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 ''; }; };