From: Huck Boles Date: Sat, 27 Apr 2024 18:10:46 +0000 (-0700) Subject: added: ledger highlighting X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=683c9ad6d3ec126bd0aa8eec0c0a347545297b58;p=nvim.git added: ledger highlighting --- diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 0ca3048..72ad0f5 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -17,6 +17,14 @@ vim.api.nvim_create_autocmd("BufWinEnter", { end, }) +-- ledger highlighting +vim.api.nvim_create_autocmd("BufWinEnter", { + pattern = { "*.dat" }, + callback = function() + vim.bo.filetype = 'ledger' + end, +}) + -- check template folder and if a template.[filetype] exists use it vim.api.nvim_create_autocmd("BufNewFile", { pattern = { "*" },