ソースを参照

make timeoutlen configurable

Chris 4 年 前
コミット
e93dbcf7ae
3 ファイル変更3 行追加1 行削除
  1. 1 0
      lua/lv-globals.lua
  2. 1 1
      lua/settings.lua
  3. 1 0
      lv-settings.lua

+ 1 - 0
lua/lv-globals.lua

@@ -7,6 +7,7 @@ O = {
     number = true,
     relative_number = true,
     shell = 'bash',
+	timeoutlen = 100,
 
     -- @usage pass a table with your desired languages
     treesitter = {

+ 1 - 1
lua/settings.lua

@@ -32,7 +32,7 @@ vim.o.backup = false -- This is recommended by coc
 vim.o.writebackup = false -- This is recommended by coc
 vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
 vim.o.updatetime = 300 -- Faster completion
-vim.o.timeoutlen = 500 -- By default timeoutlen is 1000 ms
+vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms
 vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
 -- vim.o.guifont = "JetBrainsMono\\ Nerd\\ Font\\ Mono:h18"
 -- vim.o.guifont = "Hack\\ Nerd\\ Font\\ Mono"

+ 1 - 0
lv-settings.lua

@@ -12,6 +12,7 @@ O.auto_complete = true
 O.colorscheme = 'lunar'
 O.auto_close_tree = 0
 O.wrap_lines = false
+O.timeoutlen = 100
 
 -- dashboard 
 -- O.dashboard.custom_header = {""}