summaryrefslogtreecommitdiff
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
parent66c0ccc333b52d90163f3e8880644376c6f52321 (diff)
minor updates
-rw-r--r--.config/alacritty/alacritty.yml2
-rw-r--r--.config/nvim/lua/_which-key/init.lua16
-rw-r--r--.config/tmux/.tmux.conf7
3 files changed, 17 insertions, 8 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 210a7aa..d8570de 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -55,7 +55,7 @@ font:
family: SpaceMono Nerd Font
# Style can be specified to pick a specific face.
# style: Italic
- size: 9.0
+ size: 8.0
offset:
x: 0
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"},
diff --git a/.config/tmux/.tmux.conf b/.config/tmux/.tmux.conf
index 12344cd..0fda630 100644
--- a/.config/tmux/.tmux.conf
+++ b/.config/tmux/.tmux.conf
@@ -1,6 +1,7 @@
# show session, window, pane in left status bar
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
+set -g @plugin "arcticicestudio/nord-tmux"
# Allows vim to display colors correctly.
set -g default-terminal 'screen-256color'
@@ -18,8 +19,8 @@ setw -g mouse off
#setw -g alternate-screen on
# split panes using | and -
-bind | split-window -h
-bind - split-window -v
+bind s split-window -h
+bind v split-window -v
unbind '"'
unbind %
@@ -53,6 +54,8 @@ bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
+# 0 is too far from ` ;)
+set -g base-index 1
# No delay for escape key press
set -sg escape-time 0