diff --git a/lua/astrocommunity/pack/crystal/README.md b/lua/astrocommunity/pack/crystal/README.md new file mode 100644 index 000000000..a10016ab5 --- /dev/null +++ b/lua/astrocommunity/pack/crystal/README.md @@ -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 diff --git a/lua/astrocommunity/pack/crystal/init.lua b/lua/astrocommunity/pack/crystal/init.lua new file mode 100644 index 000000000..4ae895c2e --- /dev/null +++ b/lua/astrocommunity/pack/crystal/init.lua @@ -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, + }, +}