From fa836d7df961742b8a28e9accebb38e5f4e3bb57 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 26 Feb 2022 13:51:34 +0100 Subject: [PATCH] home: vim: add 'which-key-nvim' --- home/vim/default.nix | 3 +++ home/vim/plugin/settings/which-key.vim | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 home/vim/plugin/settings/which-key.vim diff --git a/home/vim/default.nix b/home/vim/default.nix index 9ef28a0..a15ad6a 100644 --- a/home/vim/default.nix +++ b/home/vim/default.nix @@ -68,6 +68,9 @@ in null-ls-nvim # LSP integration for linters and formatters (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) # Better highlighting plenary-nvim # 'null-ls' dependency + + # UX improvements + which-key-nvim # Show available mappings ]; extraConfig = builtins.readFile ./init.vim; diff --git a/home/vim/plugin/settings/which-key.vim b/home/vim/plugin/settings/which-key.vim new file mode 100644 index 0000000..505bdc4 --- /dev/null +++ b/home/vim/plugin/settings/which-key.vim @@ -0,0 +1,4 @@ +lua << EOF +local wk = require("which-key") +wk.setup() +EOF