NMAC427 / guess-indent.nvim

Automatic indentation style detection for Neovim
MIT License
413 stars 8 forks source link

Silence :GuessIndent command output? #6

Closed heygarrett closed 2 years ago

heygarrett commented 2 years ago

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 2 years ago

TIL about silent, so vim.api.nvim_command("silent GuessIndent") seems to do the trick. 🤦‍♂️