diff options
author | pommicket <pommicket@gmail.com> | 2023-08-15 10:50:30 -0300 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-15 10:50:30 -0300 |
commit | 4ea381d6a8a2a560213de896bab2aad02a70f937 (patch) | |
tree | c0a3abe1dc27717ff1ea598dd0dbd4867f457e5b /ide-definitions.c | |
parent | 50ecb07c724091ea2556fda8738d7500a77b0f9b (diff) |
some settings stuff
Diffstat (limited to 'ide-definitions.c')
-rw-r--r-- | ide-definitions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ide-definitions.c b/ide-definitions.c index b853207..8fe7582 100644 --- a/ide-definitions.c +++ b/ide-definitions.c @@ -183,7 +183,6 @@ void definitions_process_lsp_response(Ted *ted, LSP *lsp, const LSPResponse *res const LSPResponseWorkspaceSymbols *response_syms = &response->data.workspace_symbols; const LSPSymbolInformation *symbols = response_syms->symbols; const Settings *settings = ted_active_settings(ted); - const u32 *colors = settings->colors; definitions_clear_entries(defs); arr_set_len(defs->all_definitions, arr_len(symbols)); @@ -193,7 +192,7 @@ void definitions_process_lsp_response(Ted *ted, LSP *lsp, const LSPResponse *res def->name = str_dup(lsp_response_string(response, symbol->name)); SymbolKind kind = symbol_kind_to_ted(symbol->kind); - def->color = colors[color_for_symbol_kind(kind)]; + def->color = settings_color(settings, color_for_symbol_kind(kind)); def->from_lsp = true; def->position = lsp_location_start_position(symbol->location); const char *container_name = lsp_response_string(response, symbol->container); |