40 lines
686 B
Nix
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;
|
|
};
|
|
}
|