Confused by when to use config vs opts #2096
Unanswered
tbelvin2000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was setting up my neovim config and doing my best to follow the recommendation to always use opts instead of config when possible.
However, when loading Tree-sitter I ran into issues with it not highlighting python files without me explicitly enabling highlighting using
TSBufEnable highlight.After adding
to the end of my treesitter.lua it seems to work fine.
I am confused as to why this was required, and if I need to do so for all of the plugins where I use opts={...} instead of
config=...and.setup({})as recommended in the documentation.Thanks for any help clarifying this!
Beta Was this translation helpful? Give feedback.
All reactions