nixconf/common/nvim/nvim.nix
2025-08-15 20:37:47 +02:00

34 lines
551 B
Nix

{
pkgs,
lib,
config,
...
}:
{
options.modules.apps.neovim = {
enableLanguages = lib.mkEnableOption "enable LSP languages";
};
config = {
programs.neovim = {
enable = true;
extraPackages = with pkgs; [
ripgrep
luarocks
gnumake
wget
tree-sitter
fd
nixfmt-rfc-style
gcc
typst
python313Full
];
defaultEditor = true;
viAlias = true;
vimAlias = true;
extraLuaConfig = lib.fileContents ./init.lua;
};
};
}