Neovim Home
src
nvim
state.h
Go to the documentation of this file.
1
#ifndef NVIM_STATE_H
2
#define NVIM_STATE_H
3
4
#include <stddef.h>
5
6
typedef
struct
vim_state
VimState
;
7
8
typedef
int (*
state_check_callback
)(
VimState
*state);
9
typedef
int (*
state_execute_callback
)(
VimState
*state,
int
key
);
10
11
struct
vim_state
{
12
state_check_callback
check
;
13
state_execute_callback
execute
;
14
};
15
16
#ifdef INCLUDE_GENERATED_DECLARATIONS
17
# include "state.h.generated.h"
18
#endif
19
20
#endif // NVIM_STATE_H
vim_state
Definition:
state.h:11
key
int key
Definition:
keycodes.c:571
state_check_callback
int(* state_check_callback)(VimState *state)
Definition:
state.h:8
vim_state::execute
state_execute_callback execute
Definition:
state.h:13
vim_state::check
state_check_callback check
Definition:
state.h:12
state_execute_callback
int(* state_execute_callback)(VimState *state, int key)
Definition:
state.h:9