Skip to content

Commit

Permalink
[nvim] organizing global bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ashton committed Oct 28, 2024
1 parent e8ed374 commit c4264a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .config/nvim/lua/mappings/global/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
local buffer_mappings = require "mappings.global.buffers"
local window_mappings = require "mappings.global.windows"


local global_mappings = {["<Tab>"] = {"<Plug>(matchup-%)", "Go to the matching pair"}}
local global_mappings = {
["<Tab>"] = { "<Plug>(matchup-%)", "Go to the matching pair" },
["<Esc><Esc>"] = { "<Cmd>Noice dismiss<CR>", "Clear notifications" }
}
return vim.tbl_deep_extend("force", global_mappings, buffer_mappings, window_mappings)
2 changes: 0 additions & 2 deletions .config/nvim/lua/mappings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ local mappings = vim.tbl_deep_extend(
for k, v in pairs(mappings) do
wk.register(v, { prefix = k, silent = true, noremap = true })
end

vim.keymap.set("n", "<ESC><ESC>", "<cmd>nohlsearch<CR>", { desc = "clear highlight", nowait = true })

0 comments on commit c4264a6

Please sign in to comment.