summaryrefslogtreecommitdiff
path: root/home/neovim/plugins.nix
blob: 1e0a70734753a4d35baf9dd25859d4261b03d2f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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
      '';
    }
  ];
}