]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: set timeoutlen to 1s like default
authorSamir Benmendil <me@rmz.io>
Wed, 12 Apr 2023 22:10:26 +0000 (23:10 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 23:08:51 +0000 (23:08 +0000)
My slow brain got used to have this extra little time to think about
what key to hit next.

Maybe 1s is a little long, and I should shorten it a bit, but 300ms was
too short.

nvim/lua/config/options.lua

index 757eeed8e4fa708a597a38456ba41efdd524e77f..1bc95c875dd511292ff456477091fa1d001417f8 100644 (file)
@@ -18,6 +18,7 @@ opt.tabstop = 8
 opt.sidescrolloff = 1
 opt.splitbelow = false
 opt.splitright = true
+opt.timeoutlen = 1000
 
 -- FIXME:
 -- 2. settings I might want to include when disabling options works
@@ -25,7 +26,6 @@ opt.pumblend = 10 -- Popup blend
 opt.pumheight = 10 -- Maximum number of entries in a popup
 opt.showmode = false -- Dont show mode since we have a statusline
 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
-opt.timeoutlen = 300
 opt.updatetime = 200 -- Save swap file and trigger CursorHold
 if vim.fn.has("nvim-0.9.0") == 1 then
   opt.splitkeep = "screen"