diff options
| author | xb-bx <62838816+xb-bx@users.noreply.github.com> | 2024-09-12 09:15:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-12 14:15:03 +0800 |
| commit | fbe3dc60f88c93828e771710e07af1db8700ac53 (patch) | |
| tree | 44c8e9137e850448ef910ba22dcb8d561848e305 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar.gz nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar.bz2 nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar.lz nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar.xz nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.tar.zst nvim-lspconfig-fbe3dc60f88c93828e771710e07af1db8700ac53.zip | |
feat: add c3-lsp support (#3299)
* feat: add c3-lsp support
* fix: merge root_pattern
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/c3_lsp.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/c3_lsp.lua b/lua/lspconfig/server_configurations/c3_lsp.lua new file mode 100644 index 00000000..9c2b15da --- /dev/null +++ b/lua/lspconfig/server_configurations/c3_lsp.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'c3lsp' }, + root_dir = function(fname) + return util.root_pattern { 'project.json', '.git' }(fname) + end, + filetypes = { 'c3', 'c3i' }, + }, + docs = { + description = [[ +https://github.com/pherrymason/c3-lsp + +Language Server for c3. + ]], + default_config = { + root_dir = [[root_pattern("project.json", ".git")]], + }, + }, +} |
