vim plugin buffer_manager mappings

This commit is contained in:
thek4n 2024-04-03 11:10:43 +03:00
parent 666a2109d1
commit adb2c7713e
2 changed files with 2 additions and 4 deletions

View File

@ -7,9 +7,8 @@ return {
local map = vim.keymap.set local map = vim.keymap.set
map("n", "<leader><leader>", require("buffer_manager.ui").toggle_quick_menu) map("n", "<leader><leader>", require("buffer_manager.ui").toggle_quick_menu)
vim.api.nvim_command([[ vim.api.nvim_command([[
autocmd FileType buffer_manager vnoremap P :m '>+1<CR>gv=gv autocmd FileType buffer_manager vnoremap <C-j> :m '>+1<CR>gv=gv
autocmd FileType buffer_manager vnoremap N :m '<-2<CR>gv=gv autocmd FileType buffer_manager vnoremap <C-k> :m '<-2<CR>gv=gv
]]) ]])
end end
} }

View File

@ -11,7 +11,6 @@ EDITOR="vi"
if ! tmux has-session -t "$SESSION"; then if ! tmux has-session -t "$SESSION"; then
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT" tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
tmux send-keys -t "$SESSION:$MAINW" "$EDITOR" Enter tmux send-keys -t "$SESSION:$MAINW" "$EDITOR" Enter
tmux send-keys -t "$SESSION:$MAINW" , 1
tmux splitw -t "$SESSION:$MAINW" -d -h -l 40% -c '#{pane_current_path}' tmux splitw -t "$SESSION:$MAINW" -d -h -l 40% -c '#{pane_current_path}'
fi fi