diff --git a/lua/lspconfig/server_configurations/tea_leaves.lua b/lua/lspconfig/server_configurations/tea_leaves.lua new file mode 100644 index 0000000000..d1e2c18c48 --- /dev/null +++ b/lua/lspconfig/server_configurations/tea_leaves.lua @@ -0,0 +1,30 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { + 'tea-leaves', + -- Uncomment to enable logging in $HOME/.cache/tea-leaves + -- "--log-mode=by_proj_path", + -- Optionally also increase log level + -- "--verbose=true", + }, + filetypes = { + 'teal', + }, + root_dir = util.root_pattern 'tlconfig.lua', + }, + docs = { + description = [[ +https://github.com/svermeulen/tea-leaves + +Install with: +``` +luarocks install tea-leaves +``` +]], + default_config = { + root_dir = [[root_pattern("tlconfig.lua")]], + }, + }, +}