misc settings

This commit is contained in:
Alexander Gehrke 2025-05-28 17:30:44 +02:00
parent a3935e52f0
commit 4742d5b88e
5 changed files with 31 additions and 17 deletions

View file

@ -10,10 +10,20 @@ return {
LogPoint = ".>",
},
diagnostics = {
Error = "",
Warn = "",
Hint = "",
Info = "",
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "",
[vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.HINT] = "",
[vim.diagnostic.severity.INFO] = "",
},
numhl = {
[vim.diagnostic.severity.ERROR] = "DiagnosticSignError",
[vim.diagnostic.severity.WARN] = "DiagnosticSignWarn",
[vim.diagnostic.severity.INFO] = "DiagnosticSignInfo",
[vim.diagnostic.severity.HINT] = "DiagnosticSignHint",
},
},
},
git = {
added = "",

View file

@ -88,10 +88,7 @@ return {
---@param opts PluginLspOpts
config = function(_, opts)
-- diagnostics
for name, icon in pairs(require("common").icons.diagnostics) do
name = "DiagnosticSign" .. name
vim.fn.sign_define(name, { text = icon, texthl = name, numhl = "" })
end
vim.diagnostic.config(require("common").icons.diagnostics)
if type(opts.diagnostics.virtual_text) == "table" and opts.diagnostics.virtual_text.prefix == "icons" then
opts.diagnostics.virtual_text.prefix = vim.fn.has("nvim-0.10.0") == 0 and ""

View file

@ -14,7 +14,8 @@ return {
local utils = require("telescope.utils")
-- stylua: ignore start
return {
{ ',,',
{
',,',
function()
builtin.fd { cwd = require("findroot")(utils.buffer_dir()) }
end,