diff --git a/lua/commands.lua b/lua/commands.lua index 367e904..4e596c0 100644 --- a/lua/commands.lua +++ b/lua/commands.lua @@ -5,6 +5,8 @@ vim.cmd 'autocmd! User GoyoLeave Limelight!' vim.cmd 'autocmd BufRead,BufNewFile *.wiki,*.md,*.tex set wrap' +vim.cmd 'au BufRead,BufNewFile *.kdl set filetype=kdl' + vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]] vim.cmd 'command W :execute \':silent w !sudo tee % > /dev/null\' | :edit!'