diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-26 08:11:56 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-30 18:02:24 +0100 |
| commit | e00cb24b472d555ba7f698c013500263fb385c9c (patch) | |
| tree | 88616164e4023572fa185930397e97fb809a61d6 | |
| parent | 0f003803a6f93e5c2d3e31fb22581955e9cdc4b2 (diff) | |
tweak(user/nvim): open in tabs and style tabs
| -rw-r--r-- | user/nvim/init.lua | 16 | ||||
| -rw-r--r-- | user/zsh/.zshrc | 1 |
2 files changed, 16 insertions, 1 deletions
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}' |
