Not gook big commit...

This commit is contained in:
Yorick Barbanneau 2022-04-15 16:32:43 +02:00
parent f1b7a59595
commit 6829f75639
10 changed files with 162 additions and 61 deletions

View file

@ -34,10 +34,20 @@ vim.cmd('colorscheme base16-classic-dark')
vim.cmd('au BufWinLeave *.* mkview')
vim.cmd('au BufWinEnter *.* silent! loadview')
-- inoremap <silent><expr><tab> pumvisible()? "\<c-n>" : "\<tab>"
-- inoremap <silent><expr><s-tab> pumvisible()? "\<c-p>" : "\<s-tab>"
-- Diagnostic settings
--
-- diagnostic windows must be float
vim.diagnostic.config {
virtual_text = false,
signs = false,
underline = true,
}
-- You will likely want to reduce updatetime which affects CursorHold
-- note: this setting is global and should be set only once
vim.o.updatetime = 250
vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
-- Autotype
vim.cmd('au BufRead,BufNewFile *.md setlocal textwidth=80')