Functions
highlight.c File Reference
#include "nvim/vim.h"
#include "nvim/highlight.h"
#include "nvim/highlight_defs.h"
#include "nvim/map.h"
#include "nvim/screen.h"
#include "nvim/syntax.h"
#include "nvim/ui.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"

Functions

bool highlight_use_hlstate (void)
 
void ui_send_all_hls (UI *ui)
 When a UI connects, we need to send it the table of highlights used so far. More...
 
int hl_get_syn_attr (int idx, HlAttrs at_en)
 Get attribute code for a syntax group. More...
 
int hl_get_ui_attr (int idx, int final_id, bool optional)
 
void update_window_hl (win_T *wp, bool invalid)
 
int hl_get_underline (void)
 Gets HL_UNDERLINE highlight. More...
 
int hl_get_term_attr (HlAttrs *aep)
 Get attribute code for forwarded :terminal highlights. More...
 
void clear_hl_tables (bool reinit)
 Clear all highlight tables. More...
 
int hl_combine_attr (int char_attr, int prim_attr)
 
HlAttrs syn_attr2entry (int attr)
 Get highlight attributes for a attribute code. More...
 
Dictionary hl_get_attr_by_id (Integer attr_id, Boolean rgb, Error *err)
 Gets highlight description for id attr_id as a map. More...
 
Dictionary hlattrs2dict (HlAttrs ae, bool use_rgb)
 
Array hl_inspect (int attr)
 

Function Documentation

void clear_hl_tables ( bool  reinit)

Clear all highlight tables.

bool highlight_use_hlstate ( void  )
Returns
TRUE if hl table was reset
int hl_combine_attr ( int  char_attr,
int  prim_attr 
)
Dictionary hl_get_attr_by_id ( Integer  attr_id,
Boolean  rgb,
Error err 
)

Gets highlight description for id attr_id as a map.

int hl_get_syn_attr ( int  idx,
HlAttrs  at_en 
)

Get attribute code for a syntax group.

int hl_get_term_attr ( HlAttrs aep)

Get attribute code for forwarded :terminal highlights.

int hl_get_ui_attr ( int  idx,
int  final_id,
bool  optional 
)

Get attribute code for a builtin highlight group.

The final syntax group could be modified by hi-link or 'winhighlight'.

int hl_get_underline ( void  )

Gets HL_UNDERLINE highlight.

Array hl_inspect ( int  attr)
Dictionary hlattrs2dict ( HlAttrs  ae,
bool  use_rgb 
)

Converts an HlAttrs into Dictionary

Parameters
[in]aepdata to convert
use_rgbuse 'gui*' settings if true, else resorts to 'cterm*'
HlAttrs syn_attr2entry ( int  attr)

Get highlight attributes for a attribute code.

void ui_send_all_hls ( UI ui)

When a UI connects, we need to send it the table of highlights used so far.

void update_window_hl ( win_T wp,
bool  invalid 
)