nixos-configs/home/neovim/default.nix

38 lines
703 B
Nix
Raw Normal View History

2023-10-08 14:57:57 +00:00
{ pkgs, ... }:
{
config = {
home.packages = with pkgs; [
nil
nodePackages.pyright
neofetch
gopls
terraform-ls
2023-10-08 14:57:57 +00:00
];
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
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
];
extraLuaConfig = builtins.readFile ./neovim.lua;
};
programs.git.extraConfig.core.editor = "nvim";
};
}