chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.
MIT License
788 stars 40 forks source link

Ignore Terminal Windows #47

Open prdanelli opened 2 years ago

prdanelli commented 2 years ago

Hello, I'm having an issue with Rnvim which, I believe, uses the terminal. When marks is enabled, it seems to add a mark to the window:

image

Do you know if there is a way to exclude the internal terminal windows? I tried looking for a filetype to exclude, but there doesn't seem to be one.

chentoast commented 2 years ago

The first option would be to set the excluded_filetypes key in the setup function. You can check the ft of the current buffer by running :echo &ft. If that doesn’t work, then you might have to set up an autocommand and manually toggle the buffer signs via :MarksToggleSigns. Check the documentation for more info.