diff options
| author | id3nom <45928251+id3nom@users.noreply.github.com> | 2024-09-21 08:06:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-21 20:06:23 +0800 |
| commit | 149c66a3d94cc943815838ca3544d8eef2bfbabc (patch) | |
| tree | 64a36e977f56898bb55b1b97cd08b7d9438585b5 | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar.gz nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar.bz2 nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar.lz nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar.xz nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.tar.zst nvim-lspconfig-149c66a3d94cc943815838ca3544d8eef2bfbabc.zip | |
fix(c3): update c3 root pattern (#3309)
* fix: add C3 library support
fix(c3_lsp): update root directory to be able to handle project in the
following order - a C3 project 'project.json', a library '.c3l' dir,
and ancestor 'git' repo.
---------
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Co-authored-by: glepnir <glephunter@gmail.com>
| -rw-r--r-- | lua/lspconfig/server_configurations/c3_lsp.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lua/lspconfig/server_configurations/c3_lsp.lua b/lua/lspconfig/server_configurations/c3_lsp.lua index 9c2b15da..e1d84aa4 100644 --- a/lua/lspconfig/server_configurations/c3_lsp.lua +++ b/lua/lspconfig/server_configurations/c3_lsp.lua @@ -4,7 +4,7 @@ return { default_config = { cmd = { 'c3lsp' }, root_dir = function(fname) - return util.root_pattern { 'project.json', '.git' }(fname) + return util.root_patttern { 'project.json', 'manifest.json', '.git' }(fname) end, filetypes = { 'c3', 'c3i' }, }, @@ -13,9 +13,6 @@ return { https://github.com/pherrymason/c3-lsp Language Server for c3. - ]], - default_config = { - root_dir = [[root_pattern("project.json", ".git")]], - }, +]], }, } |
