.dotfiles/configs/nvim/lua/autocommands.lua

29 lines
579 B
Lua
Raw Normal View History

2022-01-26 20:42:58 +01:00
local cmd = vim.cmd
2021-11-10 13:09:54 +01:00
cmd [[
augroup highlight_yank
au!
au TextYankPost * silent! lua vim.highlight.on_yank { timeout = 150 }
augroup END
]]
2022-01-26 20:42:58 +01:00
cmd [[
au ColorScheme * hi Normal ctermbg=none guibg=none
au ColorScheme myspecialcolors hi Normal ctermbg=red guibg=red
]]
2022-03-01 23:25:44 +01:00
2022-03-14 19:21:46 +01:00
cmd [[
augroup filetypedetect
au BufNewFile,BufRead *.frag setl ft=glsl
au BufNewFile,BufRead *.vert setl ft=glsl
augroup END
]]
2022-03-01 23:25:44 +01:00
cmd [[
augroup SaveManualFolds
autocmd!
au BufWinLeave, BufLeave ?* silent! mkview
au BufWinEnter ?* silent! loadview
augroup END
]]