From 63cf13d60345b672ca366ba0caba63e696e1f3aa Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 1 Jul 2023 21:25:07 +0900 Subject: [PATCH] Replace vim with neovim --- common/dotfiles/{vim.nix => neovim.nix} | 7 ++++++- users/albert/home.nix | 2 +- users/root/home.nix | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) rename common/dotfiles/{vim.nix => neovim.nix} (84%) diff --git a/common/dotfiles/vim.nix b/common/dotfiles/neovim.nix similarity index 84% rename from common/dotfiles/vim.nix rename to common/dotfiles/neovim.nix index 7c00633f..bf0c1d59 100644 --- a/common/dotfiles/vim.nix +++ b/common/dotfiles/neovim.nix @@ -1,7 +1,12 @@ { config, pkgs, ... }: { # https://nixos.wiki/wiki/Vim - programs.vim = { + programs.vneoim = { enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + plugins = with pkgs.vimPlugins; [ vim-airline YouCompleteMe diff --git a/users/albert/home.nix b/users/albert/home.nix index f3eb97c8..6d1973fd 100644 --- a/users/albert/home.nix +++ b/users/albert/home.nix @@ -3,7 +3,7 @@ imports = [ ./dconf.nix ../../common/dotfiles/git.nix - ../../common/dotfiles/vim.nix + ../../common/dotfiles/neovim.nix ../../common/dotfiles/bash.nix ]; } \ No newline at end of file diff --git a/users/root/home.nix b/users/root/home.nix index 3458f4e2..c6d1f604 100644 --- a/users/root/home.nix +++ b/users/root/home.nix @@ -2,7 +2,7 @@ home.stateVersion = "23.05"; imports = [ ../../common/dotfiles/git.nix - ../../common/dotfiles/vim.nix + ../../common/dotfiles/neovim.nix ../../common/dotfiles/bash.nix ]; } \ No newline at end of file