Skip to content

Commit

Permalink
feat(pack): Add quarto language pack (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft authored Jul 13, 2023
1 parent aea716a commit 542dfe4
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/astrocommunity/pack/quarto/README.md
Original file line number Diff line number Diff line change
@@ -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`
46 changes: 46 additions & 0 deletions lua/astrocommunity/pack/quarto/init.lua
Original file line number Diff line number Diff line change
@@ -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,
},
}

0 comments on commit 542dfe4

Please sign in to comment.