1
Fork 0

Some change

This commit is contained in:
Hadeed 2023-11-10 15:58:01 +05:00
parent 4402ddb63d
commit 5a6b9f03a0
2 changed files with 4 additions and 2 deletions

View file

@ -32,10 +32,12 @@ function M.lsp(env)
vim.keymap.set("", "<leader>de", vim.diagnostic.open_float, opts) vim.keymap.set("", "<leader>de", vim.diagnostic.open_float, opts)
vim.keymap.set("", "<leader>df", vim.lsp.buf.code_action, opts) vim.keymap.set("", "<leader>df", vim.lsp.buf.code_action, opts)
vim.keymap.set("", "<leader>rn", vim.lsp.buf.rename, opts) vim.keymap.set("", "<leader>rn", vim.lsp.buf.rename, opts)
vim.keymap.set("", "<leader>gD", vim.lsp.buf.declaration, opts)
vim.keymap.set("", "<leader>gd", vim.lsp.buf.definition, opts)
end end
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- Not plugin related -- -- Misc --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
local function swap(a, b) local function swap(a, b)

View file

@ -13,7 +13,7 @@ function eik() {
function find-directory() { function find-directory() {
FOLDER=$(fd -t d --hidden | fzf --height "50%" --reverse) FOLDER=$(fd -t d --hidden | fzf --height "50%" --reverse)
if [ -n "$FOLDER" ]; then if [ -n "$FOLDER" ]; then
BUFFER="cd $FOLDER" BUFFER="cd $FOLDER; l"
zle .accept-line zle .accept-line
else else
zle reset-prompt zle reset-prompt