added keybind to refresh current config page without restarting nvim

This commit is contained in:
venus
2026-06-02 00:45:28 -05:00
parent e7c8b3f9cd
commit 0e76ac466d
3 changed files with 42 additions and 28 deletions

View File

@@ -1,6 +1,15 @@
--/lua/keybinds.lua
-- This file defines all of the kybinds for nvim.
-- vim.keymap.set('mode','<modifier>key','action', {desc = 'description'})
-- Add these lines at the very top of your keymaps file
vim.cmd('silent! unmapclear') -- Clears Normal, Visual, Select, and Operator-pending maps
vim.cmd('silent! cmapclear') -- Clears Command-line maps
vim.cmd('silent! imapclear') -- Clears Insert maps
vim.cmd('silent! tmapclear') -- Clears Terminal maps
-- ==========================================
-- Define your current keymaps below this line
-- ==========================================
vim.keymap.set('n', '<leader>w', ':w<CR>')
local utils = require("custom-functions")
-- move betwwen buffer easier