new neovim configs

This commit is contained in:
Juan Wu 2023-07-17 13:32:24 -04:00
commit 1898ac5c10
20 changed files with 466 additions and 110 deletions

View file

@ -42,3 +42,19 @@ vim.opt.termguicolors = true -- good shit, just take it
-- activate persistent undo
vim.opt.undofile = true
-- [[ highlight on yank ]]
local highligh_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highligh_group,
pattern = '*',
})
vim.opt.completeopt = 'menuone,noselect'
vim.opt.breakindent = true