From 935ad9551eecab0bfecacd94dbc0942e86eb857e Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 12 Sep 2023 22:16:10 +0200 Subject: Fix pyright-langserver invocation --- home/neovim/lsp.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/neovim/lsp.nix b/home/neovim/lsp.nix index 4708f13..4712348 100644 --- a/home/neovim/lsp.nix +++ b/home/neovim/lsp.nix @@ -51,7 +51,7 @@ -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { - pyright = { cmd = { "${pkgs.pyright}/bin/pyright-langserver" } }, + pyright = { cmd = { "${pkgs.pyright}/bin/pyright-langserver", "--stdio" } }, rnix = { cmd = { "${pkgs.rnix-lsp}/bin/rnix-lsp" } }, denols = { init_options = { @@ -74,9 +74,9 @@ }, }; for server, config in pairs(servers) do - -- set common options + -- set common options config.on_attach = on_attach; - config.debounce_text_changes = 150; + config.debounce_text_changes = 150; lspconfig[server].setup(config) end -- cgit v1.2.3