dotfiles/modules/home/rsydn/programs/neovim.nix
2025-10-27 14:33:13 +07:00

40 lines
686 B
Nix

{ pkgs, ... }: {
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withPython3 = true;
withRuby = true;
extraPackages = with pkgs; [
# LSP servers installed via Nix
lua-language-server
nil
pyright
nodePackages.typescript
nodePackages.typescript-language-server
rust-analyzer
gopls
clang-tools
# Formatters
stylua
nixfmt
# Tools
ripgrep
fd
git
ast-grep
];
};
# Symlink LazyVim config to ~/.config/nvim
xdg.configFile."nvim" = {
source = ./nvim;
recursive = true;
};
}