mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat: quarto and otter extras
This commit is contained in:
parent
c8159b6abf
commit
8bf058e8b1
2 changed files with 43 additions and 0 deletions
21
lua/lazyvim/plugins/extras/lang/quarto.lua
Normal file
21
lua/lazyvim/plugins/extras/lang/quarto.lua
Normal file
|
|
@ -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",
|
||||||
|
{ "<leader>qp", quarto.quartoPreview, desc = "quarto preview", icon = "" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
22
lua/lazyvim/plugins/extras/lsp/otter.lua
Normal file
22
lua/lazyvim/plugins/extras/lsp/otter.lua
Normal file
|
|
@ -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",
|
||||||
|
{ "<leader>o", group = "otter", icon = "🦦" },
|
||||||
|
{ "<leader>oa", otter.activate, desc = "Activate otter", icon = "" },
|
||||||
|
{ "<leader>od", otter.deactivate, desc = "Deactivate otter", icon = " " },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue