1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-13 04:51:15 +02:00

nvim: fixed and replaced deprecated parts

This commit is contained in:
tiyn
2025-03-29 06:31:16 +01:00
parent b74a23af1d
commit e8901032db
8 changed files with 55 additions and 86 deletions

View File

@@ -21,6 +21,7 @@ Menu_signs = {
path = "",
}
Lsp_signs = {
Array = "",
Boolean = "",
@@ -106,22 +107,17 @@ Lualine_signs = {
unnamed = "",
}
vim.fn.sign_define(
"DiagnosticSignError",
{ texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" }
)
vim.fn.sign_define(
"DiagnosticSignWarn",
{ texthl = "DiagnosticSignWarn", text = Warn_sign, numhl = "DiagnosticSignWarn" }
)
vim.fn.sign_define(
"DiagnosticSignInfo",
{ texthl = "DiagnosticSignInfo", text = Info_sign, numhl = "DiagnosticSignInfo" }
)
vim.fn.sign_define(
"DiagnosticSignHint",
{ texthl = "DiagnosticSignHint", text = Hint_sign, numhl = "DiagnosticSignHint" }
)
vim.diagnostic.config({
severity_sort = true,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = Error_sign,
[vim.diagnostic.severity.WARN] = Warn_sign,
[vim.diagnostic.severity.INFO] = Info_sign,
[vim.diagnostic.severity.HINT] = Hint_sign,
},
},
})
-- enable colorcolumn when textwidth is set
vim.o.cursorline = true