better diagnostics
This commit is contained in:
@ -11,6 +11,16 @@ return {
|
|||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"mawkler/modicator.nvim",
|
||||||
|
init = function()
|
||||||
|
-- These are required for Modicator to work
|
||||||
|
vim.o.cursorline = true
|
||||||
|
vim.o.number = true
|
||||||
|
vim.o.termguicolors = true
|
||||||
|
end,
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"NvChad/nvim-colorizer.lua",
|
"NvChad/nvim-colorizer.lua",
|
||||||
ft = "lua",
|
ft = "lua",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
"Maan2003/lsp_lines.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
name = "lsp_lines.nvim",
|
name = "lsp_lines.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
@ -19,7 +19,10 @@ return {
|
|||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = true,
|
virtual_text = false,
|
||||||
|
virtual_improved = {
|
||||||
|
current_line = "hide",
|
||||||
|
},
|
||||||
virtual_lines = { highlight_whole_line = false, only_current_line = true },
|
virtual_lines = { highlight_whole_line = false, only_current_line = true },
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
@ -1,25 +1,40 @@
|
|||||||
return {
|
return {
|
||||||
"folke/trouble.nvim",
|
{
|
||||||
event = "VimEnter",
|
"luozhiya/lsp-virtual-improved.nvim",
|
||||||
config = function()
|
event = { "LspAttach" },
|
||||||
-- Diagnostics
|
config = function()
|
||||||
require("trouble").setup({
|
require("lsp-virtual-improved").setup()
|
||||||
signs = {
|
end,
|
||||||
-- icons / text used for a diagnostic
|
},
|
||||||
error = " ",
|
{
|
||||||
warning = " ",
|
"dgagn/diagflow.nvim",
|
||||||
hint = " ",
|
opts = {
|
||||||
information = " ",
|
toggle_event = { "InsertEnter" },
|
||||||
other = " ",
|
},
|
||||||
},
|
},
|
||||||
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
{
|
||||||
})
|
"folke/trouble.nvim",
|
||||||
end,
|
event = "VimEnter",
|
||||||
keys = {
|
config = function()
|
||||||
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
-- Diagnostics
|
||||||
{ "<leader>xw", "<cmd>:Trouble workspace_diagnostics<CR>" },
|
require("trouble").setup({
|
||||||
{ "<leader>xd", "<cmd>:Trouble document_diagnostics<CR>" },
|
signs = {
|
||||||
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
-- icons / text used for a diagnostic
|
||||||
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
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>" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user