From 3e99b68263737f597588721095a948b0eea7386d Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Sun, 5 Apr 2026 15:58:34 +0200 Subject: [PATCH] Added nixd lsp --- hosts/laptop/configuration.nix | 1 + modules/home-manager/neovim.nix | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index f0ad871..30c799d 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -247,6 +247,7 @@ lua-language-server pylint black + nixd ]; # fonts diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 9197967..9f65a00 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -242,7 +242,12 @@ vim.lsp.config("lua_ls", { cmd = { "lua-language-server" }, filetypes = { "lua" usePlaceholders = true, completeUnimported = true, semanticHighlighting = true} -}) + }) + vim.lsp.config("nixd", { + cmd = { "nixd" }, + filetyypes = { "nix" }, + on_attach = on_attach, + }) vim.lsp.config("pylsp", { cmd = { "pylsp" }, filetypes = { "python" }, @@ -258,7 +263,7 @@ vim.lsp.config("pylsp", { }) vim.lsp.config("texlab", { cmd = { "texlab" }, filetypes = { "tex" }, on_attach = on_attach }) -vim.lsp.enable({ "lua_ls", "clangd", "pylsp", "texlab" }) +vim.lsp.enable({ "lua_ls", "clangd", "pylsp", "texlab", "nixd"}) -- ========================= -- DASHBOARD -- =========================