Commit Graph

30 Commits

Author SHA1 Message Date
4a7e003ea1 Fix formatting via eslint on save in neovim
When I saved files in my eslint-formatted projects I was wondering about
slight differences between the results of running `eslint --fix` vs. the
autoamtic formatting when I save a file in neovim.

As it turned out I ran the wrong command indeed. This changes fixes that
by simply calling the correct command on save. Note that this looks
"bigger" but it's actually a copy of the built-in `LspEslintFixAll` of
neovim.

Reference: 1a6d692067/doc/configs.md (eslint)
Reference: 89fd0361b3/lsp/eslint.lua (L92-L104)
2026-03-27 00:52:12 +01:00
688143d0cc Add configuration for mails
I do nearly all my mails with neomutt. So, I naturally edit mails with
vim (neovim to be precise). These settings add a couple of autocompletes
for very common mail-phrases. Furthermore I restrict the line-length of
my mails to 78 chars per line, since this is the recommended line-length
according to RFC-5322.

Reference: https://datatracker.ietf.org/doc/html/rfc5322#section-2.1.1
2026-03-25 01:35:49 +01:00
c97e8bebeb Add a colorcolumn at col 72 for editing git-commits in neovim 2026-03-24 17:08:45 +01:00
4fc9c199f8 Add comment to document on-the-fly ansible vault crypto
I once wrote a simple function to decrypt and encrypt ansible-vaults
on the fly. This change finally ands a short explanatory comment to it.
2026-03-01 17:14:54 +01:00
4f5d215496 Wrap lines of asciidoc and markdown files
Many projects use markdown or asciidoc and write "endless" lines. That's
annoying on it's own, but not having them wrapped is even more annoying.
So, this change simply wraps these lines to make them more accessible
for me.
2026-03-01 17:12:56 +01:00
f9bcee8783 Show current byte under cursor in status-line beside line anc colum 2026-02-08 16:02:12 +01:00
d26d769bcc Mark multiple spaces with "—" to find misformattings faster 2026-02-08 16:01:03 +01:00
ba01bd7e72 Change vim-shortcut to search for references from "gr" to "gs"
The former shortcut is simply not unique enough under certain
circumstances, therefore I change it to the new "gs" which fits good as
well.
2026-02-03 00:33:57 +01:00
2e3412c410 Add descriptions for lsp-shortcuts
Since I use which-key I can actually benefit a lot from meaningful
descriptions of my custom shortcuts. Whenever I feel like I forgot a
multi-key shortcut I can simply type the first letter (in my case
usually "Space" or "g") and peek into the preview of whichkey. It lists
all possible additional keystrokes and their descriptions, so this
change makes it a lot easier for me to find the command I'm looking for.
2026-02-03 00:28:49 +01:00
9d13d42cbd Add shortcut ":Gc" to vim for simple fast commits
When working in vim I have developed some pattern which fell fast and
confident enough for me to being typed all the time.
E.g. I catch myself often doing typing the following: `:Gw<CR>:G<CR>cc`
These keystrokes safe the current file directly to the staging area of
git (:Gw), then opening the fugitive-panel (:G) and finally letting me
write a commit-message form there (cc).
The keypart here is that I _have_ to open the fugitive-panel to perform
a commit, since I don't use any abbreviation for "commit" on git itself
the only other way is typing `:Gw<CR>:G commit` which is cumbersome.

This change allows me to type just another short version (namely:
`:Gw<CR>:Gc`) which saves 2 keystrokes and a whole panel-rendering.
Though this change is experimental right now since I don't know if I
really get used to it.
2026-01-14 01:21:00 +01:00
245a0f0c8a Adjust indentation for elm-files according to elm-format 2025-12-27 01:35:49 +01:00
fe582181f4 Simply sync my vimwiki via shortcut 2025-10-22 20:11:45 +02:00
b22a15e9e8 Set ft=terraform for *.tf files in vim 2025-10-16 12:30:49 +02:00
c1430386c0 Add rules to detect filetype of muttrc and offlineimap
This change fixes also the type-detection for files in the
`dotfiles`-dir. That was especially annoying for the git-config files.
2025-10-07 16:36:40 +02:00
c01578edaf Simpify handling of ansible-vault
I barely have any file valled "vault.ini" or "vault.yml" except of in
the ansible context. So, this treat all these files as ansible-vault
files. The other change affects the way we're looking for an ansible.cfg
file. 1st we check if it's present in the current working dir, if it's
missing there we check if one exists in the same directory as the
vault-file itself. If we do not find any files then we give up and do
not decrypt/encrypt the vault-file. Note, that this also means that we
need an ansible.cfg for the vault to be encrypted/decrypted, no other
method is implemented.
2025-09-21 18:36:58 +02:00
2f23034101 Improve descriptions of key-mappings in neovim and align git-shortcuts
I struggle to remember certain shortcuts sometimes. In these cases I
rely on the "whichkey" plugin which shows a short description of for
each possible keystroke in vim. Though I was lazy and didn't maintain
these everywhere, so this change fixes that. Hopefully I can remeber all
the keys better now.

Furthermore this change contains some slight remappings regarding the
git-keymappings. I used fugitive for most of that in the past, but I saw
more potential using telescope in certain cases, especially navigating
the history.
2025-09-14 20:18:35 +02:00
4fe4ece802 Add automatic encrypt/decrypt for ansible-vaults in vim 2025-09-12 21:41:34 +02:00
7a3efc7ac3 Improve fuzzy search in nvim-telescope by using fzf 2025-09-05 14:07:20 +02:00
8adf1673b9 Add plantuml support to nvim, even rendering by command :Soil 2025-09-05 14:06:28 +02:00
9e7f6ee0bb Fix formatting 2025-08-26 22:13:01 +02:00
86bd90038d Start new wiki-diary entries with a skeleton and do not apply vimwiki-filetype to markdown-files in vim 2025-08-26 19:52:14 +02:00
6491093ae3 Automatically apply skeleton snippets to certain filetypes if configured 2025-08-26 03:39:35 +02:00
0dc1eeaaf5 Reformat my i3-config a bit to make better use of vim folds 2025-08-25 19:20:59 +02:00
577610166f Update my vim-git integration to navigate easier through it and fix missing config for gitea 2025-08-25 18:30:52 +02:00
ccb6bc9b1a Make <Leader>we a global shortcut to create diary entries in vim 2025-08-25 18:29:23 +02:00
634727de12 fix vim-autocmd, I had reused the same augroup and removed all configs that way :D 2025-08-25 18:28:09 +02:00
02390275ca Allow for search of word under cursor with telescope via <Space>* or <Space># and show git details in telescope 2025-08-24 20:34:54 +02:00
55323212b7 Format typescript files on write automatically with eslint in nvim
This makes it easier for me, since I don't have to care about the
formatting all the time.
2025-08-24 20:34:54 +02:00
732b713c54 Add <Space>m to automatically expand functions and alike in vim 2025-08-16 18:45:52 +02:00
24f7891460 Migrate vim to neovim (min v0.11)
Install newest vim-releases via appimage from github-page!
2025-08-10 17:12:01 +02:00