configuration.nix/home/laptop/programs/neovim/default.nix

49 lines
922 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
let grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [
diff
regex
vimdoc
comment
markdown
ungrammar
gitignore
gitcommit
git_rebase
git_config
gitattributes
dockerfile
];
in
{
2023-10-30 19:03:16 +01:00
imports = [ ./firenvim.nix ./py.nix ./hs.nix ./bash.nix ./nix.nix ./lua.nix ./js.nix ./util.nix ];
2023-09-09 20:24:19 +02:00
programs.neovim = {
enable = true;
viAlias = true;
extraPackages = with pkgs; [
2023-09-10 11:30:47 +02:00
ripgrep
2023-09-09 20:24:19 +02:00
];
plugins = with pkgs.vimPlugins; grammars ++ [
nvim-treesitter
2023-09-09 20:24:19 +02:00
nvim-surround
nvim-ts-autotag
autoclose-nvim
barbar-nvim
cmp-nvim-lsp
comment-nvim
gitsigns-nvim
luasnip
2023-10-01 18:39:33 +02:00
catppuccin-nvim
2023-09-09 20:24:19 +02:00
nvim-cmp
nvim-lspconfig
nvim-web-devicons
plenary-nvim
telescope-nvim
toggleterm-nvim
vim-vinegar
2023-10-01 18:39:33 +02:00
lualine-nvim
2023-09-09 20:24:19 +02:00
];
extraLuaConfig = lib.fileContents ./nvim/default.lua;
2023-09-09 20:24:19 +02:00
};
2023-08-09 22:10:48 +02:00
}