neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f1748b78e3165a0821a11f5ae1fb9398aa67c535
parent c33ec2d7cecddf5c092300efdf2d05b0423e6e37
Author: Yi Ming <ofseed@foxmail.com>
Date:   Sat, 16 Nov 2024 00:13:41 +0800

feat(default): bind `vim.lsp.buf.signature_help` in select mode (#31223)


Diffstat:
Mruntime/doc/news.txt | 2+-
Mruntime/lua/vim/_defaults.lua | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt @@ -168,7 +168,7 @@ DEFAULTS • |gri| in Normal mode maps to |vim.lsp.buf.implementation()| • |gO| in Normal mode maps to |vim.lsp.buf.document_symbol()| • |gra| in Normal and Visual mode maps to |vim.lsp.buf.code_action()| - • CTRL-S in Insert mode maps to |vim.lsp.buf.signature_help()| + • CTRL-S in Insert and Select mode maps to |vim.lsp.buf.signature_help()| • Mouse |popup-menu| includes an "Open in web browser" item when you right-click on a URL. • Mouse |popup-menu| includes a "Go to definition" item when LSP is active diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua @@ -179,7 +179,7 @@ do vim.lsp.buf.document_symbol() end, { desc = 'vim.lsp.buf.document_symbol()' }) - vim.keymap.set('i', '<C-S>', function() + vim.keymap.set({ 'i', 's' }, '<C-S>', function() vim.lsp.buf.signature_help() end, { desc = 'vim.lsp.buf.signature_help()' }) end