vim plugins

This commit is contained in:
thek4n 2024-04-03 10:38:12 +03:00
parent 6b28c377c7
commit 8e1079a713
2 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,6 @@ map('n', '<Space>', 'O<ESC>')
-- x to blackhole
map({'n', 'v'}, 'x', '"_x')
map('n', '<bs>', '"_X')
-- Put without overwrite yanked text
@ -78,6 +77,10 @@ map("n", '<Leader>he', '<cmd>set list!<CR>',
vim.opt.listchars=[[tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶]]
-- Tab to go prev buffer
map("n", "<TAB>", ":b#<CR>", {silent = true})
-- Expand %% to dirname of current file in command line
map("c", '%%', [[getcmdtype() == ':' ? expand('%:h').'/' : '%%']], {expr = true})
@ -109,8 +112,6 @@ function toggle_number_style()
end
local function set_trouble_keymap(key, cmd)
map("n", string.format("<space>x%s", key), string.format("<cmd>TroubleToggle %s<CR>", cmd))
end

View File

@ -10,7 +10,7 @@ return {
}
},
keys = {
{ '<Leader>fb', '<cmd>Telescope buffers<CR>' },
{ '<Leader><Leader>', '<cmd>Telescope buffers<CR>' },
{ '<Leader>ff', '<cmd>Telescope find_files<CR>' },
{ '<Leader>fg', '<cmd>Telescope live_grep<CR>' },
{ '<Leader>fc', '<cmd>Telescope git_commits<CR>' },