diff --git a/lua/config/options.lua b/lua/config/options.lua index 3ea1454..507434e 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,3 +1,22 @@ -- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here + +-- Make unused code more readable +vim.diagnostic.config({ + signs = { + text = { + [vim.diagnostic.severity.WARN] = "", + [vim.diagnostic.severity.INFO] = "", + [vim.diagnostic.severity.HINT] = "", + }, + }, + underline = { + severity = { min = vim.diagnostic.severity.ERROR }, + }, + virtual_text = { + prefix = "", + spacing = 4, + source = "if_many", + }, +}) diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua new file mode 100644 index 0000000..e2c3fb1 --- /dev/null +++ b/lua/plugins/colors.lua @@ -0,0 +1,36 @@ +return { + -- Set your colorscheme + { + "LazyVim/LazyVim", + opts = { + colorscheme = "tokyonight", + }, + }, + + -- Customize tokyonight colors + { + "folke/tokyonight.nvim", + opts = { + on_colors = function(colors) + -- You can customize base colors here if needed + end, + on_highlights = function(highlights, colors) + -- Fix unused imports/readability issues + -- Common highlight groups for unused/deprecated code: + highlights.Comment = { fg = colors.comment, bg = "NONE" } + highlights["@comment"] = { fg = colors.comment, bg = "NONE" } + highlights["@comment.todo"] = { fg = colors.comment, bg = "NONE" } + highlights["@comment.note"] = { fg = colors.comment, bg = "NONE" } + highlights["@comment.warning"] = { fg = colors.comment, bg = "NONE" } + highlights["@comment.error"] = { fg = colors.comment, bg = "NONE" } + + -- Completely disable unused/deprecated highlighting to preserve normal syntax + highlights.DiagnosticUnnecessary = {} + highlights.LspDiagnosticsUnnecessary = {} + highlights["@lsp.type.comment"] = {} + highlights.Deprecated = {} + highlights["@deprecated"] = {} + end, + }, + }, +} \ No newline at end of file