summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/_which-key
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/_which-key')
-rw-r--r--.config/nvim/lua/_which-key/init.lua16
1 files changed, 11 insertions, 5 deletions
diff --git a/.config/nvim/lua/_which-key/init.lua b/.config/nvim/lua/_which-key/init.lua
index 65742b6..e378fb3 100644
--- a/.config/nvim/lua/_which-key/init.lua
+++ b/.config/nvim/lua/_which-key/init.lua
@@ -48,7 +48,7 @@ vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true}
vim.g.mapleader = ' '
-- no hl
-vim.api.nvim_set_keymap('n', '<Leader>h', ':set hlsearch!<CR>', {noremap = true, silent = true})
+vim.api.nvim_set_keymap('n', '<Leader>n', ':set hlsearch!<CR>', {noremap = true, silent = true})
-- explorer
vim.api.nvim_set_keymap('n', '<Leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
@@ -60,8 +60,8 @@ vim.api.nvim_set_keymap('n', '<Leader>f', ':Telescope find_files<CR>', {noremap
vim.api.nvim_set_keymap('n', '<Leader>;', ':Dashboard<CR>', {noremap = true, silent = true})
-- Comments
--- vim.api.nvim_set_keymap("n", "<leader>/", ":CommentToggle<CR>", {noremap = true, silent = true})
--- vim.api.nvim_set_keymap("v", "<leader>/", ":CommentToggle<CR>", {noremap = true, silent = true})
+vim.api.nvim_set_keymap("n", "<leader>k", ":CommentToggle<CR>", {noremap = true, silent = true})
+vim.api.nvim_set_keymap("v", "<leader>k", ":CommentToggle<CR>", {noremap = true, silent = true})
-- Zen mode
vim.api.nvim_set_keymap("n", "<leader>z", ':TZAtaraxis<CR>', {noremap = true, silent = true})
@@ -69,15 +69,21 @@ vim.api.nvim_set_keymap("n", "<leader>z", ':TZAtaraxis<CR>', {noremap = true, si
-- close buffer
vim.api.nvim_set_keymap("n", "<leader>c", ":BufferClose<CR>", {noremap = true, silent = true})
+-- split window
+vim.api.nvim_set_keymap("n", "<leader>h", ":vsplit<CR>", {noremap = true, silent = true})
+vim.api.nvim_set_keymap("n", "<leader>v", ":split<CR>", {noremap = true, silent = true})
+
-- TODO create entire treesitter section
local mappings = {
- -- ["/"] = "Comment",
+ ["k"] = "Comment",
["c"] = "Close Buffer",
["z"] = "Zen Mode",
["e"] = "Explorer",
["f"] = "Find File",
- ["h"] = "No Highlight",
+ ["n"] = "No Highlight",
+ ["v"] = "Vertical Split",
+ ["h"] = "Horizontal Split",
d = {
name = "+Debug",
b = {"<cmd>DebugToggleBreakpoint<cr>", "Toggle Breakpoint"},