From 1891b02d9d50e935739fdaff6095b04a7760bf99 Mon Sep 17 00:00:00 2001 From: Jiri Luzny Date: Thu, 6 Jun 2024 13:23:29 +0200 Subject: [PATCH] feat(extras): added gleam lang support (#2802) Added [Gleam lang](https://gleam.run/) support. --------- Co-authored-by: Folke Lemaitre --- lua/lazyvim/plugins/extras/lang/gleam.lua | 24 +++++++++++++++++++++++ 1 file changed, 24 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..fe0172cd --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/gleam.lua @@ -0,0 +1,24 @@ +return { + recommended = { + ft = "gleam", + root = "gleam.toml", + }, + + { + "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", + opts = { + servers = { + gleam = {}, + }, + }, + }, +}