nvim: disable the "Press ENTER or type command to continue" prompt

This commit is contained in:
mequidis
2022-08-02 11:17:20 +03:00
parent 721083a3c1
commit 39e42cde32

View File

@ -3,11 +3,13 @@ vim.opt.autoread = true
vim.opt.clipboard = "unnamedplus" vim.opt.clipboard = "unnamedplus"
vim.opt.conceallevel = 0 vim.opt.conceallevel = 0
vim.opt.hlsearch = false vim.opt.hlsearch = false
vim.opt.laststatus = 3
vim.opt.lazyredraw = true vim.opt.lazyredraw = true
vim.opt.mouse = "a" vim.opt.mouse = "a"
vim.opt.nu = true vim.opt.nu = true
vim.opt.rnu = true vim.opt.rnu = true
vim.opt.scrolloff = 10 vim.opt.scrolloff = 10
vim.opt.shortmess = "aoOtI"
vim.opt.shortmess = "c" vim.opt.shortmess = "c"
vim.opt.showcmd = true vim.opt.showcmd = true
vim.opt.showmode = false vim.opt.showmode = false
@ -15,7 +17,6 @@ vim.opt.sw = 4
vim.opt.swapfile = false vim.opt.swapfile = false
vim.opt.timeoutlen = 500 vim.opt.timeoutlen = 500
vim.opt.ts = 4 vim.opt.ts = 4
vim.opt.laststatus = 3
-- trigger autoread on file change -- trigger autoread on file change
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, { vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {