-
I have a big YAML file, it opens as a filetype vim.api.nvim_create_autocmd("FileType", {
pattern = "yaml",
command = "syntax off",
}) I also disabled vim's syntax mode, uninstalled |
Beta Was this translation helpful? Give feedback.
Answered by
surmish
Feb 7, 2025
Replies: 1 comment
-
Ended up doing this: vim.api.nvim_create_autocmd("FileType", {
pattern = "yaml",
callback = function()
vim.api.nvim_command("syntax off")
vim.api.nvim_command("set undolevels=-1")
Snacks.indent.disable()
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
surmish
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ended up doing this: