Commit Graph

689 Commits

Author SHA1 Message Date
2495dc7b2d git: Remove nvimdiff as merge.tool 2022-03-30 03:00:46 +02:00
efe4b7a1d8 vim:plugs: Check for nodejs executable for Coc 2022-03-30 03:00:27 +02:00
4ae8a2db83 zsh:funcs: Add pgrep that uses ps aux | grep
I sometimes find `pgrep` not matching the processes I am searching for,
but `ps aux | grep ...` did not disappoint yet.
2022-03-30 01:43:17 +02:00
291af2fdb0 vim:keys: Hotfix loaded_gutentags
`loaded_gutentags` has stopped working, leading to `:Tags` not being
binded.
2022-03-29 16:56:45 +02:00
4c7b054336 vim:keys: Correct the next/last misspelled word 2022-03-29 16:48:08 +02:00
5df9e4d6ee zsh,vim: Add WIP Zettelkasten tooling
Add `zk`, an autoloadable function that creates a new zettel after a
template in the right directory.
Add `zettel` vim ftplugin.
2022-03-28 23:48:51 +02:00
dc76a341a0 vim:ftplugin: Adjust to new colorcolumn settings
Since
a98457e66b ("vim:autocmd: Adjust colorcolumn with &textwidth")
or correctly sine
fc0969abba ("vim: Drop textwidth autocmd for native way")
it is not necessary to add the `textwidth` manually to `colorcolumn`.
The colorcolumns are now also placed *behind* textwidth.
2022-03-28 23:42:22 +02:00
fc0969abba vim: Drop textwidth autocmd for native way
Instead of needing a manual autocmd that triggers on textwidth changes,
colorcolumn supports offsets to textwidth natively.
2022-03-22 16:18:58 +01:00
94271371dc vim:autocmd: Fix typo in OptionSet textwidth
The old `textwidth` value is meant to be subtracted from colorcolumn, to
then add the new one.

Fixes: 41656d28d6 ("vim:autocmd: Reset textwidth value in colorcolumn")
2022-03-21 15:24:31 +01:00
71f41ab994 git: Set blame.date to short 2022-03-20 17:30:48 +01:00
41656d28d6 vim:autocmd: Reset textwidth value in colorcolumn
Instead of overwriting the entire colorcolumn value, reset only the
textwidth value, by subtracting it first and then readding it.
2022-03-18 17:33:56 +01:00
11530608c9 zsh:p10k: Reenable time segment
I disabled that in the past but want have it again.
2022-03-10 14:57:17 +01:00
72c616d378 zsh:p10k: Reapply custom changes
I wanted to have them standalone in a commit once for better
transparency instead of reapplying them before committing the updated
theme in the last commit:
529c41abcf ("zsh:p10k: Reset to `p10k configure`")
2022-03-10 14:56:47 +01:00
529c41abcf zsh:p10k: Reset to p10k configure
Rerun the p10k configurator with the current version.
2022-03-10 14:56:24 +01:00
a4760b7518 vim:plugins: Source optional plugins directly
When adding the `!` only the paths are added to the `runtimepath` and
nothing is sourced (yet). As `keys.vim` for example checks if gutentags
is loaded before creating a binding to :Tags this has to change and the
plugins need to be sourced directly.
2022-03-03 01:19:14 +01:00
1ff96687d3 zsh:syntax-highlighting: Update to include 0ddb1a8
Update zsh-syntax-highlighting to include 0ddb1a8d5120 as this fixes a
highlighting bug with zsh-autosuggestions introduced with zsh 5.8.1.
See following issues:
 - 662 in zsh-autosuggestions
 - 857 in zsh-syntax-highlighting
