From a05f8d1e2c5d7a0e71e44b3a28e2b6bd311bd01b Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Tue, 27 Aug 2024 21:07:50 +0800 Subject: [PATCH] fix: tea-leaves was renamed and replaced teal-language-server (#3285) --- .../server_configurations/tea_leaves.lua | 31 ------------------- .../server_configurations/teal_ls.lua | 14 +++++---- 2 files changed, 8 insertions(+), 37 deletions(-) delete mode 100644 lua/lspconfig/server_configurations/tea_leaves.lua diff --git a/lua/lspconfig/server_configurations/tea_leaves.lua b/lua/lspconfig/server_configurations/tea_leaves.lua deleted file mode 100644 index 8367b54cc4..0000000000 --- a/lua/lspconfig/server_configurations/tea_leaves.lua +++ /dev/null @@ -1,31 +0,0 @@ -local util = require 'lspconfig.util' - -return { - default_config = { - cmd = { - 'tea-leaves', - }, - filetypes = { - 'teal', - }, - root_dir = util.root_pattern 'tlconfig.lua', - }, - docs = { - description = [[ -https://github.com/svermeulen/tea-leaves - -Install with: -``` -luarocks install tea-leaves -``` - -Optional Command Args: -* "--log-mode=by_date" - Enable logging in $HOME/.cache/tea-leaves. Log name will be date + pid of process -* "--log-mode=by_proj_path" - Enable logging in $HOME/.cache/tea-leaves. Log name will be project path + pid of process -* "--verbose=true" - Increases log level. Does nothing unless log-mode is set -]], - default_config = { - root_dir = [[root_pattern("tlconfig.lua")]], - }, - }, -} diff --git a/lua/lspconfig/server_configurations/teal_ls.lua b/lua/lspconfig/server_configurations/teal_ls.lua index b554addab5..04ba9381ec 100644 --- a/lua/lspconfig/server_configurations/teal_ls.lua +++ b/lua/lspconfig/server_configurations/teal_ls.lua @@ -4,14 +4,11 @@ return { default_config = { cmd = { 'teal-language-server', - -- use this to enable logging in /tmp/teal-language-server.log - -- "logging=on", }, filetypes = { 'teal', - -- "lua", -- Also works for lua, but you may get type errors that cannot be resolved within lua itself }, - root_dir = util.root_pattern('tlconfig.lua', '.git'), + root_dir = util.root_pattern 'tlconfig.lua', }, docs = { description = [[ @@ -19,11 +16,16 @@ https://github.com/teal-language/teal-language-server Install with: ``` -luarocks install --dev teal-language-server +luarocks install teal-language-server ``` + +Optional Command Args: +* "--log-mode=by_date" - Enable logging in $HOME/.cache/teal-language-server. Log name will be date + pid of process +* "--log-mode=by_proj_path" - Enable logging in $HOME/.cache/teal-language-server. Log name will be project path + pid of process +* "--verbose=true" - Increases log level. Does nothing unless log-mode is set ]], default_config = { - root_dir = [[root_pattern("tlconfig.lua", ".git")]], + root_dir = [[root_pattern("tlconfig.lua")]], }, }, }