From fb18155176d0d0b980d72edcc7bbb76e4f3a4762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 18 May 2022 16:02:31 +0200 Subject: [PATCH] Fix signature_help mapping in ideavim and neovim --- symlinks/config/nvim/lua/esensar/lsp/server_config.lua | 3 +-- symlinks/ideavimrc | 6 ++++-- symlinks/tool-versions | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/symlinks/config/nvim/lua/esensar/lsp/server_config.lua b/symlinks/config/nvim/lua/esensar/lsp/server_config.lua index 93f82cd..90f6d4d 100644 --- a/symlinks/config/nvim/lua/esensar/lsp/server_config.lua +++ b/symlinks/config/nvim/lua/esensar/lsp/server_config.lua @@ -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", "", 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", "rn", vim.lsp.buf.rename, opts) - vim.keymap.set("n", "", vim.lsp.buf.signature_help, opts) + vim.keymap.set({ "n", "i" }, "", vim.lsp.buf.signature_help, opts) vim.keymap.set("n", "K", vim.lsp.buf.hover, opts) vim.keymap.set("n", "", vim.lsp.buf.code_action, opts) vim.keymap.set("n", "ac", vim.lsp.buf.code_action, opts) diff --git a/symlinks/ideavimrc b/symlinks/ideavimrc index 01a171a..a61cbad 100644 --- a/symlinks/ideavimrc +++ b/symlinks/ideavimrc @@ -24,7 +24,8 @@ nmap rn (RenameElement) nmap (FindInPath) nmap tn (RunAnything) nmap tf (RunClass) -xmap (ParameterInfo) +imap (ParameterInfo) +nmap (ParameterInfo) nmap c (HideSideWindows) nmap db (ToggleLineBreakpoint) @@ -57,7 +58,8 @@ command! Format action ReformatCode command! EditVimConfig e ~/.ideavimrc command! ReloadVimConfig action IdeaVim.ReloadVimRc.reload command! Warnings action ActivateProblemsViewToolWindow +command! Logs action ActivateLogcatToolWindow nmap vec :EditVimConfig nmap vep :EditVimConfig -nmap vrc :ReloadVimConfig \ No newline at end of file +nmap vrc :ReloadVimConfig diff --git a/symlinks/tool-versions b/symlinks/tool-versions index 506f74d..fad6cc7 100644 --- a/symlinks/tool-versions +++ b/symlinks/tool-versions @@ -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