diff --git a/.config/nvim/lua/user/lsp/handlers.lua b/.config/nvim/lua/user/lsp/handlers.lua index d0678cb..7831c54 100644 --- a/.config/nvim/lua/user/lsp/handlers.lua +++ b/.config/nvim/lua/user/lsp/handlers.lua @@ -1,23 +1,15 @@ local M = {} 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 = { - -- disable virtual text - -- virtual_text = false, - -- show signs + virtual_text = true, signs = { - active = signs, + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + [vim.diagnostic.severity.HINT] = '', + [vim.diagnostic.severity.INFO] = '', + } }, update_in_insert = true, underline = true, diff --git a/.config/nvim/lua/user/neotree.lua b/.config/nvim/lua/user/neotree.lua index c79e7fa..0771971 100644 --- a/.config/nvim/lua/user/neotree.lua +++ b/.config/nvim/lua/user/neotree.lua @@ -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({ enable_diagnostics = false, enable_git_status = true,