Skip to content

Commit

Permalink
au: optimize filetype setting events
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 25, 2024
1 parent b752121 commit 212bab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/nxvim/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ nx.au({
{ "FileType", pattern = "vb", command = "setlocal et ts=4 sw=4" },
{ "FileType", pattern = "teal", once = true, command = "LspToggleAutoFormat silent" },
{ "FileType", pattern = { "python", "zig" }, command = "setlocal noet ts=3 sw=0" },
{ "BufEnter", pattern = { "*.njk", "*.vto" }, command = "set ft=html" },
{ "BufEnter", pattern = { "*.v_*", "v.mod" }, command = "set ft=v" },
{ "BufRead", pattern = { "*.njk", "*.vto" }, command = "set ft=html" },
{ "BufRead", pattern = { "*.v", "*.v_*", "v.mod" }, command = "set ft=v" },
})

nx.au({ -- Remember folds
Expand Down

0 comments on commit 212bab9

Please sign in to comment.