summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/mappings.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-08 22:47:56 -0400
committertriethyl <triethylammonium@pm.me>2025-08-08 22:47:56 -0400
commit09bd5167059831cb7e6066efc7f73cadf15638b7 (patch)
tree319a92d6d3e1a3524851c8adaf5c8be51eb0be21 /pkgs/custom-neovim/config/lua/mappings.lua
parentbe4a30939d79fe4b8ac8c34ad3dcfcad2eed1d59 (diff)
neovim: small changes
Diffstat (limited to 'pkgs/custom-neovim/config/lua/mappings.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/mappings.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/pkgs/custom-neovim/config/lua/mappings.lua b/pkgs/custom-neovim/config/lua/mappings.lua
index da2cf17..8648ff3 100644
--- a/pkgs/custom-neovim/config/lua/mappings.lua
+++ b/pkgs/custom-neovim/config/lua/mappings.lua
@@ -27,13 +27,6 @@ mapkey("n", "<leader>to", "Open new tab", ":tabnew<cr>")
mapkey("n", "<leader>tc", "Close tab", ":tabclose<cr>")
mapkey("n", "<leader>tt", "Go to next tab", ":tabnext<cr>")
mapkey("n", "<leader>tT", "Go to previous tab", ":tabprev<cr>")
--- mapkey("n", "<leader>tr", "Rename current tab", function()
--- vim.ui.input({ prompt = "Rename tab: "}, function(input)
--- if input then
--- vim.cmd.TabRename(input)
--- end
--- end)
--- end)
-- Buffers
mapkey("n", "<leader>b", "Manage buffers", "")
@@ -46,12 +39,6 @@ mapkey("n", "<leader>bg", "Open buffer live grep picker", ":lua Snacks.picker.gr
-- Windows
mapkey("n", "<leader>w", "Manage windows", "<C-w>")
--- Fix arrow keys in wincmd
--- mapkey("n", "<c-w><left>", "Focus left", "lua vim.cmd.wincmd('h')<cr>")
--- mapkey("n", "<c-w><down>", "Focus down", "lua vim.cmd.wincmd('j')<cr>")
--- mapkey("n", "<c-w><up>", "Focus up", "lua vim.cmd.wincmd('k')<cr>")
--- mapkey("n", "<c-w><right>", "Focus right", "lua vim.cmd.wincmd('l')<cr>")
-
-- Sessions
mapkey("n", "<leader>m", "Manage sessions", "")
mapkey("n", "<leader>mm", "Open session picker", ":Autosession search<cr>")
@@ -78,8 +65,6 @@ vim.keymap.set("c", "<cr>", function()
return '<cr>'
end, { expr = true }) -- Make enter complete command.
mapkey("n", "<esc>", "Clear highlights", ":noh<cr>") -- Make esc clear highlights
--- mapkey("n", "<leader>q", "Close buffer", ":bd<cr>")
--- mapkey("n", "<leader>Q", "Force close buffer", ":bd!<cr>")
-- Newline in normal mode.
mapkey('n', '<CR>', "Add newline below", 'm`o<Esc>``')