diff options
| author | Pengfei Jiang <jiangpengfei@caicloud.io> | 2023-08-15 14:21:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 14:21:00 +0800 |
| commit | a687466cfe8556abb067386d61c8ad6a39df9b75 (patch) | |
| tree | 4efe9c902dfc2b6482bdf061a95c75fc9ed05971 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar.gz nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar.bz2 nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar.lz nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar.xz nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.tar.zst nvim-lspconfig-a687466cfe8556abb067386d61c8ad6a39df9b75.zip | |
feat: add thrift-language-server support (#2764)
* feat: add thrift-language-server support
* fix: fix lint
---------
Co-authored-by: 江鹏飞 <jiangpengfei.jiangpf@bytedance.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/thriftls.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/thriftls.lua b/lua/lspconfig/server_configurations/thriftls.lua new file mode 100644 index 00000000..eaf807a7 --- /dev/null +++ b/lua/lspconfig/server_configurations/thriftls.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'thriftls' }, + filetypes = { 'thrift' }, + root_dir = util.root_pattern '.thrift', + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/joyme123/thrift-ls + +you can install thriftls by mason or download binary here: https://github.com/joyme123/thrift-ls/releases +]], + default_config = { + root_dir = [[root_pattern(".thrift")]], + }, + }, +} |
