lolidk
This commit is contained in:
@ -1,4 +1,28 @@
|
|||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"luozhiya/lsp-virtual-improved.nvim",
|
||||||
|
event = { "LspAttach" },
|
||||||
|
config = function()
|
||||||
|
require("lsp-virtual-improved").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
event = { "LspAttach" },
|
||||||
|
config = function()
|
||||||
|
-- Diagnostics
|
||||||
|
require("trouble").setup({
|
||||||
|
use_diagnostic_signs = true, -- enabling this will use the signs defined in your lsp client
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
||||||
|
{ "<leader>xw", "<cmd>:Trouble workspace_diagnostics<CR>" },
|
||||||
|
{ "<leader>xd", "<cmd>:Trouble document_diagnostics<CR>" },
|
||||||
|
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
||||||
|
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Maan2003/lsp_lines.nvim",
|
"Maan2003/lsp_lines.nvim",
|
||||||
event = { "LspAttach" },
|
event = { "LspAttach" },
|
||||||
@ -7,15 +31,31 @@ return {
|
|||||||
local signs = {
|
local signs = {
|
||||||
Error = " ",
|
Error = " ",
|
||||||
Warning = " ",
|
Warning = " ",
|
||||||
Hint = " ",
|
Hint = "",
|
||||||
Info = " ",
|
Info = " ",
|
||||||
Other = " ",
|
Other = "",
|
||||||
}
|
}
|
||||||
for type, icon in pairs(signs) do
|
for type, icon in pairs(signs) do
|
||||||
local hl = "DiagnosticSign" .. type
|
local hl = "DiagnosticSign" .. type
|
||||||
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()
|
||||||
@ -46,36 +86,4 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"luozhiya/lsp-virtual-improved.nvim",
|
|
||||||
event = { "LspAttach" },
|
|
||||||
config = function()
|
|
||||||
require("lsp-virtual-improved").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"folke/trouble.nvim",
|
|
||||||
event = { "LspAttach" },
|
|
||||||
config = function()
|
|
||||||
-- Diagnostics
|
|
||||||
require("trouble").setup({
|
|
||||||
signs = {
|
|
||||||
-- icons / text used for a diagnostic
|
|
||||||
error = " ",
|
|
||||||
warning = " ",
|
|
||||||
hint = " ",
|
|
||||||
information = " ",
|
|
||||||
other = " ",
|
|
||||||
},
|
|
||||||
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
|
||||||
{ "<leader>xw", "<cmd>:Trouble workspace_diagnostics<CR>" },
|
|
||||||
{ "<leader>xd", "<cmd>:Trouble document_diagnostics<CR>" },
|
|
||||||
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
|
||||||
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ return {
|
|||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|
||||||
-- List of parsers to ignore installing (or "all")
|
-- List of parsers to ignore installing (or "all")
|
||||||
ignore_install = { "smali" },
|
-- ignore_install = { "smali" },
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ local use_google = require("utils").use_google
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"sainnhe/sonokai",
|
"sainnhe/sonokai",
|
||||||
|
cond = false,
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.sonokai_diagnostic_virtual_text = "highlighted"
|
vim.g.sonokai_diagnostic_virtual_text = "highlighted"
|
||||||
vim.g.sonokai_style = "andromeda"
|
vim.g.sonokai_style = "andromeda"
|
||||||
@ -14,18 +15,18 @@ return {
|
|||||||
"rebelot/kanagawa.nvim",
|
"rebelot/kanagawa.nvim",
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
-- cond = not use_google(),
|
cond = not use_google(),
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.cmd("colorscheme kanagawa-wave")
|
vim.cmd("colorscheme kanagawa-wave")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nyoom-engineering/oxocarbon.nvim",
|
"nyoom-engineering/oxocarbon.nvim",
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
cond = not use_google(),
|
cond = false,
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.cmd("colorscheme oxocarbon")
|
vim.cmd("colorscheme oxocarbon")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -33,9 +34,9 @@ return {
|
|||||||
dependencies = { "rktjmp/lush.nvim" },
|
dependencies = { "rktjmp/lush.nvim" },
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
cond = not use_google(),
|
cond = false,
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.cmd("colorscheme bluloco")
|
vim.cmd("colorscheme bluloco")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user