summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/getchoo/plugins/lsp.lua22
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 = {