From ecdec0121935ddebdddaf66b8f312653344f1c98 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Tue, 17 Aug 2021 00:58:14 +0200 Subject: [PATCH] updates --- nvim/init.lua | 26 ++++++++++---------------- tmux/tmux.conf | 8 ++++---- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index d5412d5..dc52f80 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -137,10 +137,10 @@ map("n", "", ":bnext", { noremap = true }) map("n", "", ":tabprev", { noremap = true }) map("n", "", ":tabnext", { noremap = true }) -- resize windows with hjkl -map("n", "", "<", { noremap = true }) -map("n", "", "-", { noremap = true }) -map("n", "", "+", { noremap = true }) -map("n", "", ">", { noremap = true }) +map("n", "", "5<", { noremap = true }) +map("n", "", "5-", { noremap = true }) +map("n", "", "5+", { noremap = true }) +map("n", "", "5>", { noremap = true }) -- quickfix window map("n", "", ":cp", { noremap = true }) map("n", "", ":cn", { noremap = true }) @@ -181,6 +181,8 @@ require("packer").startup {function(use) config = function() local map = vim.api.nvim_set_keymap map("", "", ":vertical Git:vertical resize 60", {}) + map("", "gg", ":vertical Gclog!:vertical resize 60", {}) + map("", "gc", ":vertical 0Gclog!:vertical resize 60", {}) end } @@ -273,7 +275,7 @@ require("packer").startup {function(use) vim.g.seoul256_background = 235 end } - vim.cmd "colorscheme seoul256" + vim.cmd "colorscheme jellybeans" -- coloring of colornames use {"rrethy/vim-hexokinase", @@ -327,13 +329,6 @@ require("packer").startup {function(use) end } - use {"dkarter/bullets.vim", - config = function() - vim.g.bullets_outline_levels = {"ROM", "ABC", "num", "abc", "rom", "std-", "std*"} - vim.g.bullets_enabled_file_types = {"markdown", "text", "gitcommit"} - end - } - use {"mbbill/undotree", config = function() local map = vim.api.nvim_set_keymap @@ -430,6 +425,7 @@ use {"nvim-treesitter/nvim-treesitter", map("n", "", "Telescope find_files", opts ) map("n", "", "Telescope git_files", opts ) map("n", "", "Telescope live_grep", opts ) + map("n", "", "Telescope grep_string", opts ) map("n", "", "Telescope buffers", opts ) map("n", "", "Telescope filetypes", opts ) map("n", "", "Telescope colorscheme", opts ) @@ -437,9 +433,6 @@ use {"nvim-treesitter/nvim-treesitter", map("v", "la", "Telescope lsp_range_code_actions", opts ) map("n", "ld", "Telescope lsp_document_diagnostics", opts ) map("n", "lD", "Telescope lsp_workspace_diagnostics", opts ) - map("n", "gg", "Telescope git_status", opts ) - map("n", "gc", "Telescope git_commits", opts ) - map("n", "gC", "Telescope git_bcommits", opts ) map("n", "", "Telescope", opts ) require("telescope").setup{ defaults = { @@ -573,7 +566,7 @@ use {"nvim-treesitter/nvim-treesitter", } local map = vim.api.nvim_set_keymap local opts = { noremap = true } - map("n", "", ":Trouble", opts) + map("n", "", ":Trouble lsp_workspace_diagnostics", opts) end } @@ -589,6 +582,7 @@ use {"nvim-treesitter/nvim-treesitter", WIP = { icon = " ", color = "warning" }, TODO = { icon = " ", color = "warning" }, PERF = { icon = " ", color = "info" }, + TEST = { icon = " ", color = "info" }, MAYBE = { icon = " ", color = "default" }, IDEA = { icon = " ", color = "hint" }, }, diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 2984722..a7f0c45 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -85,10 +85,10 @@ bind i display-panes bind r source-file ~/.config/tmux/tmux.conf \; refresh-client \; display-message "Config reloaded" # resize controls -bind -r h resize-pane -L 2 \; display-message "Resize left" -bind -r l resize-pane -R 2 \; display-message "Resize right" -bind -r k resize-pane -U 2 \; display-message "Resize up" -bind -r j resize-pane -D 2 \; display-message "Resize down" +bind -r h resize-pane -L 10 \; display-message "Resize left" +bind -r l resize-pane -R 10 \; display-message "Resize right" +bind -r k resize-pane -U 10 \; display-message "Resize up" +bind -r j resize-pane -D 10 \; display-message "Resize down" # zoom control bind -n M-o resize-pane -Z