feat: Adds leaf autocommand to set the filetype to html for better highlight groups.

This commit is contained in:
2025-01-05 13:14:26 -05:00
parent 15b1aded69
commit 95139d50ba
3 changed files with 31 additions and 14 deletions

View File

@@ -33,6 +33,14 @@ createCmd("BufWritePre", {
group = vim.api.nvim_create_augroup("GoFormat", defaultGroupOptions),
})
-- Leaf
createCmd({ "BufRead", "BufNewFile" }, {
pattern = "*.leaf",
callback = function()
vim.opt.filetype = "html"
end,
})
vim.api.nvim_exec2(
[[
autocmd BufNewFile,BufRead /private/**/gopass** setlocal noswapfile nobackup noundofile shada=""