From 89655055e239e49b7bca6c09d14d25dd331393f4 Mon Sep 17 00:00:00 2001 From: Arthur Wambst Date: Tue, 18 Mar 2025 23:07:59 +0100 Subject: [PATCH] testing pyright --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 ''; }; };