Fix few things

This commit is contained in:
François
2026-01-24 10:21:03 +01:00
parent 8c73228cc7
commit 7e3d94dcbb
2 changed files with 23 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ local function map(m, k, v)
vim.keymap.set(m, k, v, { noremap = true, silent = true })
end
-- set leader
map("", "<Space>", "<Nop>")
vim.g.mapleader = " "
@@ -32,10 +34,12 @@ map("n", "<A-9>", "<Cmd>BufferGoto 9<CR>")
map("n", "<A-0>", "<Cmd>BufferLast<CR>")
map("n", "<A-p>", "<Cmd>BufferPin<CR>")
-- misc
-- TreeView
--map("n", "<leader>s", ":%s//g<Left><Left>") --replace all
map("n", "<leader>T", ":NvimTreeToggle<CR>") --open file explorer
map("n", "<leader>t", ":NvimTreeFocus<CR>") --focus file explorer
-- Twilight
map("n", "<leader>l", ":Twilight<CR>") --surrounding dim
-- fzf and grep