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-26 16:49:21 +0100 |
| commit | 07ab1ae87c453dd3cfe31f373d68986e51a7663a (patch) | |
| tree | f3a820c29bfc5ea9dfd2236a1a82f269c2bde87e | |
| parent | ceadf032b8fded9c37845d3e0f51917dd180cccd (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 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}' |
