This commit is contained in:
Christian Nieves
2023-12-05 00:03:14 -06:00
parent 7372a53107
commit 0ef4e8a5bf
5 changed files with 13 additions and 4 deletions

View File

@ -83,7 +83,16 @@ return {
require("config.lsp-google").setup(capabilities)
-- Godot
lspconfig.gdscript.setup({})
local godot_handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
underline = true,
}),
}
lspconfig.gdscript.setup({
flags = {
debounce_text_changes = 2000, -- Wait 5 seconds before sending didChange
},
})
vim.cmd([[autocmd FileType gdscript setlocal commentstring=#\ %s]])
vim.cmd([[autocmd FileType gdscript setlocal autoindent noexpandtab tabstop=4 shiftwidth=4]])