Skip to content

Commit

Permalink
feat(pack): Add crystal pack (#690)
Browse files Browse the repository at this point in the history
feat(pack): crystal pack
  • Loading branch information
taskylizard authored Dec 20, 2023
1 parent bb32d33 commit 5812210
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/pack/crystal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Crystal Language Pack

This plugin pack does the following:

- Adds `vim-crystal/vim-crystal` for syntax highlighting and snippets
- Adds `crystalline` language server
- Adds `codelldb` for debugging
17 changes: 17 additions & 0 deletions lua/astrocommunity/pack/crystal/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
vim.filetype.add { extension = { cr = "crystal" } }
local utils = require "astronvim.utils"

return {
{
"vim-crystal/vim-crystal",
ft = { "crystal" },
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "crystalline") end,
},
{
"jay-babu/mason-nvim-dap.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "codelldb") end,
},
}

0 comments on commit 5812210

Please sign in to comment.