Skip to content

Commit

Permalink
revert the disabled eslint on before numbering and hover error lens
Browse files Browse the repository at this point in the history
  • Loading branch information
anishkumar127 committed Jan 9, 2025
1 parent 7b2d4c6 commit e15d620
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
vim.diagnostic.config({ virtual_text = false })
-- vim.diagnostic.config({ virtual_text = false })
require("config.lazy")

-- vim.opt.shell = "C:\\Program Files\\Git\\bin\\bash.exe"
Expand Down
1 change: 1 addition & 0 deletions lazyvim.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lazyvim.plugins.extras.lang.json",
"lazyvim.plugins.extras.lang.markdown",
"lazyvim.plugins.extras.lang.tailwind",
"lazyvim.plugins.extras.linting.eslint",
"lazyvim.plugins.extras.lsp.none-ls",
"lazyvim.plugins.extras.test.core",
"lazyvim.plugins.extras.util.dot"
Expand Down
10 changes: 5 additions & 5 deletions lua/plugins/ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ return {
}),
}
-- Disable tsserver diagnostics if needed
opts.on_attach = function(client)
if client.name == "tsserver" then
client.server_capabilities.diagnosticProvider = false
end
end
-- opts.on_attach = function(client)
-- if client.name == "tsserver" then
-- client.server_capabilities.diagnosticProvider = false
-- end
-- end

require("typescript-tools").setup(opts)
end,
Expand Down
22 changes: 16 additions & 6 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ return {
priority = 1000, -- needs to be loaded in first
config = function()
require("tiny-inline-diagnostic").setup({
preset = "modern",
-- hi = {
-- error = "DiagnosticError",
-- warn = "DiagnosticWarn",
-- info = "DiagnosticInfo",
-- hint = "DiagnosticHint",
-- arrow = "NonText",
-- background = "CursorLine", -- Can be a highlight or a hexadecimal color (#RRGGBB)
-- mixing_color = "None", -- Can be None or a hexadecimal color (#RRGGBB). Used to blend the background color with the diagnostic background color with another color.
-- },
options = {
show_source = true,
use_icons_from_diagnostic = true,
Expand All @@ -37,12 +47,12 @@ return {
-- mode = "wrap",
-- },
-- Filter by severity.
severity = {
vim.diagnostic.severity.ERROR,
vim.diagnostic.severity.WARN,
vim.diagnostic.severity.INFO,
vim.diagnostic.severity.HINT,
},
-- severity = {
-- vim.diagnostic.severity.ERROR,
-- vim.diagnostic.severity.WARN,
-- vim.diagnostic.severity.INFO,
-- vim.diagnostic.severity.HINT,
-- },
},
})
end,
Expand Down

0 comments on commit e15d620

Please sign in to comment.