From a9b7ddaeb8c7b021e4d599c58ff769d455403704 Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Thu, 18 Jun 2020 16:22:24 +0200 Subject: [PATCH] feat(neovim): add vim-which-key --- home/editors/neovim.nix | 8 ++++++-- home/editors/which-key.vim | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 home/editors/which-key.vim diff --git a/home/editors/neovim.nix b/home/editors/neovim.nix index 1135ffa..78a556f 100644 --- a/home/editors/neovim.nix +++ b/home/editors/neovim.nix @@ -61,6 +61,7 @@ in vim-surround vim-commentary vim-easymotion + vim-which-key vim-peekaboo vim-gitgutter vim-fugitive @@ -96,8 +97,11 @@ in ale # only used for omnisharp-vim omnisharp-vim ]; - extraConfig = with builtins; readFile ./init.vim + readFile ./coc.vim; - # extraConfig = with builtins; readFile ./init.vim + readFile ./lsp.vim; + extraConfig = with builtins; + readFile ./init.vim + + readFile ./which-key.vim + + readFile ./coc.vim; + # readFile ./lsp.vim; withNodeJs = true; }; diff --git a/home/editors/which-key.vim b/home/editors/which-key.vim new file mode 100644 index 0000000..778264d --- /dev/null +++ b/home/editors/which-key.vim @@ -0,0 +1,6 @@ +nnoremap :WhichKey '' +vnoremap :WhichKeyVisual '' +nnoremap :WhichKey ',' +vnoremap :WhichKeyVisual ',' + +set timeoutlen=100