-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.nvim.lua
More file actions
23 lines (22 loc) · 756 Bytes
/
Copy path.nvim.lua
File metadata and controls
23 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h")
vim.lsp.config("nixd", {
settings = {
root_dir = dir,
nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }",
},
formatting = {
command = { "nixfmt" },
},
options = {
nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.orion.options',
},
home_manager = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.orion.options.home-manager.users.type.getSubOptions []',
},
},
},
},
})