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 = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
vim
wget wget
curl curl
git git
btop btop
ripgrep ripgrep
vim
]; ];
gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary gnome-console ]; gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary gnome-console ];
}; };

View file

@ -12,6 +12,17 @@
programs = { programs = {
home-manager.enable = true; 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 = { alacritty = {
enable = true; enable = true;
settings = (import ./alacritty.nix); settings = (import ./alacritty.nix);
@ -54,7 +65,7 @@
enable = true; enable = true;
userName = "Pim Kunis"; userName = "Pim Kunis";
userEmail = "pim@kunis.nl"; 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()