2021-02-24 20:52:43 +01:00
|
|
|
-- commands.lua
|
|
|
|
|
2022-10-13 17:31:11 +02:00
|
|
|
vim.cmd 'autocmd! User GoyoEnter Limelight'
|
|
|
|
vim.cmd 'autocmd! User GoyoLeave Limelight!'
|
2021-03-01 17:22:41 +01:00
|
|
|
|
2022-10-13 17:31:11 +02:00
|
|
|
vim.cmd 'autocmd BufRead,BufNewFile *.wiki,*.md,*.tex set wrap'
|
2021-03-01 17:22:41 +01:00
|
|
|
|
2023-04-03 12:39:50 +02:00
|
|
|
vim.cmd 'au BufRead,BufNewFile *.kdl set filetype=kdl'
|
|
|
|
|
2022-10-13 17:31:11 +02:00
|
|
|
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
|
|
|
|
|
|
|
|
vim.cmd 'command W :execute \':silent w !sudo tee % > /dev/null\' | :edit!'
|