Skip to content

Commit

Permalink
feat(pack): Add cue language pack (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacro authored Aug 23, 2023
1 parent a1206a4 commit 17feb7e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/astrocommunity/pack/cue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Cue Language Pack

**Requirements:** `cue` must be in your `PATH` and executable

This plugin pack does the following:

- Adds `cue` Treesitter parsers
- Adds `dagger` language server
- Adds the following `null-ls` sources:
- [cueimports](https://github.com/asdine/cueimports)
21 changes: 21 additions & 0 deletions lua/astrocommunity/pack/cue/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local utils = require "astronvim.utils"
return {
-- Cue support
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "cue")
end
end,
},

{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "cueimports" }) end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "dagger") end,
},
}

0 comments on commit 17feb7e

Please sign in to comment.