mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
22 lines
558 B
Lua
22 lines
558 B
Lua
---@type vim.lsp.Config
|
|
return {
|
|
cmd = { "nixd" },
|
|
root_markers = { "flake.nix", "flake.lock" },
|
|
filetypes = { "nix" },
|
|
settings = {
|
|
nixpkgs = {
|
|
expr = "import <nixpkgs> { }",
|
|
},
|
|
formatting = {
|
|
command = { "alejandra" },
|
|
},
|
|
options = {
|
|
nixos = {
|
|
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options',
|
|
},
|
|
home_manager = {
|
|
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options',
|
|
},
|
|
},
|
|
},
|
|
}
|