This commit is contained in:
Christian Nieves
2024-01-26 20:30:24 +00:00
parent ae0055a5db
commit 16fb43e7a2
6 changed files with 56 additions and 45 deletions

View File

@ -1,13 +1,5 @@
local use_google = require("utils").use_google
local deps = {
"hrsh7th/nvim-cmp",
"nvim-lua/lsp-status.nvim",
"VonHeikemen/lsp-zero.nvim",
"ray-x/go.nvim",
"ray-x/guihua.lua",
}
return {
{
"luozhiya/lsp-virtual-improved.nvim",
@ -18,6 +10,7 @@ return {
},
{
"kosayoda/nvim-lightbulb",
event = { "LspAttach" },
opts = {
autocmd = { enabled = true },
virtual_text = {
@ -38,6 +31,7 @@ return {
},
{
"hinell/lsp-timeout.nvim",
event = { "LspAttach" },
dependencies = { "neovim/nvim-lspconfig" },
cond = not use_google(),
config = function()
@ -53,7 +47,13 @@ return {
},
{
"neovim/nvim-lspconfig",
dependencies = deps,
dependencies = {
"hrsh7th/nvim-cmp",
"nvim-lua/lsp-status.nvim",
"VonHeikemen/lsp-zero.nvim",
"ray-x/go.nvim",
"ray-x/guihua.lua",
},
keys = {
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },