summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/config
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-26 17:21:27 +0200
committerKyren223 <Kyren223@proton.me>2024-12-26 17:21:27 +0200
commit8bb6abc6d44981e98288f3d749ae5c82040d98db (patch)
tree5afcb1f37f226f1ee5c37f582304a9cd88a0a93b /.config/nvim/lua/custom/config
parent3137d24a623e1f96837ebf4f48fded1fff26d4d5 (diff)
Finally added a formatter and LSP for nix
Diffstat (limited to '.config/nvim/lua/custom/config')
-rw-r--r--.config/nvim/lua/custom/config/language-servers.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/config/language-servers.lua b/.config/nvim/lua/custom/config/language-servers.lua
index edb6d44..7cc4946 100644
--- a/.config/nvim/lua/custom/config/language-servers.lua
+++ b/.config/nvim/lua/custom/config/language-servers.lua
@@ -137,4 +137,21 @@ return {
},
},
}, -- zig
+ nixd = {
+ mason = false,
+ cmd = { 'nixd' },
+ settings = {
+ nixd = {
+ nixpkgs = { expr = 'import <nixpkgs> { }' },
+ options = {
+ nixos = {
+ expr = '(builtins.getFlake "/home/kyren/dotfiles/flake.nix").nixosConfigurations.laptop-nixos.options',
+ },
+ home_manager = {
+ expr = '(builtins.getFlake "/home/kyren/dotfiles/flake.nix").homeConfigurations.laptop-nixos.options',
+ },
+ },
+ },
+ },
+ },
}