2

In many Neovim plugins these days, configuration is done in a new way, and the readme just says to "pass option_name = someval to enable some behaviour". For example, archibate/nvim-gpt, unfortunately to disable keymappings, described as:

Can be disabled by no_default_keymaps = true option in setup.

How do I do that? Is it dependent on the plugin manager in use (I'm using vim-plug)? I have tried:

require'nvim-gpt'.setup({["no_default_keymaps"] = true})
require'nvim-gpt'.setup({{["no_default_keymaps"] = true}})
require'nvim-gpt'.setup({opts = {no_default_keymaps = true}})

I also found some guides which arguably, given the title, should have included this information:

And this one includes one of the attempts I tried above (which doesn't work)

1 Answer 1

3
require'nvim-gpt'.setup {
    no_default_keymaps = true,
}

is the correct way. It is not dependent on the plugin manager.

(my mistake was elsewhere, calling this setup function accidentally from two different place in my vimrc, and hence still defining the keymaps.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.