From e00cb24b472d555ba7f698c013500263fb385c9c 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 d176629..1a6e119 100644 --- a/user/nvim/init.lua +++ b/user/nvim/init.lua @@ -74,7 +74,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, @@ -220,6 +225,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 7fbcc6b..6e4a197 100644 --- a/user/zsh/.zshrc +++ b/user/zsh/.zshrc @@ -43,6 +43,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