From 7fb31270e330f03b19e031d34a010f091c672bf0 Mon Sep 17 00:00:00 2001 From: Jiri Luzny Date: Fri, 22 Mar 2024 07:26:19 +0100 Subject: [PATCH] Addd Gleam lang support --- lua/lazyvim/plugins/extras/lang/gleam.lua | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/gleam.lua diff --git a/lua/lazyvim/plugins/extras/lang/gleam.lua b/lua/lazyvim/plugins/extras/lang/gleam.lua new file mode 100644 index 00000000..f57ae385 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/gleam.lua @@ -0,0 +1,26 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts.ensure_installed) == "table" then + vim.list_extend(opts.ensure_installed, { "gleam" }) + end + end, + }, + + { + "neovim/nvim-lspconfig", + init = function() + require("lspconfig").gleam.setup({}) + end, + }, + + { + "JoosepAlviste/nvim-ts-context-commentstring", + opts = { + languages = { + gleam = "// %s", + }, + }, + }, +}