diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 215223b..fa8255d 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua @@ -1,7 +1,6 @@ -- Autocmds are automatically loaded on the VeryLazy event -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here - vim.api.nvim_create_autocmd("BufWritePost", { pattern = { "*tmux.conf" }, command = "execute 'silent !tmux source --silent'", diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 7c3e5c2..3440cf2 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -1,6 +1,8 @@ -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here +rawset(_G, "vim", vim or {}) + vim.keymap.set("n", "j", ":b#", { desc = "Toggle between buffers", noremap = true, silent = true }) vim.keymap.set("n", ";;", "A;", { desc = "Add semicolon to the end of the line", noremap = true, silent = true }) vim.keymap.set("n", ",,", "A,", { desc = "Add comma to the end of the line", noremap = true, silent = true })