Skip to content

Commit

Permalink
chore: cleanup filetype specific autocmds
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 18, 2024
1 parent b48f1bd commit 155429a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lua/nxvim/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ nx.au({

-- Filetype Specific ----------------------------------------------------------
{ "FileType", pattern = "markdown", command = "setlocal wrap ts=2 sw=2" },
-- { "FileType", pattern = "markdown", callback = function() vim.wo.foldlevel = 99 end },
{ "FileType", pattern = "teal", once = true, command = "LspToggleAutoFormat silent" },
{ "FileType", pattern = "python", command = "setlocal noet ts=3 sw=3" },
{ "FileType", pattern = "vb", command = "setlocal et ts=4 sw=4" },
{ { "BufNewFile", "BufRead" }, pattern = { "*.njk", "*.vto" }, command = "set ft=html" },
{ { "BufNewFile", "BufRead" }, pattern = { "*.v", "*.vsh", ".vv" }, command = "set ft=v" },
{ "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" },
})

nx.au({ -- Remember folds
Expand Down

0 comments on commit 155429a

Please sign in to comment.