summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-02 00:30:45 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-02 00:30:45 +0200
commit1f05dec8bd65a8163d9cb20308b53f89f4633ae4 (patch)
tree5b0a62b15f29a0501fc014c3e572ba7b2433a280 /.config/nvim
parent66c0ccc333b52d90163f3e8880644376c6f52321 (diff)
minor updates
Diffstat (limited to '.config/nvim')
-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"},