organize lsp stuff
This commit is contained in:
@ -8,7 +8,7 @@ return {
|
|||||||
"AndrewRadev/tagalong.vim",
|
"AndrewRadev/tagalong.vim",
|
||||||
{ "nvim-lua/plenary.nvim", lazy = false },
|
{ "nvim-lua/plenary.nvim", lazy = false },
|
||||||
{ "squk/java-syntax.vim", ft = "java" },
|
{ "squk/java-syntax.vim", ft = "java" },
|
||||||
{ "udalov/kotlin-vim", ft = "kotlin" },
|
{ "udalov/kotlin-vim", event = "VeryLazy", ft = "kotlin" },
|
||||||
{ "ray-x/go.nvim", ft = "go" },
|
{ "ray-x/go.nvim", ft = "go" },
|
||||||
{ "ray-x/guihua.lua", ft = "go" },
|
{ "ray-x/guihua.lua", ft = "go" },
|
||||||
{ "andymass/vim-matchup", event = "VimEnter" },
|
{ "andymass/vim-matchup", event = "VimEnter" },
|
||||||
@ -39,18 +39,6 @@ return {
|
|||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kosayoda/nvim-lightbulb",
|
|
||||||
opts = {
|
|
||||||
autocmd = { enabled = true },
|
|
||||||
virtual_text = {
|
|
||||||
enabled = true,
|
|
||||||
text = " ",
|
|
||||||
hl = "DiagnosticWarn",
|
|
||||||
},
|
|
||||||
sign = { enabled = false },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"ntpeters/vim-better-whitespace",
|
"ntpeters/vim-better-whitespace",
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"luozhiya/lsp-virtual-improved.nvim",
|
|
||||||
event = { "LspAttach" },
|
|
||||||
config = function()
|
|
||||||
require("lsp-virtual-improved").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
event = { "LspAttach" },
|
event = { "LspAttach" },
|
||||||
@ -41,22 +34,6 @@ return {
|
|||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- local colors = {
|
|
||||||
-- Error = { primary = "#f28b82", secondary = "#ab0101", invert = true },
|
|
||||||
-- Warning = { primary = "#f2b066", secondary = "#ab7a00", invert = false },
|
|
||||||
-- Hint = { primary = "#b4f9f8", secondary = "#008080", invert = true },
|
|
||||||
-- Info = { primary = "#abf2b0", secondary = "#008080", invert = true },
|
|
||||||
-- Other = { primary = "#abf2b0", secondary = "#008080", invert = true },
|
|
||||||
-- }
|
|
||||||
-- for type, colorpair in pairs(colors) do
|
|
||||||
-- local hl = "DiagnosticVirtualText" .. type
|
|
||||||
-- if not colorpair.invert then
|
|
||||||
-- vim.api.nvim_set_hl(0, hl, { fg = colorpair.primary, bg = colorpair.secondary })
|
|
||||||
-- else
|
|
||||||
-- vim.api.nvim_set_hl(0, hl, { fg = colorpair.secondary, bg = colorpair.primary })
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
|
|
||||||
require("lsp_lines").setup()
|
require("lsp_lines").setup()
|
||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
|
@ -9,6 +9,25 @@ local deps = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"luozhiya/lsp-virtual-improved.nvim",
|
||||||
|
event = { "LspAttach" },
|
||||||
|
config = function()
|
||||||
|
require("lsp-virtual-improved").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kosayoda/nvim-lightbulb",
|
||||||
|
opts = {
|
||||||
|
autocmd = { enabled = true },
|
||||||
|
virtual_text = {
|
||||||
|
enabled = true,
|
||||||
|
text = " ",
|
||||||
|
hl = "DiagnosticWarn",
|
||||||
|
},
|
||||||
|
sign = { enabled = false },
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
build = "make install_jsregexp",
|
build = "make install_jsregexp",
|
||||||
|
Reference in New Issue
Block a user