Add neovim

This commit is contained in:
Leonora Tindall 2024-07-11 12:52:37 -05:00
parent 242324dfd8
commit e5f0c35b5a
1 changed files with 12 additions and 1 deletions

13
vim.nix
View File

@ -2,14 +2,25 @@
{
programs.vim = {
enable = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
vim-nix
rust-vim
fzf-vim
sleuth
];
extraConfig = ''
source ${./rcfiles/vimrc}
'';
};
programs.neovim = {
enable = true;
defaultEditor = true;
extraLuaConfig = ''
vim.opt.ignorecase = true -- search case insensitive
vim.opt.smartcase = true -- search matters if capital letter
vim.opt.inccommand = "split" -- "for incsearch while sub
vim.g.mapleader = ","
'';
};
}