From 07ab1ae87c453dd3cfe31f373d68986e51a7663a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Oct 2026 08:11:56 +0100 Subject: tweak(user/nvim): open in tabs and style tabs --- user/nvim/init.lua | 16 +++++++++++++++- user/zsh/.zshrc | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/user/nvim/init.lua b/user/nvim/init.lua index c8aa8d7..a2c9d76 100644 --- a/user/nvim/init.lua +++ b/user/nvim/init.lua @@ -40,7 +40,12 @@ require('vscode').setup({ -- a different color by default. Make them blue instead. group_overrides = (function() local colors = require('vscode.colors').get_colors() - local overrides = {} + local overrides = { + -- Give the active tab a brighter color than the inactive tabs. + TabLineSel = { bg = '#303030' }, + TabLine = { bg = '#181818' }, + TabLineFill = { bg = '#181818' }, + } for level = 1, 6 do overrides['@markup.heading.' .. level .. '.markdown'] = { fg = colors.vscBlue, @@ -171,6 +176,15 @@ vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { desc = 'LSP: Go to declaration', }) +-- Help opens in a split by default; open it in a tab instead. +vim.api.nvim_create_autocmd('BufWinEnter', { + callback = function() + if vim.bo.buftype == 'help' and #vim.api.nvim_tabpage_list_wins(0) > 1 then + vim.cmd('wincmd T') + end + end, +}) + -- Disable netrw's directory browser; directory buffers are handled below with MiniPick. vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 diff --git a/user/zsh/.zshrc b/user/zsh/.zshrc index 21c7780..14a3cf7 100644 --- a/user/zsh/.zshrc +++ b/user/zsh/.zshrc @@ -34,6 +34,7 @@ function ls() { ## Aliases alias ls='ls --color=auto --group-directories-first' # see also ls function alias tree='tree -aI .git --dirsfirst' +alias vim='vim -p' ## Shell variables PS1='%F{magenta}' -- cgit v1.3.1