diff --git a/README.md b/README.md index 4ea61a1..aa82aa5 100644 --- a/README.md +++ b/README.md @@ -90,19 +90,19 @@ lazy.nvim (lua): { "intrntbrn/awesomewm-vim-tmux-navigator", event = "VeryLazy", + branch = "key_definition", build = "git -C ~/.config/awesome/awesomewm-vim-tmux-navigator/ pull", - keys = { - { mode = { "n" }, "", ":TmuxNavigateLeft", { noremap = true, silent = true } }, - { mode = { "n" }, "", ":TmuxNavigateDown", { noremap = true, silent = true } }, - { mode = { "n" }, "", ":TmuxNavigateUp", { noremap = true, silent = true } }, - { mode = { "n" }, "", ":TmuxNavigateRight", { noremap = true, silent = true } }, - }, init = function() vim.g.tmux_navigator_no_mappings = 1 -- vim.g.tmux_navigator_no_dynamic_title = 1 -- vim.g.tmux_navigator_save_on_switch = 1 -- vim.g.tmux_navigator_disable_when_zoomed = 1 -- vim.g.tmux_navigator_preserve_zoom = 1 + + vim.keymap.set("n", "", ":TmuxNavigateLeft", { noremap = true, silent = true }) + vim.keymap.set("n", "", ":TmuxNavigateDown", { noremap = true, silent = true }) + vim.keymap.set("n", "", ":TmuxNavigateUp", { noremap = true, silent = true }) + vim.keymap.set("n", "", ":TmuxNavigateRight", { noremap = true, silent = true }) end, } ```