From d29235311e3879bc1a1715df076c302e1e20f899 Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Mon, 24 Mar 2025 12:06:37 +0100 Subject: [PATCH] don't specify keymaps and provide more usercommands in the plugins instead --- lua/lazyvim/plugins/extras/lang/quarto.lua | 16 +++++----------- lua/lazyvim/plugins/extras/lsp/otter.lua | 13 ------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/quarto.lua b/lua/lazyvim/plugins/extras/lang/quarto.lua index 1ef57382..c9cbd48f 100644 --- a/lua/lazyvim/plugins/extras/lang/quarto.lua +++ b/lua/lazyvim/plugins/extras/lang/quarto.lua @@ -6,16 +6,10 @@ return { "nvim-treesitter/nvim-treesitter", }, opts = {}, - config = function(opts) - local quarto = require("quarto") - local wk = require("which-key") - quarto.setup(opts) - wk.add({ - { - mode = "n", - { "qp", quarto.quartoPreview, desc = "quarto preview", icon = "" }, - }, - }) - end, }, + recommended = function() + return LazyVim.extras.wants({ + ft = "quarto", + }) + end, } diff --git a/lua/lazyvim/plugins/extras/lsp/otter.lua b/lua/lazyvim/plugins/extras/lsp/otter.lua index 1208f4c3..8cd7a731 100644 --- a/lua/lazyvim/plugins/extras/lsp/otter.lua +++ b/lua/lazyvim/plugins/extras/lsp/otter.lua @@ -5,18 +5,5 @@ return { "nvim-treesitter/nvim-treesitter", }, opts = {}, - config = function(opts) - local otter = require("otter") - local wk = require("which-key") - otter.setup(opts) - wk.add({ - { - mode = "n", - { "o", group = "otter", icon = "🦦" }, - { "oa", otter.activate, desc = "Activate otter", icon = "" }, - { "od", otter.deactivate, desc = "Deactivate otter", icon = "󰒲 " }, - }, - }) - end, }, }