How to disable keys option of a plugin? #1677
Answered
by
folke
vunhatchuong
asked this question in
Q&A
-
So for example I add a plugin to do code action {
"rachartier/tiny-code-action.nvim",
dependencies = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-telescope/telescope.nvim" },
},
event = "LspAttach",
keys = {
{
"<leader>ca",
function()
require("tiny-code-action").code_action()
end,
},
},
opts = {},
}, But I already set it in {
"nvimtools/none-ls.nvim",
keys = {
{
"<leader>ca",
vim.lsp.buf.code_action,
mode = { "n", "v" },
desc = "[C]ode [A]ction",
}}} So I want to disable the |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Jul 25, 2024
Replies: 1 comment 2 replies
-
{
"nvimtools/none-ls.nvim",
keys = function() return {} end,
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why would you do that? Just add that extra none-ls spec below tiny-code-acions.
It will override any keys previsoulsy set in a none-ls spec