From ad6f8e5233450e39996da972e94678481ab64a19 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 6 Dec 2022 08:39:34 +0100 Subject: [PATCH] fix(neovim): allow window navigation with C-hjkl --- home-manager/neovim/keymaps.lua | 8 ++++---- home-manager/neovim/lspconfig.lua | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/home-manager/neovim/keymaps.lua b/home-manager/neovim/keymaps.lua index 8f5a285..74921f1 100644 --- a/home-manager/neovim/keymaps.lua +++ b/home-manager/neovim/keymaps.lua @@ -6,10 +6,10 @@ vim.g.mapleader = " " vim.g.maplocalleader = " " -- Move around windows -nnoremap("", "h") -nnoremap("", "j") -nnoremap("", "k") -nnoremap("", "l") +nnoremap("", ":wincmd h") +nnoremap("", ":wincmd j") +nnoremap("", ":wincmd k") +nnoremap("", ":wincmd l") -- Switch buffers nnoremap("", ":TablineBufferNext") diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index e800c0f..3c77588 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -13,7 +13,6 @@ local on_attach = function(client, bufnr) nnoremap("gi", telescope.lsp_implementations) nnoremap("gr", telescope.lsp_references) nnoremap("K", vim.lsp.buf.hover) - nnoremap("", vim.lsp.buf.signature_help) nnoremap("rn", vim.lsp.buf.rename) nnoremap("ca", vim.lsp.buf.code_action) nnoremap("f", vim.lsp.buf.formatting)