add(nvim): gutter symbols

This commit is contained in:
Léana 江 2023-03-09 19:17:39 +01:00 committed by Chiang Léana
parent a201929c2f
commit 4d9782becc
2 changed files with 7 additions and 2 deletions

View file

@ -33,6 +33,13 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.format { async = true } end, bufopts)
end
-- Gutter symbols setup
vim.fn.sign_define("DiagnosticSignError", { text = '' , texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" })
vim.fn.sign_define("DiagnosticSignWarn", { text = '', texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" })
vim.fn.sign_define("DiagnosticSignHint", { text = '·', texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" })
vim.fn.sign_define("DiagnosticSignInfo", { text = '·' , texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" })
-- Border setup
local border = {
{ "", "FloatBorder" },