Commit graph

1919 commits

Author SHA1 Message Date
020ec86481
nvim: Split up mini plugins for lazier loading
Split off base16 (instant load for themes) and starter (only load on
empty start) from rest.
2025-06-21 16:44:40 +02:00
091274fd82
nvim: Add custom lazy loading events
Using lazy-events.nvim we can create custom events (such as the LazyVim
equivalent LazyFile event) based on other events (i.e. a grouping), on
globbing files in the current dir, or on arbitrary custom logic.

For now, any plugins which require files to be present to work are
loaded with the 'LazyFile' event.

Any plugins which need to be loaded when opening a directory with vim
are loaded with the 'StartWithDir' event (essentially only neo-tree for
now). Similarly mini.starter is loaded on the `StartScreen` event.

Any plugin which only makes sense to run in a `.git` dir (gitsigns etc)
will only run on the `LazyProject:git` event.
2025-06-21 16:44:39 +02:00
71ddce4119
nvim: Fix nvim-dap lazy loading
Switch its key maps to anonymous functions to not instantly run
'require' when creating the plugin load spec.
2025-06-21 16:44:39 +02:00
0d8208d722
nvim: Add highlights to nvim-dap repl 2025-06-21 16:44:38 +02:00
3454c60c44
nvim: Add nvim-dap configuration
Automatically opens dap-view when in debugging session (and closes when
done), sets some breakpoint jump logic and makes the gutter symbols
nicer.

