From 31f604f8f68db6bfc7e0f07187ac4c5c0970451e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 18 Dec 2025 15:51:17 +0100 Subject: [PATCH] feat(lsp): add terraformls, rust_analyzer, configure nixd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for Terraform and Rust language servers, and configure nixd with home-manager options for better Nix completions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- dots/.config/nvim/after/plugin/lspconfig.lua | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/after/plugin/lspconfig.lua b/dots/.config/nvim/after/plugin/lspconfig.lua index 662665c..3103301 100644 --- a/dots/.config/nvim/after/plugin/lspconfig.lua +++ b/dots/.config/nvim/after/plugin/lspconfig.lua @@ -65,8 +65,26 @@ local servers = { }, }, -- marksman = {}, - nixd = {}, + -- TODO: This completion ain't working yet + nixd = { + nixpkgs = { + expr = "import { }", + }, + formatting = { + command = { "nixfmt" }, + }, + options = { + home_manager = { + expr = '(builtins.getFlake "/home/hektor/.config/home-manager").homeConfigurations.work.options', + }, + }, + }, pyright = {}, + rust_analyzer = { + settings = { + ["rust-analyzer"] = {}, + }, + }, -- tsserver = {}, svelte = { plugin = { @@ -76,6 +94,7 @@ local servers = { }, }, tailwindcss = {}, + terraformls = {}, vtsls = { -- ts_ls = {}, vtsls = {