config-perso/modules/neovim/default.nix

33 lines
568 B
Nix
Raw Normal View History

2024-05-14 19:21:19 +02:00
{
pkgs,
config,
lib,
...
}:
{
2024-02-19 23:18:13 +01:00
programs.neovim = {
enable = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
nvim-treesitter.withAllGrammars
vim-nix
telescope-nvim
todo-comments-nvim
gitsigns-nvim
];
extraPackages = with pkgs; [
git
ripgrep
fd
gcc
];
extraConfig = builtins.readFile ./nvimrc;
extraLuaConfig = builtins.readFile ./nvim.lua;
vimAlias = true;
viAlias = true;
};
}