diff options
| author | Seth Flynn <[email protected]> | 2025-01-30 16:22:27 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-01-30 16:22:27 -0500 |
| commit | 20d1328d6f1390ffcd53803f0d56136e1937f9cb (patch) | |
| tree | 63edf02abc3e45ddd6e33829866bc0abcbb46f88 /lua | |
| parent | 1100b058f5d8b0b48d3b16a12c1da37c7b4c713a (diff) | |
lsp: nil -> nixd
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/getchoo/plugins/lsp.lua | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lua/getchoo/plugins/lsp.lua b/lua/getchoo/plugins/lsp.lua index d7bcefc..f62d839 100644 --- a/lua/getchoo/plugins/lsp.lua +++ b/lua/getchoo/plugins/lsp.lua @@ -45,21 +45,29 @@ local lsp_servers = { }, }, - nil_ls = { - binary = "nil", + nim_langserver = { + binary = "nimlangserver", + }, + + nixd = { + binary = "nixd", extraOptions = { settings = { - ["nil"] = { + nixd = { formatting = { command = { "nixfmt" } }, + nixpkgs = { + expr = "import <nixpkgs> { config = { allowUnfree = true; }; overlays = [ ]; }", + }, + options = { + nixos = { + expr = '((import <nixpkgs> { config = { allowUnfree = true; }; overlays = [ ]; }).nixos { }).options', + }, + }, }, }, }, }, - nim_langserver = { - binary = "nimlangserver", - }, - pyright = { extraOptions = { settings = { |
