nixconf/common/nvim/nvim.nix
2024-10-28 11:00:04 +01:00

31 lines
503 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
];
defaultEditor = true;
viAlias = true;
vimAlias = true;
extraLuaConfig = lib.fileContents ./init.lua;
};
};
}