[NEOVIM] TreeToggle update keybinding
This commit is contained in:
parent
c79428b0cf
commit
c12501c5cc
1 changed files with 6 additions and 4 deletions
|
@ -9,8 +9,9 @@ local function init()
|
||||||
map('n', '<space>ps', [[<cmd>lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})<CR>]])
|
map('n', '<space>ps', [[<cmd>lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})<CR>]])
|
||||||
|
|
||||||
-------------------- NvimTreeToggle ------------------------
|
-------------------- NvimTreeToggle ------------------------
|
||||||
map('n', '<F4>', '<cmd>NvimTreeToggle<CR>')
|
map('n', 'tt', '<cmd>NvimTreeToggle<CR>')
|
||||||
map('n', '<F5>', '<cmd>NvimTreeRefresh<CR>')
|
map('n', 'tr', '<cmd>NvimTreeRefresh<CR>')
|
||||||
|
map('n', 'tf', '<cmd>NvimTreeFocus<CR>')
|
||||||
|
|
||||||
-------------------- BarBar --------------------------------
|
-------------------- BarBar --------------------------------
|
||||||
-- Move to previous/next
|
-- Move to previous/next
|
||||||
|
@ -18,7 +19,7 @@ local function init()
|
||||||
map('n', '<A-.>', ':BufferNext<CR>', opts)
|
map('n', '<A-.>', ':BufferNext<CR>', opts)
|
||||||
-- Re-order to previous/next
|
-- Re-order to previous/next
|
||||||
map('n', '<A-<>', ':BufferMovePrevious<CR>', opts)
|
map('n', '<A-<>', ':BufferMovePrevious<CR>', opts)
|
||||||
map('n', '<A->>', ' :BufferMoveNext<CR>', opts)
|
map('n', '<A->>', ':BufferMoveNext<CR>', opts)
|
||||||
-- Close buffer
|
-- Close buffer
|
||||||
map('n', '<A-c>', ':BufferClose<CR>', opts)
|
map('n', '<A-c>', ':BufferClose<CR>', opts)
|
||||||
|
|
||||||
|
@ -58,6 +59,7 @@ local function init()
|
||||||
|
|
||||||
-------------------- OTHER ---------------------------------
|
-------------------- OTHER ---------------------------------
|
||||||
map('i', '<Esc>', '<Esc>:w<CR>')
|
map('i', '<Esc>', '<Esc>:w<CR>')
|
||||||
|
map('n', '<Esc>', '<Esc>:w<CR>')
|
||||||
|
|
||||||
-------------------- COMMANDS ------------------------------
|
-------------------- COMMANDS ------------------------------
|
||||||
cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode
|
cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode
|
||||||
|
@ -65,4 +67,4 @@ end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
init = init
|
init = init
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue