diff options
Diffstat (limited to 'dot_config/nvim_new/lsp/gdscript.lua')
| -rw-r--r-- | dot_config/nvim_new/lsp/gdscript.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dot_config/nvim_new/lsp/gdscript.lua b/dot_config/nvim_new/lsp/gdscript.lua new file mode 100644 index 0000000..79fe975 --- /dev/null +++ b/dot_config/nvim_new/lsp/gdscript.lua @@ -0,0 +1,14 @@ +---@brief +--- +--- https://github.com/godotengine/godot +--- +--- Language server for GDScript, used by Godot Engine. + +local port = os.getenv 'GDScript_Port' or '6005' +local cmd = vim.lsp.rpc.connect('127.0.0.1', tonumber(port)) + +return { + cmd = cmd, + filetypes = { 'gd', 'gdscript', 'gdscript3' }, + root_markers = { 'project.godot', '.git' }, +} |
