diff options
author | Yigit Sever | 2022-12-17 17:56:55 +0300 |
---|---|---|
committer | Yigit Sever | 2022-12-17 17:56:55 +0300 |
commit | 8ad6b17614c91bbdf3120324b7176890f1504c2d (patch) | |
tree | fe533642c09de1926f5f28063bfdd8eefeb69db4 | |
parent | 2ef2c8d8d3aab7079d7d27a134a4fc6ee20fde0c (diff) | |
download | dotfiles-8ad6b17614c91bbdf3120324b7176890f1504c2d.tar.gz dotfiles-8ad6b17614c91bbdf3120324b7176890f1504c2d.tar.bz2 dotfiles-8ad6b17614c91bbdf3120324b7176890f1504c2d.zip |
feat(nvim): use plugin which-key
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 4 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 3 | ||||
-rw-r--r-- | .config/nvim/lua/settings.lua | 2 |
3 files changed, 9 insertions, 0 deletions
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() | |||
779 | end) | 779 | end) |
780 | 780 | ||
781 | -- }}} barbar.nvim -- | 781 | -- }}} barbar.nvim -- |
782 | |||
783 | -- which-key {{{ -- | ||
784 | require("which-key").setup {} | ||
785 | -- }}} 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) | |||
61 | } | 61 | } |
62 | use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } | 62 | use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } |
63 | 63 | ||
64 | -- display a popup with possible keybinds | ||
65 | use "folke/which-key.nvim" | ||
66 | |||
64 | -- git integration for buffers | 67 | -- git integration for buffers |
65 | use { | 68 | use { |
66 | 'lewis6991/gitsigns.nvim', | 69 | '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 | |||
65 | o.showmode = false | 65 | o.showmode = false |
66 | -- jump to the matching bracket briefly | 66 | -- jump to the matching bracket briefly |
67 | o.showmatch = true | 67 | o.showmatch = true |
68 | -- wait 500 ms for a mapped sequence to complete | ||
69 | o.timeoutlen = 500 | ||
68 | 70 | ||
69 | -- persistent undo | 71 | -- persistent undo |
70 | o.undofile = true | 72 | o.undofile = true |