neovim: Use extraPackages for LSP packages

Prevents these packages from "polluting" the global namespace.
This commit is contained in:
Donovan Glover 2024-04-18 12:48:34 -04:00
parent 18e291822c
commit 482c7a18e0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -13,12 +13,10 @@ in
gnumake gnumake
cmake cmake
nil
nixpkgs-fmt nixpkgs-fmt
nixfmt-rfc-style nixfmt-rfc-style
crystal crystal
crystalline
shards shards
nodejs nodejs
@ -27,15 +25,10 @@ in
deno deno
bun bun
biome biome
nodePackages.typescript-language-server
nodePackages."@astrojs/language-server"
nodePackages."@prisma/language-server"
nodePackages.pnpm nodePackages.pnpm
nodePackages.prisma nodePackages.prisma
openssl openssl
pnpm-shell-completion pnpm-shell-completion
tailwindcss-language-server
vscode-langservers-extracted
rustc rustc
rustfmt rustfmt
@ -45,26 +38,17 @@ in
cargo-feature cargo-feature
cargo-tarpaulin cargo-tarpaulin
cargo-edit cargo-edit
rust-analyzer
bacon bacon
clippy clippy
marksman
lua-language-server
texlive.combined.scheme-full texlive.combined.scheme-full
texlab
tectonic tectonic
typst typst
typstfmt typstfmt
typst-lsp
typst-live typst-live
universal-ctags universal-ctags
emmet-language-server
sqlite sqlite
sqlcipher sqlcipher
litecli litecli
@ -102,6 +86,23 @@ in
programs.neovim = { programs.neovim = {
enable = true; enable = true;
extraPackages = with pkgs; [
nodePackages.typescript-language-server
nodePackages."@astrojs/language-server"
nodePackages."@prisma/language-server"
lua-language-server
emmet-language-server
crystalline
marksman
tailwindcss-language-server
vscode-langservers-extracted
rust-analyzer
texlab
typst-lsp
nil
];
extraConfig = /* vim */ '' extraConfig = /* vim */ ''
filetype plugin indent on filetype plugin indent on
set undofile set undofile