1
0

feat: initial commit; NixOS Era

This commit is contained in:
2025-11-20 22:13:05 +01:00
commit 8d0bddf680
46 changed files with 2044 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
return {
cmd = { 'bash-language-server', 'start' },
filetypes = { 'sh', 'bash' },
}

View File

@@ -0,0 +1,4 @@
return {
cmd = { 'fish-lsp', 'start' },
filetypes = { 'fish' },
}

View File

@@ -0,0 +1,5 @@
return {
cmd = { 'lua-language-server' },
filetypes = { 'lua' },
root_markers = { '.luarc.json', '.luarc.jsonc' },
}

36
pkgs/neovim/lsp/nixd.lua Normal file
View File

@@ -0,0 +1,36 @@
return {
cmd = { 'nixd' },
filetypes = { 'nix' },
root_markers = { { 'configuration.nix', 'flake.nix', 'default.nix' } },
settings = {
nixd = {
options = {
nixos = {
expr = [[
(import <nixpkgs/nixos/lib/eval-config.nix> {
modules = [
<nixos-config>
/etc/nixos/hardware-configuration.nix
];
})
.options
]]
},
['home-manager'] = {
expr = [[
let
pkgs = import <nixpkgs> {};
config = pkgs.callPackage <nixos-config> {};
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${config.system.stateVersion}.tar.gz";
in
(import "${home-manager}/modules" {
inherit pkgs;
configuration = /etc/nixos/home.nix;
})
.options
]]
}
}
}
}
}

View File

@@ -0,0 +1,12 @@
return {
cmd = { 'rust-analyzer' },
filetypes = { 'rust' },
root_markers = { 'Cargo.toml', '.git' },
settings = {
['rust-analyzer'] = {
check = {
command = 'clippy',
},
},
},
}

View File

@@ -0,0 +1,5 @@
return {
cmd = { 'typescript-language-server', '--stdio' },
filetypes = { 'typescript', 'javascript' },
root_markers = { 'package.json', 'tsconfig.json' },
}