highlight line cursor is on
This commit is contained in:
parent
d8bbd1551a
commit
51896abd6f
1 changed files with 7 additions and 5 deletions
|
|
@ -47,14 +47,16 @@ vim.opt.undofile = true
|
||||||
-- [[ highlight on yank ]]
|
-- [[ highlight on yank ]]
|
||||||
local highligh_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
local highligh_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
||||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.highlight.on_yank()
|
vim.highlight.on_yank()
|
||||||
end,
|
end,
|
||||||
group = highligh_group,
|
group = highligh_group,
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
vim.opt.completeopt = 'menuone,noselect'
|
vim.opt.completeopt = 'menuone,noselect'
|
||||||
|
|
||||||
vim.opt.breakindent = true
|
vim.opt.breakindent = true
|
||||||
|
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue