]> git.huck.website - nvim.git/commitdiff
added: ledger highlighting
authorHuck Boles <huck@huck.website>
Sat, 27 Apr 2024 18:10:46 +0000 (11:10 -0700)
committerHuck Boles <huck@huck.website>
Sat, 27 Apr 2024 18:10:46 +0000 (11:10 -0700)
lua/huck/functions.lua

index 0ca30484080582ab7d929b9b3333e61683586125..72ad0f5323e5b10ef640358147ce3839c766a3d2 100644 (file)
@@ -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 = { "*" },