docs: lsp, vim_diff #35820

This commit is contained in:
skewb1k
2025-09-17 22:29:34 +03:00
committed by GitHub
parent a57c7238f9
commit 5148c1247e
2 changed files with 15 additions and 18 deletions

View File

@@ -74,12 +74,12 @@ the options are empty or were set by the builtin runtime (ftplugin) files. The
options are not restored when the LSP client is stopped or detached.
GLOBAL DEFAULTS
*grr* *gra* *grn* *gri* *grt* *i_CTRL-S* *an* *in*
*gra* *gri* *grn* *grr* *grt* *i_CTRL-S* *v_an* *v_in*
These GLOBAL keymaps are created unconditionally when Nvim starts:
- "grn" is mapped in Normal mode to |vim.lsp.buf.rename()|
- "gra" is mapped in Normal and Visual mode to |vim.lsp.buf.code_action()|
- "grr" is mapped in Normal mode to |vim.lsp.buf.references()|
- "gri" is mapped in Normal mode to |vim.lsp.buf.implementation()|
- "grn" is mapped in Normal mode to |vim.lsp.buf.rename()|
- "grr" is mapped in Normal mode to |vim.lsp.buf.references()|
- "grt" is mapped in Normal mode to |vim.lsp.buf.type_definition()|
- "gO" is mapped in Normal mode to |vim.lsp.buf.document_symbol()|
- CTRL-S is mapped in Insert mode to |vim.lsp.buf.signature_help()|

View File

@@ -150,27 +150,24 @@ you never want any default mappings, call |:mapclear| early in your config.
- * |v_star-default|
- gc |gc-default| |v_gc-default| |o_gc-default|
- gcc |gcc-default|
- gr prefix |gr-default|
- |grn|
- |grr|
- |gra|
- |gri|
- |grt|
- |gO|
- <C-S> |i_CTRL-S|
- |gO|
- ]d |]d-default|
- [d |[d-default|
- [D |[D-default|
- ]D |]D-default|
- <C-W>d |CTRL-W_d-default|
- |[q|, |]q|, |[Q|, |]Q|, |[CTRL-Q|, |]CTRL-Q|
- |[l|, |]l|, |[L|, |]L|, |[CTRL-L|, |]CTRL-L|
- |[t|, |]t|, |[T|, |]T|, |[CTRL-T|, |]CTRL-T|
- |[a|, |]a|, |[A|, |]A|
- |[b|, |]b|, |[B|, |]B|
- |[<Space>|, |]<Space>|
- Nvim LSP client defaults |lsp-defaults|
- |[q| |]q| |[Q| |]Q| |[CTRL-Q| |]CTRL-Q|
- |[l| |]l| |[L| |]L| |[CTRL-L| |]CTRL-L|
- |[t| |]t| |[T| |]T| |[CTRL-T| |]CTRL-T|
- |[a| |]a| |[A| |]A|
- |[b| |]b| |[B| |]B|
- |[<Space>| |]<Space>|
- LSP defaults |lsp-defaults|
- K |K-lsp-default|
- |v_an| |v_in|
- gr prefix |gr-default|
- |gra| |gri| |grn| |grr| |grt|
- <C-S> |i_CTRL-S|
DEFAULT AUTOCOMMANDS
*default-autocmds*