nixos-laptop/home/neovim/default.nix

41 lines
794 B
Nix

{ pkgs, ... }:
{
config = {
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
extraLuaConfig = builtins.readFile ./neovim.lua;
extraPackages = with pkgs; [
nil
nodePackages.pyright
neofetch
gopls
terraform-ls
];
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
luasnip
cmp_luasnip
nvim-treesitter.withAllGrammars
];
};
programs.git.extraConfig.core.editor = "nvim";
};
}