nvim: use dedicated variable for CursorHold time
This commit is contained in:
parent
f7da1d9062
commit
dbd3eb7db3
@ -17,6 +17,7 @@ require('packer').startup(function(use)
|
||||
-- settings
|
||||
use { 'https://github.com/owozsh/amora' }
|
||||
use { 'https://github.com/editorconfig/editorconfig-vim' }
|
||||
use { 'https://github.com/antoinemadec/FixCursorHold.nvim' }
|
||||
|
||||
-- filetypes
|
||||
use {
|
||||
|
@ -15,7 +15,6 @@ local options = {
|
||||
shiftwidth = 4, -- 1 indentation = 4 spaces
|
||||
completeopt = 'menu,menuone,noselect', -- completion popup
|
||||
autochdir = true, -- change workir to current file dir
|
||||
updatetime = 500, -- fire CursorHold autocommand event
|
||||
cmdheight = 2, -- message area size
|
||||
mouse = '', -- make use of mouse in these modes
|
||||
pumheight = 10, -- maximum entries in popup menu
|
||||
@ -28,6 +27,9 @@ for k, v in pairs(options) do
|
||||
vim.o[k] = v
|
||||
end
|
||||
|
||||
-- fire CursorHold autocommand event (FixCursorHold.nvim)
|
||||
vim.g.cursorhold_updatetime = 500
|
||||
|
||||
vim.api.nvim_create_user_command('Hv', 'vertical help <args>', {
|
||||
nargs = 1, complete = 'help'
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user