Skip to content

Commit

Permalink
fix(nvim): lsp/diag icons
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 17, 2023
1 parent 8c70d65 commit b414da7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 30 deletions.
2 changes: 1 addition & 1 deletion modules/neovim/config/lua/user/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ cmp.setup({
format = function(_, item)
local icons = require("user.icons").kinds
if icons[item.kind] then
item.kind = icons[item.kind] .. item.kind
item.kind = icons[item.kind] .. " " .. item.kind
end
local strings = vim.split(item.kind, "%s", {
trimempty = true,
Expand Down
75 changes: 46 additions & 29 deletions modules/neovim/config/lua/user/icons.lua
Original file line number Diff line number Diff line change
@@ -1,35 +1,52 @@
return {
diagnostics = {
Error = "",
Warn = "",
Hint = "",
Info = "",
-- Error = "",
Error = "",
-- Warning = "",
Warning = "",
-- Information = "",
Information = "",
-- Question = "",
Question = "",
-- Hint = "",
Hint = "󰌶",
Debug = "",
Trace = "",
},
kinds = {
Class = "",
Color = "",
Constant = "",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
Function = "",
Interface = "",
Keyword = "",
Method = "ƒ ",
Module = "",
Operator = "",
Property = "",
Reference = "",
Snippet = "",
Struct = "",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "",
Array = "",
Boolean = "",
Class = "",
Color = "",
Constant = "",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "󰉋",
Function = "",
Interface = "",
Key = "",
Keyword = "",
Method = "",
Module = "",
Namespace = "",
Null = "󰟢",
Number = "",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
Snippet = "",
String = "",
Struct = "",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "",
},
}

0 comments on commit b414da7

Please sign in to comment.