From 8ad6b17614c91bbdf3120324b7176890f1504c2d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 17 Dec 2022 17:56:55 +0300 Subject: feat(nvim): use plugin which-key --- .config/nvim/lua/plugin_settings.lua | 4 ++++ .config/nvim/lua/plugins.lua | 3 +++ .config/nvim/lua/settings.lua | 2 ++ 3 files changed, 9 insertions(+) (limited to '.config') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 6b02db4..3f49472 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -779,3 +779,7 @@ nvim_tree_events.subscribe('TreeClose', function() end) -- }}} barbar.nvim -- + +-- which-key {{{ -- +require("which-key").setup {} +-- }}} which-key -- diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index ec03289..6af54ee 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -61,6 +61,9 @@ return require('packer').startup(function(use) } use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } + -- display a popup with possible keybinds + use "folke/which-key.nvim" + -- git integration for buffers use { 'lewis6991/gitsigns.nvim', diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index c874aae..b99eda7 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -65,6 +65,8 @@ o.relativenumber = true o.showmode = false -- jump to the matching bracket briefly o.showmatch = true +-- wait 500 ms for a mapped sequence to complete +o.timeoutlen = 500 -- persistent undo o.undofile = true -- cgit v1.2.3-70-g09d2