mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: replace lsp markers with squares
This commit is contained in:
parent
17a8e150c7
commit
cf511b3692
1 changed files with 6 additions and 0 deletions
|
|
@ -281,6 +281,12 @@ vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
|||
border = "solid",
|
||||
})
|
||||
|
||||
local signs = { Error = "■ ", Warn = "■ ", Hint = "■ ", Info = "■ " }
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
-- Example custom configuration for lua
|
||||
--
|
||||
-- Make runtime files discoverable to the server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue