Skip to content

Commit

Permalink
switch to nixd
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Apr 30, 2024
1 parent 4ecd4c6 commit 597ba18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion home/develop/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
neovim
neovim.unwrapped.lua.pkgs.mpack

nil
nixd
rust-analyzer
terraform-lsp
taplo-cli
Expand Down
7 changes: 5 additions & 2 deletions home/develop/neovim/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nixpkgs> { }",
},
formatting = {
command = { "nixpkgs-fmt" }
},
Expand Down

0 comments on commit 597ba18

Please sign in to comment.