mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: qol on lualine, bufferline, use nixd as nix lsp
This commit is contained in:
parent
6fb3efd1dc
commit
cd9c91b9bc
11 changed files with 76 additions and 67 deletions
22
home/dot_config/nvim/lsp/nixd.lua
Normal file
22
home/dot_config/nvim/lsp/nixd.lua
Normal 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',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue