Fix signature_help mapping in ideavim and neovim

main
Ensar Sarajčić 2022-05-18 16:02:31 +02:00
parent ac29a2423e
commit fb18155176
3 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,6 @@ local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protoco
local function on_attach(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
-- Lsp keymaps
local opts = { buffer = bufnr }
vim.keymap.set("n", "<C-]>", vim.lsp.buf.definition, opts)
@ -14,7 +13,7 @@ local function on_attach(client, bufnr)
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts)
vim.keymap.set("n", "<Leader>rn", vim.lsp.buf.rename, opts)
vim.keymap.set("n", "<C-k>", vim.lsp.buf.signature_help, opts)
vim.keymap.set({ "n", "i" }, "<A-k>", vim.lsp.buf.signature_help, opts)
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
vim.keymap.set("n", "<A-CR>", vim.lsp.buf.code_action, opts)
vim.keymap.set("n", "<Leader>ac", vim.lsp.buf.code_action, opts)

View File

@ -24,7 +24,8 @@ nmap <leader>rn <Action>(RenameElement)
nmap <C-A-F> <Action>(FindInPath)
nmap <leader>tn <Action>(RunAnything)
nmap <leader>tf <Action>(RunClass)
xmap <C-K> <Action>(ParameterInfo)
imap <A-K> <Action>(ParameterInfo)
nmap <A-K> <Action>(ParameterInfo)
nmap <leader>c <Action>(HideSideWindows)
nmap <leader>db <Action>(ToggleLineBreakpoint)
@ -57,6 +58,7 @@ command! Format action ReformatCode
command! EditVimConfig e ~/.ideavimrc
command! ReloadVimConfig action IdeaVim.ReloadVimRc.reload
command! Warnings action ActivateProblemsViewToolWindow
command! Logs action ActivateLogcatToolWindow
nmap <leader>vec :EditVimConfig<CR>
nmap <leader>vep :EditVimConfig<CR>

View File

@ -3,7 +3,7 @@ nodejs 18.1.0
python 3.10.4
ruby 3.0.0
neovim 0.7.0
bat 0.20.0
bat 0.21.0
awscli 2.2.44
java openjdk-17.0.2
rust 1.60.0
@ -11,4 +11,4 @@ lua 5.4.4
actionlint 1.6.12
act 0.2.26
shellcheck 0.8.0
cmake 3.22.3
cmake 3.23.1