From 5a6b9f03a0b413cda49df7e652404941d8b552d6 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Fri, 10 Nov 2023 15:58:01 +0500 Subject: [PATCH] Some change --- nvim/lua/keymaps.lua | 4 +++- zsh/zsh-functions | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua index 50a410c..098a968 100644 --- a/nvim/lua/keymaps.lua +++ b/nvim/lua/keymaps.lua @@ -32,10 +32,12 @@ function M.lsp(env) vim.keymap.set("", "de", vim.diagnostic.open_float, opts) vim.keymap.set("", "df", vim.lsp.buf.code_action, opts) vim.keymap.set("", "rn", vim.lsp.buf.rename, opts) + vim.keymap.set("", "gD", vim.lsp.buf.declaration, opts) + vim.keymap.set("", "gd", vim.lsp.buf.definition, opts) end ------------------------------------------------------------------------------ --- Not plugin related -- +-- Misc -- ------------------------------------------------------------------------------ local function swap(a, b) diff --git a/zsh/zsh-functions b/zsh/zsh-functions index fdf4d2a..7cb50a3 100644 --- a/zsh/zsh-functions +++ b/zsh/zsh-functions @@ -13,7 +13,7 @@ function eik() { function find-directory() { FOLDER=$(fd -t d --hidden | fzf --height "50%" --reverse) if [ -n "$FOLDER" ]; then - BUFFER="cd $FOLDER" + BUFFER="cd $FOLDER; l" zle .accept-line else zle reset-prompt