summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-23 11:48:10 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-23 11:48:10 -0600
commite6952fe070ff31e8e6c3d77907681601e6da30e6 (patch)
tree852bc9415ea19bd340803c6c4ad8aa7a1c9c678b
parent013d70b8fc655e8f7cc010c451d8f2be658aaa11 (diff)
add gdscript support
-rw-r--r--lua/plugins/lsp.lua5
-rw-r--r--lua/plugins/treesitter.lua4
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 },