2022-02-28 12:11:44 +01:00
0369218114 vim:settings: Include - in &iskeyword 2022-02-24 17:39:48 +01:00
a49bc5f1b5 bin:timetracking: Remove padding 0 prefix
Remove a potential padding `0` as prefix as the number is then
recognized as an octal number.
2022-02-24 17:39:07 +01:00
1be73d5e5a i3: Open monitor-setup in a floating terminal
Open monitor-setup in a floating terminal in the upper left corner
instead of a full size window.
2022-02-22 13:19:27 +01:00
322cdb28f2 i3: Add binding for scratchpad bitwarden window 2022-02-22 13:18:34 +01:00
020a132c13 zsh:alias: Alias gp to git push
As I mostly fetch and then merge or rebase instead of pulling `git push`
can have the shorter variant of its alias.
2022-02-20 23:52:13 +01:00
6b2a03222b zsh:keys: Bind ^3 to pound-insert 2022-02-20 23:48:59 +01:00
0ed5e711bf zsh:alias: Add gf for git fetch 2022-02-17 16:54:28 +01:00
2b02ee50b4 zsh:zprofile: Use $XDG_CONFIG_HOME for tmux config 2022-02-17 15:54:02 +01:00
5794af1c52 zsh:autoload:git-track: Make more portable
Some distributions ship older versions of `column` that do not have the
flags `-dNLO`. This is a workaround around this limitation that creates
the same output using other tools.
2022-02-17 15:40:51 +01:00
6bd5031d4e tmux: Allow vims's hjkl to navigate panes 2022-02-17 15:29:12 +01:00
eedcb277fb tmux: Open new windows in current working dir 2022-02-17 15:28:28 +01:00
fafc7e1bef vim: Deactivate cursorline
With the highlighting of the word under the cursor this kind of gets in
the way as both are using the same color to highlight.
2022-02-17 15:22:32 +01:00
9796992737 vim:autocmd: Highlight word under cursor 2022-02-17 15:21:51 +01:00
e268a2fd57 bin:timetracking: stdin, curr year, soft columns 2022-02-17 15:17:33 +01:00
f994d8bf69 vim:keys: Use <Esc> to set nohlsearch
Use <Esc> to set `nohlsearch` instead of <CR>.
<Esc> has no purpose in normal mode and has the benefit, that the cursor
is not moved.
2022-02-16 00:55:03 +01:00
a98457e66b vim:autocmd: Adjust colorcolumn with &textwidth 2022-02-16 00:54:19 +01:00
2cd147cc32 vim: Set colorcolumn to textwidth
Set &colorcolumn to &textwidth instead of hardcoding it to the same
value.
2022-02-12 13:11:44 +01:00
a14478f758 zsh: Add _page_readme_chpwd_handler()
Open READMEs in a pager when going into a directory that contains one.
2022-02-07 04:22:32 +01:00
17433d0528 git:core.pager: Remove the search pattern
This gets really annoying as it complains in many cases that it cannot
find a match for the pattern when the pager is used for other things
than commits.
2022-02-03 18:59:00 +01:00
54d716510b git: Drop function in spull
The function is not needed as git can just execute chains of commands.
2022-02-03 18:56:38 +01:00
7252bee741 git: Add filter-repo as alias 2022-02-03 18:47:24 +01:00
8c1f4b20f5 git: Add git-filter-repo as submodule 2022-02-03 18:34:33 +01:00
00355ec6f7 git: Enable rerere
Activate recording of resolved conflicts, so that identical conflict
hunks can be resolved automatically, should they be encountered again.
2022-02-03 18:31:20 +01:00
771232217e zsh:zprofile: Always export $LESS* variables 2022-02-03 18:31:10 +01:00
98e9c8abed less: Display ANSI colors by default 2022-02-03 18:31:00 +01:00
fe16087da4 less: Enable mouse-support 2022-02-03 18:30:59 +01:00
00de841771 zsh:zprofile: Do not set $MANPAGER to nvim
Do not set `MANPAGER` to `nvim` as `nvim-man` is used already and in the
case that it does not open `nvim` I want to use `less` as **pager**.
This makes it possible to use `man -- <page>` as 'hack' to view the page
in `less` for example if a real pager is desired because of the loading
time (e.g. `zshall`).
2022-02-03 18:30:57 +01:00
6d64a0e609 zsh:funcs:nvim-man: Format nvim commands 2022-02-03 18:30:56 +01:00
dd7302f311 zsh:funcs:nvim-man: Use subjunctive in comment 2022-02-03 18:30:54 +01:00
5312e42a09 zsh:funcs:nvim-man: Use [[ for option check
"${1#-}" is not properly parsed in `((` when long options containing a
`=` are passed (`bad math expression: operand expected`).
2022-02-03 18:30:42 +01:00
3dbffbc08e zsh:funcs:nvim-man: Check if stdout is terminal
If `stdout` is not a terminal, `command man` should be used as `nvim`
won't work.
2022-02-03 18:30:39 +01:00
46605c7a84 zsh:funcs:nvim-man: Use man if option is passed
If an option without arguments like `--version` is passed, `nvim-man`
should use `command man` as well.
2022-02-03 18:30:38 +01:00
e55652fd44 zsh:funcs:nvim-man: Move page existence check call
Check for the existence of the page only if `nvim` would be executed.
2022-02-03 18:30:36 +01:00
1be26adfc9 zsh:funcs:nvim-man: Use minimal config + scrolloff
Load only the `man.vim` plugin, nothing else. This should speed up the
startup a bit. It will never be as fast as `less` though, as it loads
the whole file first.
2022-02-03 18:29:37 +01:00