-
Notifications
You must be signed in to change notification settings - Fork 1
/
.nvim.lua
29 lines (29 loc) · 967 Bytes
/
.nvim.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- vim.o.number = false
local nvim_lsp = require("lspconfig")
nvim_lsp.nixd.setup({
cmd = { "nixd" },
settings = {
nixd = {
nixpkgs = {
expr = 'import (builtins.getFlake ("git+file://" + toString ./.)).inputs.nixpkgs { }',
},
formatting = {
command = { "nix fmt" },
},
options = {
nixos = {
expr =
'let flake = builtins.getFlake ("git+file://" + toString ./.); in flake.nixosConfigurations.k-on.options // flake.nixosConfigurations.yu.options',
},
home_manager = {
expr =
'let flake = builtins.getFlake ("git+file://" + toString ./.); in flake.homeConfigurations."ruixi@k-on".options // flake.homeConfigurations."ruixi@yu".options',
},
flake_parts = {
expr =
'let flake = builtins.getFlake ("git+file://" + toString ./.); in flake.debug.options // flake.currentSystem.options',
},
},
},
},
})