From 91f7fd2e024f7b89ed903647111f39cc82ee7987 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Tue, 3 Aug 2021 10:26:11 +0200 Subject: [PATCH] vim and tmux small config edits --- nvim/init.lua | 10 ++++++---- tmux/tmux.conf | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index af1bf98..7608b52 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -56,7 +56,7 @@ opt.wildignorecase = true opt.wildignore = opt.wildignore + {"*swp", "*.class", "*.pyc", "*.png", "*.jpg", "*.gif", "*.zip", "*/tmp/*", "*.o", ".obj", "*.so"} -- cursor -opt.scrolloff = 1 -- Lines of context +opt.scrolloff = 5 -- Lines of context opt.scrolljump = 1 -- Lines to scroll when cursor leaves screen opt.sidescrolloff = 4 -- Columns of context opt.showmatch = true -- Show matching brackets / parentheses @@ -133,8 +133,10 @@ map("n", "o", "m`o``", { noremap = true }) -- Insert a newline in -- WINDOWS / BUFFERS -- make splits and tabs -map("n", "", ":vnew", { noremap = true }) -map("n", "", ":new", { noremap = true }) +map("n", "", ":vnew", { noremap = true }) +map("n", "", ":new", { noremap = true }) +map("n", "", ":vsplit", { noremap = true }) +map("n", "", ":split", { noremap = true }) map("n", "", ":tabe %", { noremap = true }) map("n", "", ":tabnew", { noremap = true }) -- buffers and tabs @@ -227,7 +229,7 @@ require("packer").startup {function(use) use {"kyazdani42/nvim-tree.lua", requires = {"kyazdani42/nvim-web-devicons"}, config = function() - vim.g.nvim_tree_auto_open = 1 + vim.g.nvim_tree_auto_open = 0 vim.g.nvim_tree_disable_netrw = 0 local map = vim.api.nvim_set_keymap map("n", "", ":NvimTreeToggle", {noremap = true}) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index deb0046..2984722 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -24,7 +24,8 @@ set -g history-limit 20000 set -g focus-events on # screen colors -set -g default-terminal "tmux-256color" +set-option -ga terminal-overrides ",st-256color:Tc" +set -g default-terminal "st-256color" # Start with index 1 set -g base-index 1