-
Hi, is there any way to change colors defined in https://github.com/glepnir/lspsaga.nvim/blob/6be7334fb7ff8ddfeb17bba055feecd3b69dae83/lua/lspsaga/lspkind.lua#L3-L13 except of changing source code? |
Beta Was this translation helpful? Give feedback.
Answered by
glepnir
Aug 14, 2022
Replies: 2 comments 5 replies
-
like doc said local kind = require('lspsaga.kind')
kind[1][3] = your color code |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
glepnir
-
I use this setting: local custom_colors= {
blue = "#1c3a74",
cyan = "#327698",
fg = "#262a3f",
green = "#4A672C",
orange = "#633819",
red = "#cc3768",
teal = "#89b8c2",
violet = "#6845ad",
yellow = "#e2a478",
}
local lspsaga = require 'lspsaga'
lspsaga.init_lsp_saga({
--......
custom_kind = {
File= { ' ', custom_colors.fg },
Module= { ' ', custom_colors.blue },
Namespace= { ' ', custom_colors.orange },
Package= { ' ', custom_colors.violet },
Class= { ' ', custom_colors.violet },
Method= { ' ', custom_colors.violet },
Property= { ' ', custom_colors.cyan },
Field= { ' ', custom_colors.teal },
Constructor= { ' ', custom_colors.blue },
Enum= { '了', custom_colors.green },
Interface= { ' ', custom_colors.orange },
Function= { ' ', custom_colors.violet },
Variable= { ' ', custom_colors.blue },
Constant= { ' ', custom_colors.cyan },
String= { ' ', custom_colors.green },
Number= { ' ', custom_colors.green },
Boolean= { ' ', custom_colors.orange },
Array= { ' ', custom_colors.blue },
Object= { ' ', custom_colors.orange },
Key= { ' ', custom_colors.red },
Null= { ' ', custom_colors.red },
EnumMember= { ' ', custom_colors.green },
Struct= { ' ', custom_colors.violet },
Event= { ' ', custom_colors.violet },
Operator= { ' ', custom_colors.green },
TypeParameter= { ' ', custom_colors.green },
-- ccls
TypeAlias= { ' ', custom_colors.green },
Parameter= { ' ', custom_colors.blue },
StaticMethod= { 'ﴂ ', custom_colors.orange },
Macro= { ' ', custom_colors.red },
},
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
like doc said