Skip to content

Commit

Permalink
fix: fix *.nomad filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys3 committed Oct 14, 2022
1 parent 314e059 commit 84851a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/general.lua
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,15 @@ vim.api.nvim_create_autocmd("FileType", {
end,
})

vim.api.nvim_create_autocmd("BufRead,BufNewFile", {
group = vim.api.nvim_create_augroup("FixNomadFileType", { clear = false }),
pattern = { "*.nomad" },
callback = function()
vim.bo.filetype = "nomad"
-- vim.api.nvim_command "set filetype=nomad"
end,
})

vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("CommentString", { clear = false }),
pattern = { "toml,nomad" },
Expand Down

0 comments on commit 84851a0

Please sign in to comment.