Improve neovim-specific configs
This commit is contained in:
parent
531786f609
commit
0b63872d62
7 changed files with 29 additions and 1 deletions
.config/nvim/lua
|
@ -18,6 +18,7 @@ return require('packer').startup(function(use)
|
|||
run = ':TSUpdate'
|
||||
})
|
||||
|
||||
use("github/copilot.vim")
|
||||
use("mbbill/undotree")
|
||||
use("Wansmer/sibling-swap.nvim")
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ vim.opt.undofile = true
|
|||
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.wildmode = "longest,list,full"
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
|
@ -32,3 +33,13 @@ vim.opt.isfname:append("@-@")
|
|||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
group = vim.api.nvim_create_augroup('highlight_yank', {}),
|
||||
desc = 'Hightlight selection on yank',
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
vim.highlight.on_yank { higroup = 'IncSearch', timeout = 250 }
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue