dotfiles/.config/nvim/init.vim

25 lines
586 B
VimL
Raw Normal View History

2021-04-18 18:51:03 +02:00
lua require("init")
2016-10-26 11:59:39 +02:00
2021-04-18 18:51:03 +02:00
function s:recompile_plugins()
luafile %
PackerCompile
endfunction
2021-04-18 18:51:03 +02:00
"" Autocommands
2020-11-15 14:30:52 +01:00
2021-04-18 18:51:03 +02:00
augroup recompile_plugins
autocmd!
autocmd BufWritePost plugins.lua call <SID>recompile_plugins()
augroup END
2021-04-19 15:28:25 +02:00
2021-04-20 18:10:56 +02:00
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
2021-04-19 15:28:25 +02:00
"" Temporary hacks
" Show syntax highlight group in the status bar
map ,H :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
map ,L :luafile %<CR>