Silence :GuessIndent command output?
Closed this issue · 1 comments
heygarrett commented
I disabled the automatic execution of guess-indent and started calling vim.api.nvim_command("GuessIndent")
in one of my own autocmds so I can dynamically adjust listchars
based on the file's indentation.
But now I'm getting messages about the indentation being set (eg, Did set indentation to tabs.
) Is there a way to silence those messages?
heygarrett commented
TIL about silent
, so vim.api.nvim_command("silent GuessIndent")
seems to do the trick. 🤦♂️