From 1f05dec8bd65a8163d9cb20308b53f89f4633ae4 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 2 May 2021 00:30:45 +0200 Subject: minor updates --- .config/alacritty/alacritty.yml | 2 +- .config/nvim/lua/_which-key/init.lua | 16 +++++++++++----- .config/tmux/.tmux.conf | 7 +++++-- 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', '', '', {noremap = true, silent = true} vim.g.mapleader = ' ' -- no hl -vim.api.nvim_set_keymap('n', 'h', ':set hlsearch!', {noremap = true, silent = true}) +vim.api.nvim_set_keymap('n', 'n', ':set hlsearch!', {noremap = true, silent = true}) -- explorer vim.api.nvim_set_keymap('n', 'e', ':NvimTreeToggle', {noremap = true, silent = true}) @@ -60,8 +60,8 @@ vim.api.nvim_set_keymap('n', 'f', ':Telescope find_files', {noremap vim.api.nvim_set_keymap('n', ';', ':Dashboard', {noremap = true, silent = true}) -- Comments --- vim.api.nvim_set_keymap("n", "/", ":CommentToggle", {noremap = true, silent = true}) --- vim.api.nvim_set_keymap("v", "/", ":CommentToggle", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "k", ":CommentToggle", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("v", "k", ":CommentToggle", {noremap = true, silent = true}) -- Zen mode vim.api.nvim_set_keymap("n", "z", ':TZAtaraxis', {noremap = true, silent = true}) @@ -69,15 +69,21 @@ vim.api.nvim_set_keymap("n", "z", ':TZAtaraxis', {noremap = true, si -- close buffer vim.api.nvim_set_keymap("n", "c", ":BufferClose", {noremap = true, silent = true}) +-- split window +vim.api.nvim_set_keymap("n", "h", ":vsplit", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "v", ":split", {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 = {"DebugToggleBreakpoint", "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 -- cgit v1.2.3-70-g09d2