diff --git a/nvim/after/lsp/clangd.lua b/nvim/after/lsp/clangd.lua deleted file mode 100644 index e69de29..0000000 diff --git a/nvim/after/lsp/gdscript.lua b/nvim/after/lsp/gdscript.lua index a7695ba..6aeeb8e 100644 --- a/nvim/after/lsp/gdscript.lua +++ b/nvim/after/lsp/gdscript.lua @@ -1,5 +1,7 @@ return { - flags = { - debounce_text_changes = 100, - } + filetypes = { + 'gd', 'gdscript', 'gdscript3' + }, + root_markers = {'project.godot', '.git'}, + cmd = vim.lsp.rpc.connect('127.0.0.1', 6005) } diff --git a/nvim/lua/plugins/lspconfig.lua b/nvim/lua/plugins/lspconfig.lua index 6c94600..0e58f67 100644 --- a/nvim/lua/plugins/lspconfig.lua +++ b/nvim/lua/plugins/lspconfig.lua @@ -43,5 +43,8 @@ return { capabilities = capabilities, on_attach = on_attach, }) + + vim.lsp.config('gdscript', {}) + vim.lsp.enable('gdscript') end } diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index d8313cd..348ee6f 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -12,7 +12,7 @@ return { 'bashls', -- Bash -- 'cfn-lint', -- Cloudformation for AWS 'clangd', -- C/C++ - -- 'gdscript', -- Godot script + -- 'gdtoolkit', -- Godot script -- 'hadolint', -- Dockerfile linting 'intelephense', -- PHP 'lua_ls', -- Lua