Commit graph

131 commits

Author SHA1 Message Date
Marty Oehme 1c983b2dce
nvim: Fix automatic packer installation
Updated to new recommended bootstrapping for packer itself, straight
from the project respository.
2022-12-08 13:30:20 +01:00
Marty Oehme b33ae09a33
nvim: Disable automatic formatting on save
Had to disable automatic formatting since it was messing with my
contributions to other git projects, if they did either not have a
formatter enabled (most of the time) or had different formatters or
those set up differently than this setup (fixable, but I don't think
it's worth the time).

Instead, formatting can be invoked with `<localleader>f`/`F` to format
or format and save respectively.
2022-12-08 13:28:00 +01:00
Marty Oehme dff4308b4d
nvim: Change to Navigator fork supporting wezterm
Changed to personal fork of Navigator which supports wezterm for the
time being - until the changes are merged in some fashion upstream.
2022-12-08 13:15:34 +01:00
Marty Oehme 078578b173
nvim: Update buffer navigation maps
Updated buffer navigation to make use of the <c-w>hjkl paradigm instead
of the <c-hjkl> since it adheres closer to vanilla nvim and works better
with the new navigation features of Navigator.nvim.
2022-11-25 16:56:26 +01:00
Marty Oehme 8f6e1994df
nvim: File formatting 2022-11-25 16:55:04 +01:00
Marty Oehme 2b9981482f
nvim: Switch to zen-mode and twilight plugins
Switched out the old distraction-free writing plugins for neovim
variants zen-mode and twilight by folke - they are simple (one command
to invoke zen-mode, mapped to `F11`, and that's it), they are written in
lua and they work together beautifully (invoking zen-mode also invokes
twilight paragraph highlighting).
2022-11-25 16:55:04 +01:00
Marty Oehme fadacf5313
nvim: Format plugins file 2022-11-15 18:10:00 +01:00
Marty Oehme 27860162b4
nvim: Update plugins for quarto 2022-11-01 16:05:33 +01:00
Marty Oehme 86fdfbe3d5
nvim: Update spellchecker 2022-11-01 16:04:54 +01:00
Marty Oehme af6e91561b
nvim: Remove unnecessary augroup invocation 2022-11-01 16:04:37 +01:00
Marty Oehme ff3b4ef605
nvim: Update neorg modules in use 2022-11-01 16:03:53 +01:00
Marty Oehme 0220f7f03f
nvim: Remove extraneous lsp setup for defaults 2022-11-01 16:03:30 +01:00
Marty Oehme 03a4148796
nvim: Update deprecated cmp lsp method 2022-11-01 16:03:07 +01:00
Marty Oehme 26c3124e95
nvim: Remove non-working cmp plugins 2022-11-01 16:02:35 +01:00
Marty Oehme 84714379ab
nvim: Update autopairs rules 2022-11-01 16:02:00 +01:00
Marty Oehme 7fbdbf0203
nvim: Update formatting 2022-11-01 15:56:23 +01:00
Marty Oehme ba5d5d2561
nvim: Fix cmp cmp-pandoc completion 2022-10-09 20:25:32 +02:00
Marty Oehme e3b2f0f0e5
nvim: Add basic neorg installation
All defaults for now except for concealer installed which prettifies
the neorg files.
2022-10-09 20:25:32 +02:00
Marty Oehme 9628ff30b9
nvim: Move cmp configuration to its own file
While it is lsp adjacent, this muddles the waters too much and the
configuration file was way too long.
2022-10-09 20:25:13 +02:00
Marty Oehme c0443dad35
nvim: Change remaining augroups to lua autocmds
Changed formatting and plugin self-compilation to make use of the new
neovim 0.7 autcmd api function.
2022-06-13 19:30:43 +02:00
Marty Oehme a0968bcf93
nvim: Change init autocmds to lua versions
With neovim 0.7 bringing autocmd bindings in lua, we can now rely on a
built-in api instead of having to use our own helper function. Last
missing migration is the lsp formatting autogroup.
2022-06-13 17:49:25 +02:00
Marty Oehme 95e2fea951
nvim: Disable uninstalled python language servers
Had to manually disable python lsps that are not on my system since
neovim otherwise complains about it whenever I enter a new python
filetype file.
2022-04-30 21:00:05 +02:00
Marty Oehme 9a46a94827
nvim: Change blankline, Update treesitter settings
Updated treesitter setting to remove use of deprecated 'maintained'
option and simply replaced it to use 'all' treesitter syntaxes (haven't
had a problem with it so far).

Changed blankline options slightly to remove annoying animations and
quick switching of which blankline it shows depending on where my cursor
is -- both proved to be too much of a distraction when I just need to
interact with the indentation context every now and again and it should
just allow me a quick glance at the indentation level the rest of the
time.
2022-04-30 20:53:00 +02:00
Marty Oehme 8aa02654eb
nvim: Add Mini for indentblankline and commentary
Replaced indentblankline and vim-commentary both with mini.nvim, which
has both as submodules.

Commentary is replaced exactly and without any end-user changes, simply
transferred to be included in the lua plugin instead.
Indent blankline is a bit simpler but brings with it a new text object
which can be interacted with through `ai` and `ii`, e.g. `vii` select in
current indentation or `dai` delete around current indentation - very
useful.

Also added fuzzy matching algorithm from mini.nvim to telescope as
default sorter.
2022-04-11 13:00:55 +02:00
Marty Oehme 2c7430121e
nvim: Fix dial plugin binds 2022-04-11 12:40:07 +02:00
Marty Oehme ebf4274c5b
nvim: Add mapping for finding hidden files
While <leader>f searches files, now <leader><c-f> searches for hidden
files.
Simple addition but can be very useful if you work for example in
dotfolder directories or similar.

Now I just need to find a way to do the same for live_grep. The
functionality is there (live_grep can take the same `{hidden=true}`
argument as find_files) but terminal emulators don't distinguish between
<c-f> and <c-F> so there is no convenient mapping for it yet.
2022-03-08 10:15:33 +01:00
Marty Oehme 3c59ab0b61
nvim: Add telescope digraph search
Added plugin for digraph search through telescope.
When you want to enter a digraph, you can do so through the usual
method, pressing <c-k> and then entering the digraph shortcut (e.g.
`<c-k>OK` for ✓, or `<c-k>n?` for ñ) OR you simply double press
<c-k><c-k> which opens a quick telescope window to select the digraph
you want.
2022-03-08 10:06:01 +01:00
Marty Oehme 11c1383f01
nvim: Remove thesaurus mappings, Update spell map
Updated enabling spellchecker from <leader>Z to <leader>ZZ.
<leader>ZE and <leader>ZG for language specific checking stays the same
as before.

Removed some dangling mappings referring to thesaurus_query plugin which
has long been removed.
2022-03-08 09:59:49 +01:00
Marty Oehme eb1dabc44f
nvim: Fix signcolumn jumping
When lsp or gitsigns would show me a symbol in the signcolumn the whole
editor page would jump ever so slightly to the right (one symbol, to be
precise).

This fixes it to show numbers in the signcolumn and just exchange number
for sign when something should be shown.
Makes numbers a little less readable but editing experience a whole lot
smoother.
2022-03-08 09:33:58 +01:00
Marty Oehme a49e49bbd4
nvim: Change path copy mapping
Changed mapping to copy path from `yf` to `yp`/`yP`.
Two reasons: I might be better able to remember 'yank-path' when saying
it in my head as a mnemonic, and with the `yf` mapping set I could only
yank things *to* some letter `yt<letter>` not including some letter
`yf<letter>` and it has been very subtly annoying me ever since I
introduced the mapping.
Fixed now.

Also added two variations: `yp` will yank the whole path into the `p`
register, and `yP` will only yank the filename itself.
Here's to remembering the new mapping!
2022-03-07 22:05:45 +01:00
Marty Oehme 9a1efff30c
nvim: Fix vim-slime temp file, cmp float window
Fixed hidden file creation in home directory by vim-slime. It will now
rather ask nvim to create a temporary file using that as its paste
source.

Also disabled cmp completion in 'guihua' floating windows, as per the
recommendation for navigator.lua.
2022-03-07 21:58:37 +01:00
Marty Oehme 438547251a
nvim: Fix telescope grep
Fixed grepping for telescope to work again, and work with the native
'live_grep' function.

Replaced fzy extension with precompiled fzf since I have that installed
anyway.

Changed some theming around so I have a fast, minimal file switcher
instead of the big window by default. Can still call the big preview
window through the Telescope command if need be.
2022-02-13 20:07:21 +01:00
Marty Oehme dee44417a6
nvim: Add json formatting, auto gather filetypes
Added json to be formatted by prettier like the other javascript-close
filetypes.

Switched the static list of filetypes to automatically format on save to
be replaced by automatically gathering all filetypes set up for
formatter.nvim since I want everything formatted anyway.
2022-02-13 20:05:39 +01:00
Marty Oehme f1ec3c05f1
nvim: Add criticmarkup highlighting
Added simple plugin for some highlighting of criticmarkup.
Criticmarkup is a neat way of doing 'track-changes' in markdown. It's a
bit cumbersome to read just the way it is when there's a lot of changes
however and this plugin helps immensely with that.

There is also a github gist out there which helps using pandoc to turn
Microsoft Word tracked changes into criticmarkup formatted markdown.
Amazing to work with through vim instead of the annoying Office suites!
2022-02-11 20:33:38 +01:00
Marty Oehme 572fa471ae
nvim: Update zettelkasten mappings to new version
Updated mappings for zettelkasten navigation and zettel creation to work
with the changes introduced in its new update.
2022-01-28 10:17:26 +01:00
Marty Oehme a322799f39
nvim: Add which-key.nvim key chord visualization
Finally added a which-key like extension.
This one is a lua implementation of the old Emacs idea, but comes with
pretty sane defaults and seems less difficult to set up.

So much so that, even out of the box, it seems somewhat useful by
containing explanations of default vim bindings and showing the target
for all mark jumps. (e.g. `g`` or `g'`).
2022-01-04 22:09:22 +01:00
Marty Oehme 8e6bd03576
nvim: Replace surround plugin for vim-sandwich
Finally made the switch from the lua surround plugin of my choice to
sandwich -- it provides sane defaults, needs little to no setup, and
comes with a pretty alright default mapping method:

`sa<object><something>` to add surroundings to object
`sr<oldsurround><newsurround>` to replace surroundings (including
`srb<new>` for automatically figuring out what to replace)
`sd<surround>` to delete existing.

Simple and efficient, should make the cut in my estimation.
2022-01-04 22:04:27 +01:00
Marty Oehme 788775bbee
nvim: Add oscyank to yank from anywhere
Added oscyank plugin which allows, through the `:OSCYank` command, to
put stuff into your local clipboard from *anywhere*, even through remote
ssh sessions and so on.
Requires a supported terminal emulator but honestly, most semi
well-known ones are on the list already.
2022-01-04 22:02:55 +01:00
Marty Oehme d5cd91d107
nvim: Add experimental navigator lsp configurator 2022-01-03 18:11:23 +01:00
Marty Oehme ff0ddb2b2d
nvim: Switch galaxyline for lualine
Recently, galaxyline created some troubles in the setup. Lualine is much
much easier to configure and, since I don't need some of the more
advanced features of galaxyline anyway, I can just use the simple setup
it offers.
If ever those features become necessary again I can presumably just
reintroduce them based on the old galaxyline setup that got removed in
this commit.
2022-01-03 17:45:04 +01:00
Marty Oehme 981c4cbf10
Add vim-slime and vim-ipython-cell
Added interactive python repl commands with two plugins:
Sending repl snippets over with vim-slime and interacting with python
(notebook-like) snippets in the editor with vim-ipython-cell.

Cells are simply demarcated by `## ` at the beginning of a line, though
they can have other syntaxes as well, e.g. `# %% `.

By default slime sends its commands over to the last used tmux pane so
it is easy to set up a split coding/repl-ing session.

Interaction mappings all center around <leader>c + another key.
You can send a simple cell with `<leader>cc` or `<leader>C`,
single lines or selections with `<leader>cs`.

You can switch between cells with `]c` `[c` and insert new ones
below/above existing ones with `<leader>co` `<leader>cO` respectively.
2021-12-15 17:43:07 +01:00
Marty Oehme e64df2ec3d
nvim: Switch deprecated nvim-compe
Switched out the deprecated nvim-compe for nvim-cmp and re-added most of
the plugins that the earlier one supported.

The handling is very similar and it supports the same snippet engine
(vsnip in this case).
2021-12-15 17:42:23 +01:00
Marty Oehme 63074ae46b
nvim: Switch to compe compatible branches
Have to switch branches to compe compatible ones for now.
Must make the switch to `cmp` soon, but in the meantime ths is a quick
bandaid.
2021-12-04 11:24:28 +01:00
Marty Oehme dcea74008b
vifm: Change vifm filename yanking mapping to yt 2021-11-23 09:52:21 +01:00
Marty Oehme 9fd0ab9b91
nvim: Remove ctrlsf and thesaurus_query
Removed the two plugins since I *never* used them in months.
Improved startup slightly by conditionally loading some filetype and
command plugins.
2021-11-16 12:09:47 +01:00
Marty Oehme 8a6cdcba8b
mpv: Use yt-dlp instead of youtube-dl
Switch to fork since it's more actively developed and contains some
additional features. Primarily switched since it had quite a bit better
subtitle stream handling than the original for quite a while.
2021-10-09 23:21:02 +02:00
Marty Oehme 3a5a6d19b4
nvim: Update spellchecker 2021-09-24 16:26:42 +02:00
Marty Oehme d0e083b6ab
nvim: Add efm languageserver
Added a general purpose languageserver to round out the language server
possibilities. For now only configured to take care of bash linting
(using shellcheck) and formatting, but can be extended to a variety of
other languages (even helping more prosaic forms like markdown and pandoc).
2021-08-18 23:10:50 +02:00
Marty Oehme 176a4a233d
vifm: Obey XDG Trash directory
Moved trash directory vifm uses from its own data location to the one
proposed by XDG specification. Essentially moves it to
`.local/share/Trash`.
2021-08-18 22:33:12 +02:00
Marty Oehme 62f680ecd3
qutebrowser: Add proxying support for websites
Added automatic proxying to floss alternative frontends for proprietary
websites like reddit (teddit), youtube (invidious), twitter (nitter),
and instagram (bibliogram).

Often does not work on calling cached websites, meaning when it does not
load the correct page a full reload (shift-R) should call up the correct
frontend on first use of a previously visited page.

Squashed commit of the following:

commit ccf5a9f9a001c466e4fe00763f561d09a598bd70
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Wed Jul 28 10:05:37 2021 +0200

    qutebrowser: Add LocalLeader key concept

    Added differentiation between leader mappings and local leader mappings,
    with a similar idea to vim:
    leader mappings enact changes within qutebrowser on a more general level
    (currently e.g. changing tab display, javascript switch, stylesheet
    setting) while
    local leader mappings enact changes or interact with the current page
    context
    (e.g. start mpv stream, display in readability mode, download pdf
    version of page, and so on).

    This will be hard for my muscle memory, but I think such a switch
    benefits logical action separation in the long run, especially in case I
    add more action shortcuts over time.

    An interesting thing this separation also allows is a more
    buffer-specific action repertoire (for example through recognition of
    current page context with interceptors) so specific pages contain
    different actions.

commit afbe573d527b70fa57d643ede78cd5e71f3ca4c1
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Tue Jul 27 16:00:37 2021 +0200

    qutebrowser: Rename key mapping file

    Renamed from `keys.py` to `maps.py` to keep some coherence with nvim
    naming scheme.

commit cc78cbb67953bba7ab4d5a6dd48dfa50fbcfe2fc
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Tue Jul 27 10:19:34 2021 +0200

    qutebrowser: Add reddit redirection

    Added redirection to old.reddit whenever a link on reddit is opened.
    Added redirection of youtube links to yewtu.be invidious instance.
2021-08-18 22:28:50 +02:00