Open bojanmilevski opened 1 year ago
It also makes sense for using NeoVim as a pager:
For example, when opening man
or info
pages, or when used as git diff
/git rebase
, etc editor, you got the idea.
See this issue for a discussion on how to use the opt
to lazy load plugins per filetype: https://github.com/wbthomason/packer.nvim/discussions/946
In a sense this is the opposite of what you are asking for, but it might get you the behavior you want in the end.
It would be nice to exclude certain plugins from being loaded in certain files and/or filetypes. This would greatly increase performance and usability in lower-spec machines (like the Raspberry Pi for example), where resources are limited.
In my everyday-to-day use, I find myself constantly editing
*.txt
files - such astodo.txt
,shopping-cart.txt
oralbums.txt
, where most of my plugins are just not necessary. I certainly do not needlsp-config
loading in these files.To further explain my request, here is a very dumb, yet practical example of what I mean:
This would mean that any file ending in
.txt
(regex'd) would not loadnvim-lspconfig
and any file namedmain.rs
(no hate to rustaceans), would not loadLuaSnip
, but both would loadtelescope.nvim
.Looking forward on collaborating and contributing!