Aasim-A / scrollEOF.nvim

Scroll past the end of file just like scrolloff option
MIT License
102 stars 3 forks source link

Disable in some filetype. #1

Closed Isrothy closed 1 year ago

Isrothy commented 1 year ago

Can I disable this plugin in some filetype like 'terminal'?

Aasim-A commented 1 year ago

Hi, I have added 2 new settings to disable certain filetypes and modes. I'll make a new release shortly.

With the new option, you can use:

require('scrollEOF').setup({
  disabled_modes = {'t', 'nt'},
})

to disable it in terminal mode and in normal terminal mode. you can find a full list of available modes [here](https://neovim.io/doc/user/builtin.html#mode())

Thanks for the suggestion :+1:

Isrothy commented 1 year ago

Thank you for your update!