2023-10-08 14:57:57 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
defaultEditor = true;
|
2023-10-13 09:13:15 +00:00
|
|
|
extraLuaConfig = builtins.readFile ./neovim.lua;
|
|
|
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
nil
|
|
|
|
nodePackages.pyright
|
|
|
|
neofetch
|
|
|
|
gopls
|
|
|
|
terraform-ls
|
|
|
|
];
|
|
|
|
|
2023-10-08 14:57:57 +00:00
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
nvim-lspconfig
|
|
|
|
gruvbox-nvim
|
|
|
|
leap-nvim
|
|
|
|
telescope-nvim
|
|
|
|
vim-commentary
|
|
|
|
vim-sleuth
|
|
|
|
gitsigns-nvim
|
|
|
|
nvim-cmp
|
|
|
|
cmp-nvim-lsp
|
|
|
|
friendly-snippets
|
|
|
|
neodev-nvim
|
2023-10-13 10:26:56 +00:00
|
|
|
luasnip
|
|
|
|
cmp_luasnip
|
2023-10-16 16:53:25 +00:00
|
|
|
nvim-treesitter.withAllGrammars
|
2023-10-23 17:44:56 +00:00
|
|
|
bufferline-nvim
|
2023-10-08 14:57:57 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.git.extraConfig.core.editor = "nvim";
|
|
|
|
};
|
|
|
|
}
|