docs: fix typos (#20509)

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
dundargoc
2022-10-13 15:18:48 +02:00
committed by GitHub
parent 730228f6db
commit eb123b565e
4 changed files with 10 additions and 10 deletions

View File

@@ -107,7 +107,7 @@ internally and are no longer exposed as part of the API. Instead, use
- *vim.lsp.diagnostic.set_virtual_text()* - *vim.lsp.diagnostic.set_virtual_text()*
LSP FUNCTIONS LSP FUNCTIONS
- *vim.lsp.range_code_action* Use |vim.lsp.buf.code_action()| with - *vim.lsp.buf.range_code_action()* Use |vim.lsp.buf.code_action()| with
the `range` parameter. the `range` parameter.
- *vim.lsp.util.diagnostics_to_items()* Use |vim.diagnostic.toqflist()| instead. - *vim.lsp.util.diagnostics_to_items()* Use |vim.diagnostic.toqflist()| instead.
- *vim.lsp.util.set_qflist()* Use |setqflist()| instead. - *vim.lsp.util.set_qflist()* Use |setqflist()| instead.

View File

@@ -23,7 +23,7 @@
#define FC_VIM9 0x400 // defined in vim9 script file #define FC_VIM9 0x400 // defined in vim9 script file
#define FC_LUAREF 0x800 // luaref callback #define FC_LUAREF 0x800 // luaref callback
///< Structure used by trans_function_name() /// Structure used by trans_function_name()
typedef struct { typedef struct {
dict_T *fd_dict; ///< Dictionary used. dict_T *fd_dict; ///< Dictionary used.
char_u *fd_newkey; ///< New key in "dict" in allocated memory. char_u *fd_newkey; ///< New key in "dict" in allocated memory.

View File

@@ -199,8 +199,8 @@ EXTERN dict_T vimvardict; // Dictionary with v: variables
EXTERN dict_T globvardict; // Dictionary with g: variables EXTERN dict_T globvardict; // Dictionary with g: variables
/// g: value /// g: value
#define globvarht globvardict.dv_hashtab #define globvarht globvardict.dv_hashtab
EXTERN int did_emsg; // set by emsg() when the message EXTERN int did_emsg; // incremented by emsg() when a
// is displayed or thrown // message is displayed or thrown
EXTERN bool called_vim_beep; // set if vim_beep() is called EXTERN bool called_vim_beep; // set if vim_beep() is called
EXTERN bool did_emsg_syntax; // did_emsg set because of a EXTERN bool did_emsg_syntax; // did_emsg set because of a
// syntax error // syntax error
@@ -1071,11 +1071,11 @@ EXTERN char windowsVersion[20] INIT(= { 0 });
EXTERN int exit_need_delay INIT(= 0); EXTERN int exit_need_delay INIT(= 0);
///< Skip win_fix_cursor() call for 'splitkeep' when cmdwin is closed. /// Skip win_fix_cursor() call for 'splitkeep' when cmdwin is closed.
EXTERN bool skip_win_fix_cursor INIT(= false); EXTERN bool skip_win_fix_cursor INIT(= false);
///< Skip win_fix_scroll() call for 'splitkeep' when closing tab page. /// Skip win_fix_scroll() call for 'splitkeep' when closing tab page.
EXTERN bool skip_win_fix_scroll INIT(= false); EXTERN bool skip_win_fix_scroll INIT(= false);
///< Skip update_topline() call while executing win_fix_scroll(). /// Skip update_topline() call while executing win_fix_scroll().
EXTERN bool skip_update_topline INIT(= false); EXTERN bool skip_update_topline INIT(= false);
#endif // NVIM_GLOBALS_H #endif // NVIM_GLOBALS_H

View File

@@ -215,11 +215,11 @@ static bool compl_interrupted = false;
static bool compl_restarting = false; ///< don't insert match static bool compl_restarting = false; ///< don't insert match
///< When the first completion is done "compl_started" is set. When it's /// When the first completion is done "compl_started" is set. When it's
///< false the word to be completed must be located. /// false the word to be completed must be located.
static bool compl_started = false; static bool compl_started = false;
///< Which Ctrl-X mode are we in? /// Which Ctrl-X mode are we in?
static int ctrl_x_mode = CTRL_X_NORMAL; static int ctrl_x_mode = CTRL_X_NORMAL;
static int compl_matches = 0; ///< number of completion matches static int compl_matches = 0; ///< number of completion matches