From 0ef4e8a5bf579fe1594097a66d134f3674e1d410 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Tue, 5 Dec 2023 00:03:14 -0600 Subject: [PATCH] umm --- vim/.vim/lua/plugins/codeium.lua | 1 + vim/.vim/lua/plugins/lsp.lua | 11 ++++++++++- vim/.vim/lua/plugins/neotree.lua | 2 -- vim/.vim/lua/plugins/nvim-treesitter.lua | 1 - vim/.vim/lua/plugins/trouble.lua | 2 ++ 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/vim/.vim/lua/plugins/codeium.lua b/vim/.vim/lua/plugins/codeium.lua index 5bd0528..b68ac24 100644 --- a/vim/.vim/lua/plugins/codeium.lua +++ b/vim/.vim/lua/plugins/codeium.lua @@ -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(), diff --git a/vim/.vim/lua/plugins/lsp.lua b/vim/.vim/lua/plugins/lsp.lua index 188d0af..9901632 100644 --- a/vim/.vim/lua/plugins/lsp.lua +++ b/vim/.vim/lua/plugins/lsp.lua @@ -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]]) diff --git a/vim/.vim/lua/plugins/neotree.lua b/vim/.vim/lua/plugins/neotree.lua index 9c85c4f..72bcc9e 100644 --- a/vim/.vim/lua/plugins/neotree.lua +++ b/vim/.vim/lua/plugins/neotree.lua @@ -21,12 +21,10 @@ return { end, dependencies = { "nvim-lua/plenary.nvim", - "mrbjarksen/neo-tree-diagnostics.nvim", "MunifTanjim/nui.nvim", }, keys = { { "", ":Neotree filesystem reveal toggle reveal_force_cwd", desc = "Open NeoTree" }, - { "xd", "Neotree diagnostics reveal bottom" }, }, }, } diff --git a/vim/.vim/lua/plugins/nvim-treesitter.lua b/vim/.vim/lua/plugins/nvim-treesitter.lua index 9d97b66..7c596b7 100644 --- a/vim/.vim/lua/plugins/nvim-treesitter.lua +++ b/vim/.vim/lua/plugins/nvim-treesitter.lua @@ -72,6 +72,5 @@ return { }, }) end, - lazy = false, }, } diff --git a/vim/.vim/lua/plugins/trouble.lua b/vim/.vim/lua/plugins/trouble.lua index 07be375..2f52a67 100644 --- a/vim/.vim/lua/plugins/trouble.lua +++ b/vim/.vim/lua/plugins/trouble.lua @@ -16,6 +16,8 @@ return { }) end, keys = { + { "xt", ":Telescope diagnostics" }, + { "xd", ":Trouble workspace" }, { "[g", "lua vim.diagnostic.goto_prev()" }, { "]g", "lua vim.diagnostic.goto_next()" }, },