Skip to content
Snippets Groups Projects
Commit 56fb290e authored by iliya's avatar iliya
Browse files

fixed lsp DiagnosticSign icons in gutter

parent 755e1dc4
No related branches found
No related tags found
No related merge requests found
-- [[ Configure LSP ]]
-- This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)
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 = "" })
end
-- NOTE: Remember that lua is a real programming language, and as such it is possible
-- to define small helper and utility functions so you don't have to repeat yourself
-- many times.
......
require 'nvim-web-devicons'.setup {
override = {
LspDiagnosticsSignError = {
icon = '',
color = '#ff6b6b',
name = 'LspDiagnosticsSignError',
},
LspDiagnosticsSignWarning = {
icon = '',
color = '#ffaa00',
name = 'LspDiagnosticsSignWarning',
},
LspDiagnosticsSignInformation = {
icon = '',
color = '#8cc4ff',
name = 'LspDiagnosticsSignInformation',
},
LspDiagnosticsSignHint = {
icon = '',
color = '#a9a9a9',
name = 'LspDiagnosticsSignHint',
},
},
}
......@@ -133,19 +133,6 @@ return {
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
-- opts = {
-- -- your configuration comes here
-- -- or leave it empty to use the default settings
-- -- refer to the configuration section below
-- signs = {
-- -- icons / text used for a diagnostic
-- error = "",
-- warning = "",
-- hint = "",
-- information = "",
-- other = "",
-- },
-- },
},
'NvChad/nvim-colorizer.lua',
......@@ -154,7 +141,9 @@ return {
-- install without yarn or npm
{
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
run = function()
vim.fn["mkdp#util#install"]()
end,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment