From cef92f13c9733ab378e156093457c8eb51587877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 8 Oct 2025 22:30:39 +0200 Subject: [PATCH] vis: add keys for make, profile add CDPATH --- shell/.profile | 2 ++ vis/.config/vis/visrc.lua | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/shell/.profile b/shell/.profile index 7f9659c..a225055 100644 --- a/shell/.profile +++ b/shell/.profile @@ -13,6 +13,8 @@ export LANG=pl_PL.UTF-8 export EDITOR=vis export VISUAL=vis +export CDPATH="$HOME:$HOME/src:$HOME/cloned:$HOME/dotfiles/vis/.config/vis/plugins" + # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists diff --git a/vis/.config/vis/visrc.lua b/vis/.config/vis/visrc.lua index 6074a84..5d34e25 100644 --- a/vis/.config/vis/visrc.lua +++ b/vis/.config/vis/visrc.lua @@ -8,7 +8,7 @@ local fzfmru = require('plugins/vis-fzf-mru/fzf-mru') require('plugins/vis-build') require('plugins/vis-cursors') require('plugins/vis-colorizer') -require('plugins/vis-quickfix') +local qf = require('plugins/vis-quickfix') require('plugins/vis-pairs') require('plugins/vis-pin-files') @@ -247,6 +247,8 @@ vis.events.subscribe(vis.events.INIT, function() vis:map(vis.modes.NORMAL, '', 'open') vis:map(vis.modes.NORMAL, ' K', close_prev_win) vis:map(vis.modes.NORMAL, ' J', close_next_win) + vis:map(vis.modes.NORMAL, ' k', qf.action.cp) + vis:map(vis.modes.NORMAL, ' j', qf.action.cn) vis:map(vis.modes.NORMAL, ' [', 'lspc-prev-diagnostic') vis:map(vis.modes.NORMAL, ' ]', 'lspc-next-diagnostic') @@ -298,11 +300,11 @@ vis.events.subscribe(vis.events.INIT, function() open_file_current_line('o') end, 'open file from current line in new window (with optional line and col)') - vis:map(vis.modes.NORMAL, ' k', function() + vis:map(vis.modes.NORMAL, ' zk', function() open_file_current_line('e', '') end, 'open file from current line in above window (with optional line and col)') - vis:map(vis.modes.NORMAL, ' j', function() + vis:map(vis.modes.NORMAL, ' zj', function() open_file_current_line('e', '') end, 'open file from current line in below window (with optional line and col)')