Commit Graph

480 Commits

Author SHA1 Message Date
f4950002b8 i3: Add binding for monitor-setup 2021-01-05 23:19:04 +01:00
0d35030132 bin: Add monitor selection script using xrandr+fzf 2021-01-05 23:18:04 +01:00
2c30d57573 zsh:keys: Fix fzf abort check
The file should be opened if fzf returned something not the other way
around. This probably happened in the last refactoring session before
committing.
2021-01-05 22:07:07 +01:00
d0cd6ffef0 zsh: Move man wrapper into function for completion 2021-01-04 16:34:16 +01:00
4d4a5d4ef2 vim: Add vim-lastplace 2021-01-04 16:28:56 +01:00
ec2b7d58ed zsh:keys: Simulate <leader>f from vim config 2021-01-03 22:33:23 +01:00
5c91bc23a2 zsh:keys: Increase KEYTIMEOUT a bit 2021-01-02 00:40:01 +01:00
e4677c2626 zsh:completion: Fix completion of ls, git-checkout 2020-12-28 03:17:38 +01:00
ebea6a8a80 zsh: Add WIP fzf-tab configuration adding previews 2020-12-28 03:11:20 +01:00
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