Switch back to using Navigator plugin, got working with TMUX now

This commit is contained in:
Evie Litherland-Smith 2023-02-09 22:09:51 +00:00
parent cc104dc58f
commit 6881b5dfb9
5 changed files with 25 additions and 6 deletions

View file

@ -21,9 +21,9 @@ POWERLEVEL_DIR := $(ZSH_CUSTOM_DIR)/themes/powerlevel10k
TPM_REPO := https://github.com/tmux-plugins/tpm
TPM_DIR := $(HOME)/.tmux/plugins/tpm
.PHONY: install nopackages clean home packages config zsh ssh nvim
.PHONY: install nopackages clean home packages config zsh ssh nvim tmux sort
install: home packages config zsh ssh nvim
install: home packages config zsh ssh nvim tmux
nopackages: home config zsh ssh nvim
@ -47,6 +47,12 @@ ssh: $(SSH_TARGETS) $(HOME)/.ssh/sockets
nvim: $(PACKER_DIR)
tmux:
python3 -m pip install --user libtmux==0.16.1
sort:
sort -h pkglist.txt -o pkglist.txt
$(HOME_TARGETS): $(HOME)/.%: home/%
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh

View file

@ -30,3 +30,10 @@ vim.keymap.set('n', '<leader>xw', '<cmd>TroubleToggle workspace_diagnostics<cr>'
vim.keymap.set('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>')
vim.keymap.set('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>')
vim.keymap.set('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>')
-- Navigator
vim.keymap.set({'n', 't'}, '<A-h>', '<CMD>NavigatorLeft<CR>')
vim.keymap.set({'n', 't'}, '<A-l>', '<CMD>NavigatorRight<CR>')
vim.keymap.set({'n', 't'}, '<A-k>', '<CMD>NavigatorUp<CR>')
vim.keymap.set({'n', 't'}, '<A-j>', '<CMD>NavigatorDown<CR>')
vim.keymap.set({'n', 't'}, '<A-p>', '<CMD>NavigatorPrevious<CR>')

View file

@ -155,7 +155,14 @@ require('packer').startup {
}
end
}
use 'sunaku/tmux-navigate'
use {
'numToStr/Navigator.nvim',
config = function()
require('Navigator').setup {
mux = 'auto'
}
end
}
end,
config = {
display = {

View file

@ -8,10 +8,9 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'ofirgall/tmux-window-name'
set -g @plugin 'noscript/tmux-mighty-scroll'
set -g @plugin 'jabirali/tmux-tilish'
set -g @plugin 'sunaku/tmux-navigate'
# Plugin options.
set -g @tilish-navigate 'on'
set -g @tilish-navigator 'on'
set -g @tilish-dmenu 'on'
set -g @tmux_window_name_use_tilde "True"

View file

@ -6,7 +6,6 @@ pyenv
python
python-black
python-isort
python-libtmux
python-pip
python-pipx
python-poetry
@ -14,6 +13,7 @@ python-pre-commit
python-pynvim
python-virtualenv
ripgrep
tmux
tree-sitter
wezterm
zsh