Adds keybinds for most of the dap operations with
`<localleader>d<something>` where something is the operation (i.e. `c`
for continue, `b` for breakpoint and so on).
2025-06-21 16:44:38 +02:00
bbab0f1674
nvim: Add file bracketed movement
For now there is no strict reason to have it disabled, even if I don't
use it much. At the same time I can always re-disable it if I need the
bracketed movement for something more important later down the line.
2025-06-21 13:58:33 +02:00
f558a68976
nvim: Change diagnostic movement to ][e
In preparation for adding debugging we change the bracket movement
between diagnostics from `[d`/`]d` to `[e`/`]e` instead.

This will be a big switch in muscle memory for me and I hope I can adapt
to it pretty quickly, but at least mnemonically it still makes sense
since we jump between [E]rrors (or warnings but good enough).
2025-06-21 13:58:33 +02:00
8f9954bd8a
nvim: Fix bracketed configuration
mini.bracketed never received its configuration which is the reason I
had some issues in the past. It was simply wrapped in one too many
layers of tables. Now works as intended.
2025-06-21 13:58:32 +02:00
22e8f9761f
nvim: Version-pin treesitter again
Treesitter had to run as a non-versioned (trunk-tracking) plugin for a
while since there was no updated version released.
Now that it is we can return to a nicely versioned tag.
2025-06-21 13:58:32 +02:00
bb11a12f25
nvim: Remove criticmarkup
Sad but I'll have to face it - I've never successfully used
criticmarkup in, by now, 6 years of professional academic writing.

The plugin also does not work as well as it should (anymore?) with my
current neovim setup. The `:Critic` command works neither with accept
nor reject and the different highlights are presumably overwritten by
treesitter queries.

Now, all of those _could_ be fixed but as I say above, I have never
successfully used the markup. Perhaps one day it could be implemented in
a slick nvim lua plugin with hiding and extmarks which mimicks a truly
nice review editing experience. But not today.
2025-06-21 13:58:31 +02:00
b9c60ffde6
nvim: Update plugins 2025-06-21 13:58:31 +02:00
9f415f8ccc
nvim: Fix render-markdown naming scheme
Old versions of render-markdown.nvim suggested renaming it to another
plugin name, but this seems to not be the case anymore. I removed both
for the time being and it fixed a long-standing issue I had with the
plugin.
2025-06-21 13:58:30 +02:00
35d1f8b03d
nvim: Improve mini.pairs triple mappings
Whenever there is a left-over quote (') or double quote ("), if we want
to 'close' it, mini.pairs will by default add a new pair (e.g. """)
instead. This simply changes it to close the pair. Makes some
'double-quote' pairings harder (e.g. we have a python dict: {"name"})
and want to add another {"name""value"} into it, but this happens
relatively rarely in my use cases. The first on the other hand happens
frequently enough to be an annoyance.

Additionally, did the same for back-ticks so we can more easily create
triple backticks ``` which are essential in many literate programming
markup languages (markdown, quarto, rmd and so on).
2025-06-21 13:58:30 +02:00
b5198c385c
nvim: Switch zenmode to new toggle map
Like other 'switch' toggles, turn on/off zen-mode with `]sz`/`[sz`
respectively.
2025-06-21 13:58:29 +02:00
a3b1efeb05
nvim: Set default tabwidth in md, quarto to 2
Makes it easier to read lists, and also easier to work with
markdownlint even if it has not been configured for a given repository
(since its list indentations default to 2 spaces).
2025-06-21 13:58:26 +02:00
c2bdda9acf
nvim: Fix build of markdown-preview
For some versions apparently markdown preview could not be built anymore
with the suggested installation in the readme. Instead it requires the
build function to be called through a string from lazy.

See:
https://github.com/iamcco/markdown-preview.nvim/issues/690
2025-06-19 22:35:50 +02:00
688a001e01
nvim: Remove fzf-lua version adherence
Fzf-lua is unfortunately not released in versioned updates, which means
following the main branch instead of any versioned tags.
2025-06-19 22:35:49 +02:00
8f15fb404a
nvim: Fix path completing on insert mode return
When hitting return in insert mode we would enter a path completion.
With this change the completion is moved from <c-m> (i.e. return) to
<c-t>.
2025-06-19 22:35:48 +02:00
90f3add4db
nvim: Update plugins 2025-06-19 22:35:48 +02:00
bcbe527ac6
nvim: Add mcphub for mcp llm agent installation 2025-06-19 22:35:47 +02:00
cdf48a537e
qutebrowser: Remove kb search engine 2025-06-19 15:57:39 +02:00
89e1c20358
waybar: Fix keepawake module
Was displaying the wrong way round (no coffee on staying awake and coffe
on automatically going to sleep), and removed some useless variable
setting.
2025-06-19 15:57:39 +02:00
75fcc025f9
waybar: Improve keepawake module
Improved display - can be always-on, with toggling idle management
on-and-off on a click.
2025-06-13 12:24:57 +02:00
8e7aaef291
jrnl: Update config version 2025-06-12 22:01:20 +02:00
53b8bd0175
jj: Update delta diff settings
Remove deprecated 'ui.diff.format' setting and replace with
'ui.diff-formatter'.

Use the time to also ONLY set up delta as the diff and show command
pager using scopes (since I was perusing the jj discussions anyway).

This has the advantage that normal jj paging is done with `-FRX` as far
as I understand -- which means after we close out of the pager the
content remains on screen (-X). This is not the case with delta. So now,
the contents of e.g. the last log command should always stay on screen.
2025-06-12 22:01:19 +02:00
03f85fd958
waybar: Add keepawake module
Shows if the pc will not automatically turn off screen or suspend.
Figures this out by checking for `swayidle` process, so that is
required. Turns on suspend again on click, and uses voidlinux `sv` user
service for it, so those have to be set up.
2025-06-12 22:01:18 +02:00
7447cb3354
nvim: Turn image preview setting into switch
Can be toggled with `]sp` ([P]review images _everywhere_), or with `[sp`
([P]review images _only at cursor_).
2025-06-12 22:01:18 +02:00
b0ed357037
nvim: Move switch options from ]o to ]s maps
Function is the same, `]s` for [S]witching something 'off', and `]s` for
[S]witching something on.
2025-06-12 12:15:34 +02:00
3f4c057ffe
nvim: Add option switch to italicize/normalize comments 2025-06-12 12:15:34 +02:00
43ae4ea7d4
papis: Fix config setting including comment
Comments apparently are only comments at the beginning of a line in the
config file for papis. Noted.
2025-06-12 12:15:33 +02:00
2a193c2a44
zk: Quicknote alias defaults to current date
When creating a quick note with `nnn` on the command line, instead of
creating an 'untitled note' if no title is passed, we create a note that
is named after its creation date.
2025-06-12 12:15:33 +02:00
6435a7b51a
nvim: Improve marksman diagnostic filtering in zk dirs
When in a ZK dir I do not want any marksman diagnostics polluting my
interface since the linking in (my) ZK is based on anchor IDs and not
full filenames/titles. Thus, every single link will be detected as
non-existent by marksman.

This commit ensures that when in a zk-enabled directory, each
non-existent link diagnostic will be filtered before presenting
diagnostics.
2025-06-10 18:31:41 +02:00
99098f56a1
nvim: Move typescript and vue LSP config into lsp dir 2025-06-10 18:31:40 +02:00
bb6f401ff3
nvim: Move arduino LSP config into lsp dir
Also ensure that clangd and arduino-cli are installed since the lsp
otherwise won't work.
2025-06-10 18:31:39 +02:00
07e820ac00
nvim: Move ruff/pyright lsp settings into after/lsp/ dir 2025-06-10 18:31:39 +02:00
de462a270b
papis: Update options for new papis-bbt-formatter version 2025-06-09 14:38:16 +02:00
d91bc46d75
river: Add output quick switch script
Invoked by `MOD+SHIFT+O` (for '[O]utput'), it greps the kanshi
configuration file for existing profiles and allows you to select one
which kanshi tries to apply. Can be a little buggy, though due to kanshi
and not the plugin (sometimes failing to re-activate turned off screens
etc).
2025-06-09 14:38:15 +02:00
ff7863b011
river: Move hotkey for qute history to H
To prepare for output switch hotkey and since '[H]istory' makes more
sense, we switch it to `MOD+SHIFT+H`.
2025-06-09 14:38:15 +02:00
8dd268caf2
nvim: Allow registering lsp without providing configuration 2025-06-09 14:38:14 +02:00
de1591c7a7
nvim: Switch to maintained emmet lsp
Called 'emmet_language_server' instead of 'emmet_ls'.
2025-06-09 14:38:14 +02:00
7cc7195f9a
nvim: Update nushell lsp installation
Nushell lsp is now integrated directly into the 'nu' command. This
update stops mason from trying to install a 'nushell' LSP and simply
activates the nu-internal LSP if it finds the correct executable
instead.
2025-06-09 14:38:13 +02:00
3d1f925f78
nvim: Update mason-lspconfig for 2.0 2025-06-09 14:38:13 +02:00
63c6c81f6e
nvim: Fix ltex disabled autostart
Fixes #1ef7570.

We implement our own autostart-aware lsp register function. Any lsp
which has the option {autostart=false} set at their config root will be
not automatically enabled and can instead be enabled on demand.
2025-06-09 14:38:12 +02:00
6e6f804c08
repo: Format README 2025-06-09 14:38:11 +02:00
d8458ae010
nvim: Update checkbox markdown states
We now have the usual 'undone' ([ ]) and 'done' ([x]) states, but
express 3 further ones that are _somewhat_ standardized:

- [o] this one is 'doing', in-progress
- [-] this one is 'indeterminate', we're not sure
- [~] this one is 'deleted', never to be done
2025-06-09 14:38:11 +02:00
fad8f65214
nvim: Improve which-key group rendering
Moved most group definition functions into plugin 'init' functions so
they run at the beginning and are displayed more reliably.
2025-06-09 14:38:10 +02:00
4e7b64aad0
nvim: Add gitcommit and history extensions to codecompanion 2025-06-09 14:38:10 +02:00
1397fee17a
nvim: Enable fzf-lua integration for codecompanion
Since version 15.5.0 it supports showing selection menus with fzf-lua,
so we enable it here. Hardcoded for now.
2025-06-09 14:38:09 +02:00
19f3cd3457
nvim: Add copilot status to lualine 2025-06-09 14:38:09 +02:00
d3cdd0b30a
nvim: Fix llm models used by codecompanion 2025-06-09 14:38:08 +02:00