From 73d4c5a37e77931f7518b21640875012700adc61 Mon Sep 17 00:00:00 2001 From: Uzair Aftab Date: Thu, 13 Jul 2023 20:53:41 +0200 Subject: [PATCH] feat(pack): Add quarto language pack --- lua/astrocommunity/pack/quarto/README.md | 9 +++++ lua/astrocommunity/pack/quarto/init.lua | 46 ++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 lua/astrocommunity/pack/quarto/README.md create mode 100644 lua/astrocommunity/pack/quarto/init.lua diff --git a/lua/astrocommunity/pack/quarto/README.md b/lua/astrocommunity/pack/quarto/README.md new file mode 100644 index 000000000..34c11ea64 --- /dev/null +++ b/lua/astrocommunity/pack/quarto/README.md @@ -0,0 +1,9 @@ +# Quarto Language Pack + +**Requirements:** + +This plugin pack does the foolowing: + +- Adds `quarto-nvim` +- Adds `otter.nvim` +- Adds `r`,`python`,`markdown`,`markdown_inline`,`julia`,`bash`,`yaml`,`lua`,`vim`,`query`,`vimdoc`,`latex`,`html`, and `css` parsers to`nvim-treesitter` diff --git a/lua/astrocommunity/pack/quarto/init.lua b/lua/astrocommunity/pack/quarto/init.lua new file mode 100644 index 000000000..b683f72d6 --- /dev/null +++ b/lua/astrocommunity/pack/quarto/init.lua @@ -0,0 +1,46 @@ +local utils = require "astronvim.utils" + +return { + { + "quarto-dev/quarto-nvim", + opts = {}, + dependencies = { + { "hrsh7th/nvim-cmp" }, + { + "jmbuhr/otter.nvim", + dev = false, + opts = { + lsp = { + hover = { + border = require("misc.style").border, + }, + }, + }, + }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + local ensure_installed = { + "r", + "python", + "markdown", + "markdown_inline", + "julia", + "bash", + "yaml", + "lua", + "vim", + "query", + "vimdoc", + "latex", + "html", + "css", + } + if opts.ensure_installed ~= "all" then + opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, ensure_installed) + end + end, + }, +}