diff options
Diffstat (limited to 'home/neovim/plugins.nix')
-rw-r--r-- | home/neovim/plugins.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/home/neovim/plugins.nix b/home/neovim/plugins.nix new file mode 100644 index 0000000..89cd6e7 --- /dev/null +++ b/home/neovim/plugins.nix @@ -0,0 +1,28 @@ +# This module sets up and configures various miscellaneous plugins. + +{ pkgs, lib, ... }: + +{ + programs.neovim.plugins = [ + { + plugin = pkgs.vimPlugins.vim-localvimrc; + type = "viml"; + config = '' + let g:localvimrc_persistent = 1 + let g:localvimrc_name = [ "local.vim", "editors/local.vim" ] + ''; + } + { + plugin = pkgs.vimPlugins.vim-sneak; + type = "viml"; + config = '' + let g:sneak#s_next = 1 + let g:sneak#use_ic_scs = 1 + map f <Plug>Sneak_f + map F <Plug>Sneak_F + map t <Plug>Sneak_t + map T <Plug>Sneak_T + ''; + } + ]; +} |