From 8bf058e8b1805afa46cd0a8914b9a19dab4cd1a0 Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Tue, 7 Jan 2025 12:52:56 +0100 Subject: [PATCH] feat: quarto and otter extras --- lua/lazyvim/plugins/extras/lang/quarto.lua | 21 +++++++++++++++++++++ lua/lazyvim/plugins/extras/lsp/otter.lua | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/quarto.lua create mode 100644 lua/lazyvim/plugins/extras/lsp/otter.lua diff --git a/lua/lazyvim/plugins/extras/lang/quarto.lua b/lua/lazyvim/plugins/extras/lang/quarto.lua new file mode 100644 index 00000000..1ef57382 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/quarto.lua @@ -0,0 +1,21 @@ +return { + { + "quarto-dev/quarto-nvim", + dependencies = { + "jmbuhr/otter.nvim", + "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, + }, +} diff --git a/lua/lazyvim/plugins/extras/lsp/otter.lua b/lua/lazyvim/plugins/extras/lsp/otter.lua new file mode 100644 index 00000000..1208f4c3 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lsp/otter.lua @@ -0,0 +1,22 @@ +return { + { + "jmbuhr/otter.nvim", + dependencies = { + "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, + }, +}