diff --git a/home/develop/neovim/default.nix b/home/develop/neovim/default.nix index b8ffcbd..68e240d 100644 --- a/home/develop/neovim/default.nix +++ b/home/develop/neovim/default.nix @@ -13,7 +13,7 @@ neovim neovim.unwrapped.lua.pkgs.mpack - nil + nixd rust-analyzer terraform-lsp taplo-cli diff --git a/home/develop/neovim/nvim/init.lua b/home/develop/neovim/nvim/init.lua index 9334f32..60ef71a 100644 --- a/home/develop/neovim/nvim/init.lua +++ b/home/develop/neovim/nvim/init.lua @@ -177,14 +177,17 @@ elixir.setup { } } -require('lspconfig').nil_ls.setup({ +require('lspconfig').nixd.setup({ autostart = true, capabilities = require('lsp').capabilities(), on_attach = function(client, bufnr) require('lsp').on_attach(client, bufnr) end, settings = { - ['nil'] = { + nixd = { + nixpkgs = { + expr = "import { }", + }, formatting = { command = { "nixpkgs-fmt" } },