mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard.
31 lines
671 B
C
31 lines
671 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/grid_defs.h"
|
|
#include "nvim/macros.h"
|
|
#include "nvim/types.h"
|
|
#include "nvim/vim.h"
|
|
|
|
/// Used for popup menu items.
|
|
typedef struct {
|
|
char *pum_text; // main menu text
|
|
char *pum_kind; // extra kind text (may be truncated)
|
|
char *pum_extra; // extra menu text (may be truncated)
|
|
char *pum_info; // extra info
|
|
} pumitem_T;
|
|
|
|
EXTERN ScreenGrid pum_grid INIT( = SCREEN_GRID_INIT);
|
|
|
|
/// state for pum_ext_select_item.
|
|
EXTERN struct {
|
|
bool active;
|
|
int item;
|
|
bool insert;
|
|
bool finish;
|
|
} pum_want;
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "popupmenu.h.generated.h"
|
|
#endif
|