summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-09-12 22:16:10 +0200
committerLinnnus <[email protected]>2023-09-14 17:31:35 +0200
commit935ad9551eecab0bfecacd94dbc0942e86eb857e (patch)
tree844dbdd470b2e19d5a8093cb616653b60fd4626a /home
parent3ac6c7ab0719183d838f1cbef1173fb75424d9f4 (diff)
Fix pyright-langserver invocation
Diffstat (limited to 'home')
-rw-r--r--home/neovim/lsp.nix6
1 files 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