-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: taskylizard <[email protected]>
- Loading branch information
1 parent
245182e
commit 8f1abef
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Astro Language Pack | ||
|
||
This plugin pack does the following: | ||
|
||
- Adds `astro` Treesitter parser | ||
- Adds `astro` language server | ||
- Adds `js-debug-adapter` for debugging | ||
- Adds [nvim-dap-vscode-js](https://github.com/mxsdev/nvim-dap-vscode-js) for debugging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
local utils = require "astrocommunity.utils" | ||
return { | ||
{ | ||
"nvim-treesitter/nvim-treesitter", | ||
opts = function(_, opts) | ||
-- Ensure that opts.ensure_installed exists and is a table or string "all". | ||
if not opts.ensure_installed then | ||
opts.ensure_installed = {} | ||
elseif opts.ensure_installed == "all" then | ||
return | ||
end | ||
-- Add the required file types to opts.ensure_installed. | ||
utils.list_insert_unique(opts.ensure_installed, "astro") | ||
end, | ||
}, | ||
{ | ||
"williamboman/mason-lspconfig.nvim", | ||
opts = function(_, opts) | ||
-- Ensure that opts.ensure_installed exists and is a table. | ||
if not opts.ensure_installed then opts.ensure_installed = {} end | ||
-- Add tsserver to opts.ensure_installed using vim.list_extend. | ||
utils.list_insert_unique(opts.ensure_installed, "astro") | ||
end, | ||
}, | ||
{ | ||
"jay-babu/mason-nvim-dap.nvim", | ||
opts = function(_, opts) | ||
-- Ensure that opts.ensure_installed exists and is a table. | ||
if not opts.ensure_installed then opts.ensure_installed = {} end | ||
-- Add to opts.ensure_installed using table.insert. | ||
utils.list_insert_unique(opts.ensure_installed, "js") | ||
end, | ||
}, | ||
} |