Commit graph

1995 commits

Author SHA1 Message Date
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
9efbcbfa01
nvim: Replace copilot.vim with copilot.lua
Makes the plugin less intrusive (will now only autocomplete on <M-p> or
<leader>ap). Can select suggestion with <M-]> or <M-[>, and accept with
<M-p> in-text or <CR> in-panel.

Still automatically started when invoking CodeCompanion chat.
2025-06-09 14:38:08 +02:00
f160a5b4a7
nvim: Update zk-nvim
Changes filetypes option placement in configuration.
2025-06-06 22:30:35 +02:00
0a927afe60
repo: Remove quarto snippets file from being linked 2025-06-06 22:30:34 +02:00
21e80aeb87
nvim: Fix markdown rendering in codecompanion buffers 2025-06-06 15:58:45 +02:00
e912c3f535
nvim: Add vue language LSP/Treesitter/formatting setup 2025-06-06 15:58:44 +02:00
1f05e0775d
nvim: Add mason env utility function
Should return the mason environment for lsp servers to be able to set it
in the 'core/languages.lua' list.

However, currently it is initialized too early (I think), before
mason.nvim, and thus never gets the initialized env var.
2025-06-06 15:58:44 +02:00
9900750e81
nvim: Change creating lsp servers into local function 2025-06-06 15:58:43 +02:00
d2432e0039
nvim: Extend lsp configuration with multiple declarations
So far if LSP declarations in 'core/languages.lua' were duplicated (e.g.
the 'astro' filetype and the 'vue' filetype both declare the
'typescript' lsp), one would simply overwrite the other. That is fine as
long as there is no custom setup, but if there is one of them is lost.

This commit changes it so that the different configurations extend each
other. The 'latter' one still overwrites the former but this is just
what must happen if there should be conflicting setups. 

May increase loading time slightly.
2025-06-06 15:58:43 +02:00
1d5fbef0fb
nvim: Use new non-programmatic lspconfig interface for 0.11 2025-06-06 15:58:42 +02:00
b22334c442
jj: Add tug alias to move forward most recent bookmark 2025-06-06 15:58:42 +02:00
5913948705
nvim: Check linter existence before setting options
We only change 'markdownlint' arguments if it actually exists in the
nvim-lint 'linters' table.
2025-06-06 15:58:41 +02:00
cf9a25d1c6
nvim: Use uv for running python coverage
Still needs to be improved and less hardcoded but for now at least we
use the tool that I use every day.
2025-06-06 15:58:41 +02:00
59223d1003
wezterm: By default connect mux to domain called unix
If we start wezterm muxing we now always connect to the same default
domain. This is a tiny step toward true multiplexing with wezterm.
2025-06-06 15:58:40 +02:00
4d8f554197
jj: Move git_head display to end of single-log line
It was moving about the change dates too much and not super necessary
for information, so moved it further down the line.
2025-06-06 15:58:39 +02:00
86d358627c
papis: Use new formatter configuration option
Replaces deprecated 'formater'.
2025-06-06 15:58:39 +02:00
2bdfb291ae
nvim: Add jj source to neotree 2025-06-06 15:58:38 +02:00
b1f751a82d
jj: Improve jj WIP commit search
Restrict the default search to commits _starting_ with 'WIP:',
to avoid accidentally selecting commits which just contain the word
'WIP:' somewhere in the description.
2025-05-23 10:44:21 +02:00
83e2b9f31b
jj: Add alias to list all bookmarks 2025-05-22 14:00:10 +02:00
4dc4ab39a6
jj: Add alias to show WIP commits.
`jlfw` will quickly list every commit that contains 'WIP:'. Quicker
version of `jlf 'WIP:'`.
2025-05-22 14:00:10 +02:00
7d9a85ec48
jj: Remove deprecated git subprocess configuration
Since jj moved to use git as a subprocess by default a couple versions
ago, they now deprecated the git.subprocess configuration option (jj
version 0.29). This commit removes it.
2025-05-22 14:00:09 +02:00
f68a62f377
task: Add aliases for showing tasks done
Can show tasks accomplished today (tdd, 'Task Done toDay'), since
yesterday (tdy, 'Task Done since Yesterday'), or in the last week (tdw,
'Task Done in the Week').
2025-05-22 14:00:09 +02:00
d1f4c4ab8f
task: Remove taskwarrior hooks
Taskwarrior hooks are removed from this general dotfiles repo, as they
are instead included in my taskwarrior 'task' folder (and project)
itself. Each hook belongs to exactly one taskwarrior repository and thus
they should also exist there and not anywhere else, is my current
opinion.

This is especially so since I believe most people use exactly one
taskwarrior repository (me included). So for the moment it just makes
the most sense to have these two things live side-by-side instead of in
this more general configuration repository.
2025-05-22 14:00:08 +02:00
d2be1c8795
nvim: Change mapping for printing Fidget message history
Since it is technically vim-internal (and relatively rarely used unless
to debug things), I have moved the shortcut for this function from
`<leader>sh` (show-history) to `<leader>vp` (vim-print-messages).

The 'p'-suffix is a little unfortunate but currently h/H/m are all taken
in this vim-internal submenu.

The reasoning behind this is that the 'show' menu is intended primarily
for user-facing, middle-of-work tasks and windows that help me
accomplish goals when actually working and getting things done.
Showing the fidget history does not do that, but allows
introspection into the vim editor history. So, it should accordingly
live under the 'vim' menu. Additionally, it frees space in the
'show' menu and lets me/the user forget about the functionality
until it is needed.
2025-05-22 14:00:08 +02:00
15015e61e0
nvim: Add neowarrior plugin
Allows quickly listing and working with taskwarrior tasks from within
neovim. Show a floating `:NeoWarriorOpen` window with `<leader>sw` or a
vertical neowarrior buffer with `<leader>sW`.
2025-05-22 14:00:07 +02:00