Commit graph

202 commits

Author SHA1 Message Date
ebda8d4fa2 zsh: factor out checking for command availability 2023-03-05 01:09:51 +01:00
70bf3b3118 zsh: minor refactors 2023-03-05 01:09:51 +01:00
e46a370e2e zsh: move environment setup to .zprofile 2023-03-05 01:09:51 +01:00
9326034ef9 nvim: make nvim-tree on_attach keymaps local to the tree buffer 2023-03-01 11:55:03 +01:00
75d637ac04 nvim: recognize git & ssh configs within the dotfiles tree 2023-02-28 22:43:50 +01:00
f131f81c51 install: remove stow dependency and reorganize repo 2023-02-28 22:39:51 +01:00
2cbdf5607a nvim: nvim-tree deprecations: use api and on_attach 2023-02-27 19:01:16 +01:00
2e95a30cd9 zsh: remove aliases I never use 2023-02-26 18:11:51 +01:00
3613f7d61f nvim: better error handling during packer bootstrap 2023-01-31 14:57:51 +01:00
0264b5b302 git: tweaks to log aliases 2023-01-31 13:36:34 +01:00
ad8dd02a4e git: add aliases for branches 2023-01-31 13:08:31 +01:00
12217bc70b nvim: visual tweaks to Telescope 2023-01-31 10:54:08 +01:00
22836262a3 nvim: remove keymaps that I never use 2023-01-31 10:54:08 +01:00
88fe23f878 Revert "nvim: keymap to move to begin/end of line in command line mode"
This reverts commit eedb9b8e2e.

I hadn't noticed that <c-e> works by default already in command mode and
<c-b> moves the cursor to the beginning of the line. I'll use the
default key bindings.
2023-01-30 19:43:18 +01:00
eedb9b8e2e nvim: keymap to move to begin/end of line in command line mode 2023-01-30 18:47:36 +01:00
93770849ce tmux: add bindings to join-pane above and left 2023-01-30 18:36:26 +01:00
feed74234d tmux: config formatting change 2023-01-30 18:32:24 +01:00
754e846068 tmux: enable focus-events 2023-01-30 18:31:11 +01:00
2d22b82245 nvim: disable 'wrapscan' 2023-01-29 22:44:18 +01:00
55239a2977 nvim: keymap for better search results navigation 2023-01-29 20:43:07 +01:00
95021fe33b nvim: keymap to improve joining lines 2023-01-29 20:43:07 +01:00
4c51020bac nvim: improve Telescope man_pages fix for macOS and FreeBSD
This commit makes sure that the fix from 681dd28 is only applied when
running on macOS Ventura (13.0) and upwards (i.e. Darwin >= 22.0) or
FreeBSD.
2023-01-29 20:42:28 +01:00
4b1588f253 nvim: customize most Telescope pickers in the setup() function
This is just a refactor to make the code a bit nicer to read.
2023-01-29 15:15:31 +01:00
681dd280cb nvim: fix :Telescope man_pages in macOS Ventura
See: https://github.com/nvim-telescope/telescope.nvim/issues/2326#issuecomment-1407502328
2023-01-28 23:37:39 +01:00
82df3ed13e nvim: remove 'cursor' layout from cycle in Telescope 2023-01-28 23:37:13 +01:00
cf5d50e324 nvim: remove conflicting keymap <c-h> in Telescope file_browser
This key combination is used for toggling hidden files by default, which
is more useful than what I was doing.
2023-01-28 23:35:42 +01:00
051f7f876a zsh: fix typo (missing =) in lt alias 2023-01-28 18:56:54 +01:00
406b092b03 zsh: use long option names in aliases where possible
Makes sense to use long option names when I am not doing the typing, as
they are more descriptive than most single letters.
2023-01-26 22:17:47 +01:00
2a16007dfa zsh: remove listing of git status with exa
The git status information makes `exa` choke a bit in very large
repositories, which I have been navigating a lot lately.
2023-01-26 22:08:54 +01:00
3bd5c8251b zsh: add tlt alias for limiting tree level 2023-01-25 16:20:40 +01:00
666fdf9134 zsh: use Homebrew's make if available 2023-01-22 00:36:54 +01:00
fd9708e5ea zsh: alias vi to nvim 2023-01-22 00:36:36 +01:00
d9cb38c8b2 vim: move all configuration into the user module 2022-12-18 20:31:00 +01:00
ce81d3553a vim: keymap to switch from terminal mode to normal mode 2022-12-16 20:26:57 +01:00
c728f7b085 vim: tweak how lualine displays the mode 2022-12-16 20:26:38 +01:00
576ded4646 vim: change keymap to start treesitter incremental selection
The previous '<CR>' mapping was causing too many false starts of the
incremental selection, especially because of the way I have my keyboard
configured, where the Ctrl and Enter keys are "shared".
2022-12-16 08:51:23 +01:00
460727c6c8 vim: learn my name's spelling 2022-12-15 18:25:26 +01:00
c3fd8e6f9e vim: enable filetype detection for local SSH configurations 2022-12-14 12:16:58 +01:00
b52c289738 vim: fix packer bootstrapping 2022-12-13 12:57:02 +01:00
3e61fb902a vim: initialize colorizer only if termguicolors is set
This additional check is needed because when nvim is started as `nvim -u
NORC`, my configuration that sets `termguicolors` is not called but
colorizer IS installed and requires `termguicolors` to be set. If it is
not set, the setup() function prints an error.
2022-12-13 12:54:26 +01:00
b824717c68 vim: prevent errors on startup when plugins are not installed 2022-12-13 12:53:37 +01:00
dad81aecb5 vim: move solarized.nvim plugin into dotfiles repository 2022-12-12 21:04:16 +01:00
101f42934f tmux: simplify status line 2022-12-12 20:48:00 +01:00
f899112ec0 zsh: add GNU tar to PATH if available on macOS 2022-11-19 12:08:16 +01:00
fb1b6a3bda zsh: fix changing cursor shape in tmux + iTerm2
Most terminals use the VT520 DECSCUSR escape sequences for setting the
cursor shape, documented at:

    https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt

iTerm2, however, uses a set of proprietary escape codes, documented at:

    https://iterm2.com/documentation-escape-codes.html

The issue I had was that tmux recognizes the VT520 DECSCUSR codes and
knows how to translate them itself to iTerm2. But tmux does not accept
the iTerm2 codes as input, so deciding to use these proprietary codes
only based on the presence of `$ITERM_SESSION_ID` did not work when
running tmux. The solution is to revert to the VT520 codes when running
inside of tmux (even inside iTerm2) and let it translate to iTerm2.
2022-11-18 20:34:32 +01:00
3b21a2b900 tmux: visual tweak to the status line
iTerm2 is still acting up under some circumstances and the special
symbols that I was using to delimit the current window name get messed
up. This is also an opportunity to make the configuration a bit more
visually minimal :).
2022-11-15 09:42:08 +01:00
f3a493d6f6 vim: more tweaks to lualine
1. Show the filename in italics if file is modified.
2. Put the plus sign on the right of the filename and make it stand out.
3. The symbols I was using were not rendering well on macOS and don't
   really have the time to debug this now. Just use simpler line.
2022-10-25 20:55:14 +02:00
8242d356bc git: highlight dates and author in logs 2022-10-25 20:18:24 +02:00
ded2f56188 git: update committer e-mail 2022-10-24 17:52:28 +02:00
499824d955 git: minor comment reformat 2022-10-24 13:41:27 +02:00