1
0
Fork 0

nvim: use dedicated variable for CursorHold time

This commit is contained in:
tastytea 2022-08-17 03:51:08 +02:00
parent f7da1d9062
commit dbd3eb7db3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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'
})