commit eb7ad9af67f6ad4d5cf0d729e80f251d0ad19586
parent b955682e4d99659696705ad3b5c33fae40b42492
Author: Tonton <tonterface@proton.me>
Date: Sun, 1 Nov 2026 19:03:32 +0100
update mappings
Diffstat:
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/init.lua b/init.lua
@@ -29,6 +29,7 @@ Plug('ibhagwan/fzf-lua') -- fuzzyfind
Plug('MeanderingProgrammer/render-markdown.nvim') -- render markdown
Plug('neovim/nvim-lspconfig') -- LSP
Plug('vimwiki/vimwiki') -- vimwiki
+Plug('cgit/vim-redact-pass')
-- lsp
Plug('clangd/clangd')
diff --git a/lua/config/mappings.lua b/lua/config/mappings.lua
@@ -10,11 +10,17 @@ vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- buffers
-map('n', "<S-k>", ":bnext<CR>")
-map('n', "<S-j>", ":bprevious<CR>")
+map('n', "<S-j>", ":bnext<CR>")
+map('n', "<S-k>", ":bprevious<CR>")
map('n', "<leader>x", ":BufferClose<CR>")
map('n', "<leader>v", ":vsplit<CR>:bnext<CR>")
+-- re-order buffers
+map('n', "<AS-j>", "<Cmd>BufferMoveNext<CR>")
+map('n', "<AS-k>", "<Cmd>BufferMovePrevious<CR>")
+
map('n', "<leader>h", ":sp | wincmd j | term<CR>") -- horizontal terminal
+map('n', "<leader>t", ":term<CR>") -- horizontal terminal
+map('t', "<C-x>", "<C-\\><C-N>")
-- windows
-- navigation
diff --git a/lua/plugins/whichkey.lua b/lua/plugins/whichkey.lua
@@ -7,6 +7,7 @@ wk.add({
{"<leader>f", desc = "fuzzy search cwd"},
{"<leader>g", desc = "grep"},
{"<leader>h", desc = "Open horizontal terminal"},
+ {"<leader>t", desc = "Open terminal"},
{"<leader>i", desc = "auto indent", mode = "v"},
})