install neovim

This commit is contained in:
nixos 2023-09-10 18:25:10 +02:00
parent 1a86120bab
commit 9e75af3939
3 changed files with 14 additions and 2 deletions

View file

@ -49,12 +49,12 @@ in
environment = {
systemPackages = with pkgs; [
vim
wget
curl
git
btop
ripgrep
vim
];
gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary gnome-console ];
};

View file

@ -12,6 +12,17 @@
programs = {
home-manager.enable = true;
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
mason-nvim
];
extraLuaConfig = builtins.readFile ./neovim.lua;
};
alacritty = {
enable = true;
settings = (import ./alacritty.nix);
@ -54,7 +65,7 @@
enable = true;
userName = "Pim Kunis";
userEmail = "pim@kunis.nl";
extraConfig.core.editor = "vim";
extraConfig.core.editor = "nvim";
};
};

1
neovim.lua Normal file
View file

@ -0,0 +1 @@
require("mason").setup()