fix: tea-leaves was renamed and replaced teal-language-server (#3285)

This commit is contained in:
Steve Vermeulen 2024-08-27 21:07:50 +08:00 committed by GitHub
parent 8a3610d29d
commit a05f8d1e2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 37 deletions

View file

@ -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")]],
},
},
}

View file

@ -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")]],
},
},
}