From 3170f47b5b09413cd08e18a99bab8fb9af4f2794 Mon Sep 17 00:00:00 2001 From: Massolari Date: Thu, 1 Dec 2022 11:53:24 -0300 Subject: fix: move gleam.lua to correct folder (#2279) --- lua/lspconfig/server_configurations/gleam.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lua/lspconfig/server_configurations/gleam.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/gleam.lua b/lua/lspconfig/server_configurations/gleam.lua new file mode 100644 index 00000000..ec5504ce --- /dev/null +++ b/lua/lspconfig/server_configurations/gleam.lua @@ -0,0 +1,25 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'gleam', 'lsp' }, + filetypes = { 'gleam' }, + root_dir = function(fname) + return util.root_pattern('gleam.toml', '.git')(fname) + end, + }, + docs = { + description = [[ +https://github.com/gleam-lang/gleam + +A language server for Gleam Programming Language. +[Installation](https://gleam.run/getting-started/installing/) + +It can be i +]], + default_config = { + cmd = { 'gleam', 'lsp' }, + root_dir = [[root_pattern("gleam.toml", ".git")]], + }, + }, +} -- cgit v1.3.1