mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-18 09:02:29 +00:00
Change keybinds for tabs
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
--local term_opts = { silent = true }
|
--Local term_opts = { silent = true }
|
||||||
local bind = vim.api.nvim_set_keymap
|
local bind = vim.api.nvim_set_keymap
|
||||||
local set = vim.keymap.set
|
local set = vim.keymap.set
|
||||||
|
|
||||||
-- bind a leader key
|
-- Bind a leader key
|
||||||
bind("", ";", "<Nop>", opts) -- undo any previous bind
|
bind("", ";", "<Nop>", opts) -- undo any previous bind
|
||||||
vim.g.mapleader = ";"
|
vim.g.mapleader = ";"
|
||||||
vim.g.maplocalleader = ";"
|
vim.g.maplocalleader = ";"
|
||||||
@@ -36,10 +36,10 @@ if telescope_status_ok then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Better tabs
|
-- Better tabs
|
||||||
--bind("n", "<Leader>n", ":tabnew<CR>", opts)
|
bind("n", "<Leader>t", ":tabnew<CR>", opts)
|
||||||
--bind("n", "<Leader>c", ":tabclose<CR>", opts)
|
bind("n", "<Leader>c", ":tabclose<CR>", opts)
|
||||||
--bind("n", "<Leader>l", ":tabnext<CR>", opts)
|
bind("n", "<S-k>", ":tabnext<CR>", opts)
|
||||||
--bind("n", "<Leader>h", ":tabprev<CR>", opts)
|
bind("n", "<S-j>", ":tabprev<CR>", opts)
|
||||||
|
|
||||||
-- Better window navigation
|
-- Better window navigation
|
||||||
bind("n", "<C-Left>", "<C-w>h", opts)
|
bind("n", "<C-Left>", "<C-w>h", opts)
|
||||||
@@ -54,10 +54,8 @@ bind("n", "<C-l>", ":vertical resize -2<CR>", opts)
|
|||||||
bind("n", "<C-h>", ":vertical resize +2<CR>", opts)
|
bind("n", "<C-h>", ":vertical resize +2<CR>", opts)
|
||||||
|
|
||||||
-- Navigate tabs
|
-- Navigate tabs
|
||||||
bind("n", "<S-t>", ":tabnew<CR>", opts)
|
bind("n", "<S-h>", ":tabp<CR>", opts)
|
||||||
bind("n", "<S-c>", ":tabclose<CR>", opts)
|
bind("n", "<S-l>", ":tabn<CR>", opts)
|
||||||
bind("n", "<S-n>", ":tabp<CR>", opts)
|
|
||||||
bind("n", "<S-m>", ":tabn<CR>", opts)
|
|
||||||
|
|
||||||
-- Visual --
|
-- Visual --
|
||||||
-- Stay in indent mode
|
-- Stay in indent mode
|
||||||
|
|||||||
Reference in New Issue
Block a user