mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
some nvim touching
This commit is contained in:
parent
6dd8f632ad
commit
f910f44191
29 changed files with 467 additions and 233 deletions
|
|
@ -6,6 +6,7 @@ local set = vim.opt
|
|||
set.termguicolors = true
|
||||
set.updatetime = 50
|
||||
set.showmode = false -- disable mode in the command line, because i use lualine
|
||||
set.mousemoveevent = true
|
||||
|
||||
--
|
||||
-- Editor settings
|
||||
|
|
@ -14,6 +15,7 @@ set.pumheight = 20
|
|||
set.hlsearch = false
|
||||
set.incsearch = true
|
||||
set.laststatus = 3
|
||||
set.splitkeep = "screen"
|
||||
set.scrolloff=20
|
||||
--vim.opt.sidescrolloff = 8
|
||||
set.cursorline = true
|
||||
|
|
@ -60,3 +62,13 @@ vim.diagnostic.config({
|
|||
source = 'always',
|
||||
},
|
||||
})
|
||||
|
||||
-- Highlight on yank
|
||||
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 = 200 }
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue