nvim: qol on lualine, bufferline, use nixd as nix lsp

This commit is contained in:
js0ny 2025-10-29 04:55:00 +00:00
parent 6fb3efd1dc
commit cd9c91b9bc
11 changed files with 76 additions and 67 deletions

View file

@ -0,0 +1,22 @@
---@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',
},
},
},
}