Skip to content

Correct way to add configs #2815

Closed Answered by siduck
parthshahp asked this question in Q&A
Apr 30, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

@parthshahp look at the plugin examples here https://nvchad.com/docs/config/plugins/

so for small changes or changes which dont have any function call , use the opts as table, else use opts as a function ( for cmp's case )

or you could do within the config function itself

     { 
           "blabla cmp", 
            config = function(_, opts)
                     opts.blablabla -- change the opts table by LUA!!
                     
                    require("cmp").setup(opts)
              end
       }

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@parthshahp
Comment options

@siduck
Comment options

@parthshahp
Comment options

@siduck
Comment options

Answer selected by siduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants