fix `/number` showing on search and preview in oil

This commit is contained in:
fiplox 2023-01-25 08:48:02 +01:00
parent 6135a22b88
commit 05819ed0c8
2 changed files with 5 additions and 3 deletions

View File

@ -54,7 +54,7 @@ opt.iskeyword:prepend { '-' }
opt.inccommand = 'nosplit' opt.inccommand = 'nosplit'
opt.completeopt = { 'menu', 'menuone', 'noselect' } opt.completeopt = { 'menu', 'menuone', 'noselect' }
opt.timeoutlen = 300 opt.timeoutlen = 300
opt.conceallevel = 0 opt.conceallevel = 3
opt.concealcursor = 'n' opt.concealcursor = 'n'
opt['foldenable'] = false opt['foldenable'] = false
-- opt.fillchars = 'vert:▏' -- opt.fillchars = 'vert:▏'

View File

@ -15,7 +15,9 @@ function M.config()
-- "mtime", -- "mtime",
}, },
-- Buffer-local options to use for oil buffers -- Buffer-local options to use for oil buffers
buf_options = {}, buf_options = {
buflisted = false,
},
-- Window-local options to use for oil buffers -- Window-local options to use for oil buffers
win_options = { win_options = {
wrap = false, wrap = false,
@ -25,7 +27,7 @@ function M.config()
spell = false, spell = false,
list = false, list = false,
conceallevel = 3, conceallevel = 3,
concealcursor = 'n', concealcursor = 'nvic',
}, },
-- Restore window options to previous values when leaving an oil buffer -- Restore window options to previous values when leaving an oil buffer
restore_win_options = true, restore_win_options = true,