Commit Graph

371 Commits

Author SHA1 Message Date
2848cf339a bat: Initial commit
Set a theme and a style. Since currently I only use it for previews in
fzf and ranger I do not need all the fancy bits, but enjoy the syntax
highlighting.
2020-12-28 03:09:02 +01:00
2b64781000 zsh:alias: Use nvim's Man function instead of pipe
Just setting neovim as the `MANPAGER` practically results in a pipe.
The problem with this is that `man` puts hard line breaks into the text
depending on the current window width. When the width changes afterwards
the input naturally doesn't change.
When using neovim's `Man` function this is resolved.
2020-12-28 03:01:35 +01:00
a440e8b61e zsh: Use dictionary for command existence check
Use the `commands` dictionary from zsh instead of always calling
`command`.

Regex used:
s/command -v \([^ ]*\) &>\/dev\/null/(( $+commands[\1] ))/g
2020-12-28 02:58:46 +01:00
4a0b9e5cf1 vim: Disable swapfile-warning instead of the files
This should make it possible to actually recover something on a crash
without those warnings.
2020-12-27 23:55:39 +01:00
91091eb4c4 vim: Set bat (fzf preview) theme 2020-12-24 02:54:19 +01:00
350158af1a vim: Add binding for fzf's :Lines 2020-12-24 02:48:59 +01:00
d9971b7672 vim: Create ftdetect for arm + auto plugin loading 2020-12-24 02:42:54 +01:00
7c6909c0bf vim: Move vimtex settings into tex ftplugin
And load vimtex automatically. I discarded the autocommand as vimtex
only loads a small ftdetect script for tex and the rest of the plugin is
made up of ftplugins, indent files, etc. by itself.
The overhead of the autocmd feels bigger than just loading the small
component and letting vim doing the rest.
(But this is in now way tested/benchmarked. That is just how I feel and
it makes it a tad cleaner)
2020-12-24 02:31:10 +01:00
69e2e43fc7 vim: Move after/ftplugin to ftplugin
There is no reason why the plugins should be in after/.
2020-12-24 02:26:36 +01:00
5b45049070 vim: Disable pesky swap files
For now... Probably until my first crash with unsaved changes...
But right now they just annoy me.
2020-12-24 02:01:11 +01:00
c3f8f3761d vim: Use theme colors in fzf 2020-12-24 02:00:42 +01:00
00c6f56c69 vim: Use $XDG_DATA_HOME for spell files 2020-12-24 01:59:27 +01:00
03564cf46f zsh:options: Add new options 2020-12-23 20:10:21 +01:00
fd06f73e01 zsh:options: Add line long group separators 2020-12-23 20:09:16 +01:00
6e29b8b51a vim:crypt-umount(): Continue if already unmounted 2020-12-23 19:53:28 +01:00
03b6ba72ae meta:hooks:commit-msg: Break on first comment
Because `git diff --staged -u | head -1` returns nothing when rebasing
the hook checked the line length of the commit changes (verbose commit).
2020-12-23 19:45:56 +01:00
e6262b6593 vim: Load other always-on plugins too
And move the plugin specific keybindings into 40-keybindings.vim.
`packloadall` sources the plugins directly in contrast to `packadd`.
Because of that we can access the `g:loaded_*` variables and do not have
to specify our own keybindings for vim-surround as now the user bindings
are loaded later and overwrite possible clashes.
2020-12-23 19:26:05 +01:00
b6e92aef0e vim: Load 'easy' always-on plugins automatically
Load always-on plugins that do not need extra configuration
automatically through vim's pack/*/start directory.
2020-12-23 19:19:21 +01:00
ba2e85c988 zsh:options: Reformat
Sort by groups as in zshoptions(1) and keep the full description of the
option above the `setopt` so that the lines remain under the max width.
2020-12-23 16:20:21 +01:00
ab53243db8 vim: Enable ftplugins at the very end
Fix error that the highlighting group 'zshOption' does not exist when
editing zsh files. I guess this is the case since ftplugins were loaded
before syntax was enabled.
2020-12-23 14:53:26 +01:00
b9f26d7482 vim: Split vimrc into vimrc.d/ 2020-12-23 01:42:42 +01:00
8de39de335 vim: Fix name clashing of backup, undo, swap files 2020-12-22 20:31:30 +01:00
51b79d0f15 vim: Fix binding conflict with ctags and terminal 2020-12-22 20:11:09 +01:00
a20b637ad6 vim: Sort plugin order 2020-12-22 20:06:24 +01:00
1e46c7e19a meta:install.conf: Update fzf path 2020-12-22 16:46:56 +01:00
0e1c14c3e7 meta:git-remote: Replace here strings with printfs
Some implementations of `sh` seem to not support it.
2020-12-22 16:44:24 +01:00
914e8a1992 repo: Update submodules & cleanup gitmodules
Update all submodules to the newest commit.
Change submodule names in `.gitmodules` from local path to repo names.
Sort and group `.gitmodules` by program that uses it.
Remove the clone of 'fzf-tab' as my pull request got merged.
2020-12-22 16:22:33 +01:00
c74cfa3901 vim,git: Integrate ctags 2020-12-21 13:55:49 +01:00
a9e2e5b847 vim:alias: Vim related aliases + ^Z, fg workflow 2020-12-19 03:01:46 +01:00
5b5fc5eefa zsh:alias: Remove Ubuntu update alias 2020-12-19 02:58:55 +01:00
5cf0f7fdf2 zsh: More XDG! 2020-12-19 02:57:45 +01:00
ee5086690e vim: Combine language related plugins with autocmd 2020-12-19 02:56:42 +01:00
da732648f8 vim: Add terminal related settings 2020-12-19 02:55:23 +01:00
a62cd25021 i3: Use scrot for screenshots 2020-12-19 02:33:03 +01:00
26ef592129 zsh:glog: Add --stat preview 2020-12-19 02:31:52 +01:00
10ef02c421 zsh:glog: Support arguments
Arguments given to `glog` are directly passed to the `git log` call that
populates the commit list. Useful for example for specifying the
commit/branch.
2020-12-19 02:29:51 +01:00
9276f9427e zsh:glog: Comment bindings and add cancel bind 2020-12-19 02:29:10 +01:00
21014b46ce zsh:glog: Position preview depending on dimensions 2020-12-19 00:14:55 +01:00
01310c46ee polybar: Remove bluetooth module for now
Because of missing systemd, the module does not work anyway.
2020-12-18 23:36:43 +01:00
d7a126a41f zsh:alias: More git aliases 2020-12-18 23:35:32 +01:00
e1752188b0 zsh:history: Do not save function definitions 2020-12-18 23:35:00 +01:00
5b50998e09 picom: Increase blur 2020-12-18 23:34:10 +01:00
25d0729668 git: Use nvimdiff as merge- and difftool 2020-12-18 23:33:01 +01:00
fa2b792d38 vim: Write out 'autocmd' 2020-12-07 16:36:54 +01:00
b7d9bd6d9d vim: Add arm syntax highlighting 2020-12-05 01:18:47 +01:00
d68f6e4e34 vim:ftplugin:python: Maximum line length of 79 2020-11-29 13:53:41 +01:00
f9e37dbc18 git: Set pull.rebase and merge.log
Rebase branches on top of the fetched branch, instead of merging.
Include summaries of merged commits in new merge commit messages.
2020-11-29 13:49:46 +01:00
3202178fb2 bin:zoom-links: Delete ? with pwd & better comment 2020-11-29 13:39:59 +01:00
d671376705 git: Change signingkey
I changed my email in a6dabac but GitHub does not like changing emails
on GPG keys. So a new key is necessary.
2020-11-29 13:30:34 +01:00
380473bda9 zsh:functions:mvln: Bug fix and multiple arguments
Support multiple arguments now with a behaviour similar to `mv`.

Fix that the created symlink did not point to the right file when mvln
was used to rename directories. In that case it pointed to a
subdirectory with the old name. Fixed by moving the directory check of
the target before the `mv` call.
2020-11-28 19:57:22 +01:00