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

@ -2,6 +2,7 @@ local use_google = require("utils").use_google
return {
{
"Exafunction/codeium.nvim",
commit = "b1ff0d6c993e3d87a4362d2ccd6c660f7444599f",
event = "VeryLazy",
-- event = "InsertEnter",
cond = not use_google(),

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]])

View File

@ -21,12 +21,10 @@ return {
end,
dependencies = {
"nvim-lua/plenary.nvim",
"mrbjarksen/neo-tree-diagnostics.nvim",
"MunifTanjim/nui.nvim",
},
keys = {
{ "<C-n>", ":Neotree filesystem reveal toggle reveal_force_cwd<cr>", desc = "Open NeoTree" },
{ "<Leader>xd", "<Cmd>Neotree diagnostics reveal bottom<CR>" },
},
},
}

View File

@ -72,6 +72,5 @@ return {
},
})
end,
lazy = false,
},
}

View File

@ -16,6 +16,8 @@ return {
})
end,
keys = {
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
{ "<leader>xd", "<cmd>:Trouble workspace<CR>" },
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
},