From e5f0c35b5a37431ce7cca46850e41da37878ed75 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Thu, 11 Jul 2024 12:52:37 -0500 Subject: [PATCH] Add neovim --- vim.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vim.nix b/vim.nix index 397df79..edc0816 100644 --- a/vim.nix +++ b/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 = "," + ''; + }; }