mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:54:35 +00:00
Use native nix packages in neovim
This commit is contained in:
parent
af7339c2e7
commit
161b754274
|
@ -1,26 +1,57 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
# TODO: Consider switching to nixvim
|
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
# Packages required for:
|
# Packages required for:
|
||||||
|
#
|
||||||
# - Mason to build various language servers / linters / formatters from source
|
# - Mason to build various language servers / linters / formatters from source
|
||||||
# - Runtime dependencies of plugins / lang servers / ...
|
# - Runtime dependencies of plugins / lang servers / ...
|
||||||
withNodeJs = true;
|
withNodeJs = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
# Tools for building Mason packages
|
||||||
go
|
go
|
||||||
python3
|
python3
|
||||||
rustc
|
rustc
|
||||||
cargo
|
cargo
|
||||||
gcc
|
gcc
|
||||||
|
cmake
|
||||||
|
gnumake
|
||||||
|
|
||||||
|
# lang servers
|
||||||
|
lua-language-server
|
||||||
|
rust-analyzer
|
||||||
|
taplo
|
||||||
|
gopls
|
||||||
|
marksman
|
||||||
|
yaml-language-server
|
||||||
|
ruff
|
||||||
|
neocmakelsp
|
||||||
|
bash-language-server
|
||||||
|
nixd
|
||||||
|
|
||||||
|
# Linters / formatters
|
||||||
|
stylua
|
||||||
|
shfmt
|
||||||
|
gofumpt
|
||||||
|
gotools
|
||||||
|
sqlfluff
|
||||||
|
hadolint
|
||||||
|
markdownlint-cli2
|
||||||
|
nodePackages.prettier
|
||||||
|
shellcheck
|
||||||
|
shfmt
|
||||||
|
alejandra
|
||||||
deadnix
|
deadnix
|
||||||
statix
|
statix
|
||||||
alejandra
|
|
||||||
nixd
|
# Other tools / utilities
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
jq
|
||||||
|
lazygit
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue