From e6952fe070ff31e8e6c3d77907681601e6da30e6 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Wed, 23 Aug 2023 11:48:10 -0600 Subject: add gdscript support --- lua/plugins/lsp.lua | 5 ++++- lua/plugins/treesitter.lua | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 2945003..7b806e6 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -7,7 +7,7 @@ local servers = { workspace = { checkThirdParty = false }, telemetry = { enable = false }, }, - }, + } } return { @@ -77,5 +77,8 @@ return { } end, }) + + -- At the end, add GDscript support, which is only supported by lspconfig itself + lspconfig.gdscript.setup({capabilities = capabilities}) end, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 8ad7fb1..fe79b6a 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -21,7 +21,9 @@ return { 'markdown', 'markdown_inline', 'php', - 'sql' + 'sql', + 'gdscript', + 'godot_resource' }, auto_install = false, highlight = { enable = true }, -- cgit v1.2.3-54-g00ecf