nixos-laptop/home/neovim/default.nix
2023-10-13 12:26:56 +02:00

40 lines
754 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
];
};
programs.git.extraConfig.core.editor = "nvim";
};
}