feat: close buffers with <C-w>
This commit is contained in:
parent
39153f91c1
commit
94a1b5c7bc
1 changed files with 9 additions and 9 deletions
|
@ -7,7 +7,7 @@ vim.cmd([[
|
||||||
]])
|
]])
|
||||||
|
|
||||||
local function nnoremap(key, command)
|
local function nnoremap(key, command)
|
||||||
vim.api.nvim_set_keymap("n",key,command, { noremap = true })
|
vim.api.nvim_set_keymap("n", key, command, {noremap = true})
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
@ -24,7 +24,7 @@ nnoremap("<TAB>", ":TablineBufferNext<CR>")
|
||||||
nnoremap("<S-TAB>", ":TablineBufferPrevious<CR>")
|
nnoremap("<S-TAB>", ":TablineBufferPrevious<CR>")
|
||||||
|
|
||||||
-- fugitive
|
-- fugitive
|
||||||
nnoremap("<leader>G", ":tab G<CR>")
|
nnoremap("<leader>g", ":Git<CR>")
|
||||||
|
|
||||||
-- telescope
|
-- telescope
|
||||||
nnoremap("<leader>ff", "<Cmd>Telescope find_files theme=dropdown<CR>")
|
nnoremap("<leader>ff", "<Cmd>Telescope find_files theme=dropdown<CR>")
|
||||||
|
@ -44,4 +44,4 @@ end
|
||||||
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
||||||
|
|
||||||
-- buffer closing
|
-- buffer closing
|
||||||
nnoremap("<leader>q", ":Bdelete<CR>")
|
nnoremap("<C-w>", ":Bdelete<CR>")
|
||||||
|
|
Loading…
Reference in a new issue