remove deprected sign_define

This commit is contained in:
2025-04-01 20:23:02 +05:00
parent bcb280301d
commit b69c954c08
2 changed files with 7 additions and 20 deletions

View File

@ -1,23 +1,15 @@
local M = {} local M = {}
M.setup = function() M.setup = function()
local signs = {
{ name = "DiagnosticSignError", text = "" },
{ name = "DiagnosticSignWarn", text = "" },
{ name = "DiagnosticSignHint", text = "" },
{ name = "DiagnosticSignInfo", text = "" },
}
for _, sign in ipairs(signs) do
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
end
local config = { local config = {
-- disable virtual text virtual_text = true,
-- virtual_text = false,
-- show signs
signs = { signs = {
active = signs, text = {
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.HINT] = '',
[vim.diagnostic.severity.INFO] = '',
}
}, },
update_in_insert = true, update_in_insert = true,
underline = true, underline = true,

View File

@ -1,8 +1,3 @@
-- vim.fn.sign_define("DiagnosticSignError", { text = " ", texthl = "DiagnosticSignError" })
-- vim.fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSignWarn" })
-- vim.fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
-- vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
require("neo-tree").setup({ require("neo-tree").setup({
enable_diagnostics = false, enable_diagnostics = false,
enable_git_status = true, enable_git_status = true,