From afcce108f72920677a662135bb3db982e0d7ad90 Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Mon, 3 Apr 2023 12:39:50 +0200 Subject: [PATCH] fix kdl not being detected properly --- lua/commands.lua | 2 ++ 1 file changed, 2 insertions(+) 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!'