Add neovim
This commit is contained in:
parent
242324dfd8
commit
e5f0c35b5a
13
vim.nix
13
vim.nix
|
@ -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 = ","
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue