From 5812210216c1d534e731bac99dc76ea4158d722d Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Thu, 21 Dec 2023 02:14:57 +0530 Subject: [PATCH] feat(pack): Add crystal pack (#690) feat(pack): crystal pack --- lua/astrocommunity/pack/crystal/README.md | 7 +++++++ lua/astrocommunity/pack/crystal/init.lua | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 lua/astrocommunity/pack/crystal/README.md create mode 100644 lua/astrocommunity/pack/crystal/init.lua 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, + }, +}