diff options
| author | 2025-03-06 21:06:39 +0300 | |
|---|---|---|
| committer | 2025-03-06 21:06:39 +0300 | |
| commit | 9dbfef79b78a7fc9a02294c7ca6d0938186d205a (patch) | |
| tree | 9133b206f82e1b8b84ea497bc32a5ce4dfb4d125 /lsp/nixd.lua | |
| parent | feat: finally working LSP (diff) | |
| download | neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.tar.gz neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.tar.bz2 neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.tar.lz neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.tar.xz neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.tar.zst neovim-configuration-9dbfef79b78a7fc9a02294c7ca6d0938186d205a.zip | |
feat: add `nixd` language server
Diffstat (limited to '')
| -rw-r--r-- | lsp/nixd.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lsp/nixd.lua b/lsp/nixd.lua new file mode 100644 index 0000000..3e899c3 --- /dev/null +++ b/lsp/nixd.lua @@ -0,0 +1,21 @@ +return { + cmd = { "nixd" }, + filetypes = { "nix" }, + + settings = { + nixd = { + nixpkgs = { + expr = [[import (builtins.getFlake "]] .. nixCats.extra("nixdExtras.nixpkgs") .. [[") { } ]], + }, + + formatting = { + command = { "nixfmt" }, + }, + + options = { + nixos = { expr = nixCats.extra("nixdExtras.nixos_options") }, + ["home-manager"] = { expr = nixCats.extra("nixdExtras.home_manager_options") }, + }, + }, + }, +} |
