Commit graph

554 commits

Author SHA1 Message Date
fd01c8aac2
nvim: Add whichkey group for codecompanion 2025-02-06 14:10:56 +01:00
99eada00b8
nvim: Improve custom toggle terms
Added euporia term to split it from other python variations. Fixed
python command selection. Improved mapping and which key display.
Removed indentline settings since that is responsibility of indentline.
2025-02-06 14:10:55 +01:00
101937a8c2
nvim: Fix image.nvim functionality
Track master since no new version has been tagged. Change some settings
around and make installation more robust using the new lazy rocks
system.
2025-02-06 14:10:54 +01:00
9d15bc79f4
nvim: Clean up markdown/quarto key maps 2025-02-06 13:09:28 +01:00
7d616c1cb5
nvim: Improve indentscope disables
Improved conditional disabling of indentscope lines, e.g. in lazy and
mason floats, terminals and helpfiles.
2025-02-06 12:02:18 +01:00
50d78cbb2f
nvim: Overhaul prose preview keys 2025-02-05 19:05:50 +01:00
9421ef807d
nvim: Remove lsp-setup.nvim plugin
Removed the plugin since all its functionality can be replicated with an
equal amount of lines without it nowadays. Should be even simpler in the
future when we can just have individual lsp server config files in the
config dir.
2025-02-05 18:37:55 +01:00
ad3c8a6139
nvim: Lazy load completion on insert mode only 2025-02-05 18:28:51 +01:00
ba6a8c16ce
nvim: Simplify statusline python check 2025-02-05 18:28:17 +01:00
4d98c9ab46
nvim: Fix quarto jupyter kernel setup
Creates a hidden kernel file with the current filename and
'.kernel.json' suffix by default (in the file directory).
But 'JupyterStart' command can also be given an argument to use as the
filename / file path for the kernel file. That way we can also attach to
already running kernels for longer running projects.
2025-02-03 16:43:42 +01:00
6edd3143cb
nvim: Show markdown code blocks in full width 2025-02-03 16:38:38 +01:00
90161be418
nvim: Add check for local .venv python dir 2025-02-03 16:38:18 +01:00
8b5e4dc097
nvim: Do not always run ruff_fix
Ruff fix removes unused imports etc. which is sometimes more annoying
than helpful.
2025-02-01 10:46:22 +01:00
a5d28351cd
nvim: Ensure FeMaCo newline in codefence injections
When formatting femaco buffers it would sometimes remove the newline
necessary at the end of code fences to have the (```) remain on its own
line. This attempts to fix it.
2025-02-01 10:45:52 +01:00
ddaaa69795
nvim: Check if code evaluation maps set before overriding
If we already have <lleader>cc/cx mappings set before we come to set
them for markdown filetypes we will not override them.
2025-02-01 10:44:57 +01:00
d7d5c5f908
nvim: Update plugins 2025-01-31 12:38:06 +01:00
1848ec168b
nvim: Add simple LLM assisted programming
Added codecompanion as a test for LLM assistance during programming.
Will see how much I end up using it.
2025-01-31 12:37:56 +01:00
0f77a110d3
nvim: Track master for plenary
Ensure that we run the master branch version of plenary and do not
adhere to any versioned release since the newest is now multiple years
back.
2025-01-31 12:37:04 +01:00
8486f8f0f6
nvim: Change select all mapping
I only rarely use it these days, and it takes up a valuable 'menu'
space. Simply capitalize for now so it is more out of the way.
2025-01-31 12:36:09 +01:00
f4da232b79
nvim: Add pandoc completion to blink 2025-01-31 12:35:27 +01:00
3a10d7a849
nvim: Switch nvim-cmp for blink.cmp completion
Switched completion engines. Blink is supposedly faster and so on but
what I really love is the batteries-included style.
I don't have to set up the basic lsp, path, buffer and cmdline
completions, nor styling for basic kind displays and more.
Hundreds of lines of config shrink down to 60, very nice.
2025-01-31 09:51:05 +01:00
2618eb55b8
nvim: Add cmp completion for render-markdown items 2025-01-31 09:44:33 +01:00
49c9dfcc9b
nvim: Get beancount python env from dynamic home env
While we are still hacking our way around a specific pipx venv (which
has to change), we are at least not hardcoding my own home directory
name anymore.
2025-01-31 09:44:32 +01:00
99c4f67fbc
nvim: Enable formatting through typst lsp 2025-01-31 09:44:29 +01:00
3c7c0e1e87
nvim: Do not hide away html comments in md files
Why would I want to completely hide comments I left for myself.
2025-01-31 09:44:28 +01:00
9cc3495c31
nvim: Add nim lsp and formatting 2025-01-24 08:21:24 +01:00
2c1487ab93
repo: Remove traces of tmux configuration
While I never disliked tmux I have not been using it for absolute ages
now, ever since starting to multiplex with wezterm. Wezterm can (at
least with my current setup) *not* replace all tmux functionality -
especially running multiple sessions in a detachable way on a remote
server - but I have never needed those in a long time now.

Detachable sessions I can create instead with `abduco`.
2025-01-04 10:57:48 +01:00
4aab62cd80
nvim: Update plugins 2024-12-01 15:25:38 +01:00
0d7edd4e19
nvim: Improve marksman zk link handling
Instead of completely detaching marksman as soon as we are in a
zettelkasten directory, this disables displaying the 'non-existent link'
diagnostic instead. Only disables signs and virtual_text for now (still
displayed as diagnostic in e.g. Trouble windows) but should provide a
good first step into more fine-grained control.
Oh if only marksman just provided a flag to toggle this feature..
2024-12-01 15:25:24 +01:00
0bbfeb2c68
nvim: Add improved helpfile rendering
Advanced rendering like the markdown render view.
2024-12-01 15:23:48 +01:00
3e0116a1c9
nvim: Replace aerial outliner with Trouble
Since we already use trouble.nvim we can also make it mimic aerial
views.
2024-12-01 15:23:22 +01:00
b57f895093
nvim: Disable line length diagnostic for md files
By default disable the line length for any markdown file. I never use it
and I always turn it off. If I need it for a specific project I can
still figure out how to make the configuration override this.
2024-12-01 15:22:01 +01:00
73f9322a96
nvim: Render markdown todo active and deleted state
Additionally to the default states:

- [ ] new/empty entry
- [x] completed entry

we render two more:

- [-] active entry
- [_] deleted/not applicable entry
2024-11-22 21:18:22 +01:00
75a32b2a54
nvim: Fix deprecated typescript lsp mason name 2024-11-22 21:16:39 +01:00
98bfbca738
nvim: Change nvim tree to neotree plugin 2024-09-19 10:39:23 +02:00
290ddbf5a8
nvim: Format lua files 2024-09-15 22:14:38 +02:00
45e1a8bb2f
nvim: Update plugins 2024-09-15 22:12:21 +02:00
f15a64c121
nvim: Extract statusline plugin into separate file
Extract lualine into its own 'statusline.lua' plugin file. This makes
the ui plugin file a little more lean but also prepares the way of
tinkering with statusline alternatives, like heirline.
2024-09-15 22:11:20 +02:00
03f18bea3a
nvim: Simplify prose filetype grouping
Simply have a markdown-like group and a org-like group for the plugins
that only target those specific prose modes.
2024-09-15 22:09:58 +02:00
65d5ac12ef
nvim: Load mini files earlier
Since sometimes it is necessary to have correct access to the files
functionality earlier than was possible with the old lazy loading this
instead loads it at program start as well.
2024-09-15 22:09:18 +02:00
44c3361c10
nvim: Add golang and typst LSP and formatters 2024-09-15 22:08:23 +02:00
ff7adb859b
nvim: Move undotree to pickers plugins 2024-08-15 18:37:37 +02:00
56951911f6
nvim: Check trouble before adding telescope maps
Check that the trouble plugin exists before adding its maps to the
telescope buffer. Should probably go into trouble setup instead but
works as a quick safeguard for now.
2024-08-15 09:40:47 +02:00
ec791fda5f
nvim: Move next/prev spell error to z Z keys
From [s ]s [S ]S, we move all to [z ]z [Z ]Z.
2024-08-15 09:33:59 +02:00
787c0b0fc4
nvim: Deprecate buffer-option settings group for switches
Remove `<localleader>s` 'set' group of mappings (setting buffer wrapping
mode, setting colorizing) and replace it with explicit on/off mappings
via [o<setting> and ]o<setting>.

Wrapping can be set to soft with `[ow`, hard with `]ow`.
Colorizer can be disabled with `[oc`, enabled with `]oc`.
Colorizer can highlight virtual text with `[oC`, highlight background
with `]oC`.
2024-08-15 08:53:30 +02:00
b574ba5947
nvim: Rename core plugin spec to base.lua
This should make it hopefully still clear that they are expected plugins
for the configuration while also delineating it from the 'core' module
which bootstraps lazy and sets fundamental options and so on.
2024-08-15 08:29:40 +02:00
f8625f35f0
nvim: Only load plugin spec if plugin files exist
Before we load the lazy spec from the 'lua/plugins' directory, we check
that the directory exists and contains at least one .lua file. We do not
check that the file returns a valid spec but that is just assumed in
this case.
2024-08-15 08:26:38 +02:00
3e369ee31e
nvim: Refactor completion plugins
Begin a larger refactor with nvim-cmp, which separates out the different
nvim-cmp modules to be loaded at different times and for different files
(such as beancount completion on loaded for beancount files and so on).
This is by no means complete but the start of a larger overhaul process.
2024-08-14 23:12:55 +02:00
7723f43a5b
nvim: Add grug rg find and replace picking plugin 2024-08-14 23:11:49 +02:00
86dfc5ecbc
nvim: Lazy load most mini.nvim modules
Except for mini.starter which we need right at the - well - start, we
can lazy load most other modules. It's a little awkward since we lazy
load them *within* the setup function with a manual autocommand but it
should work fine for the time being.
2024-08-14 23:11:02 +02:00