Commit graph

22 commits

Author SHA1 Message Date
Marty Oehme 2ad1389329
nvim: Extend lsp for nvim lua development
Added new functionality to lsp: hovering, go-to definition, referencing,
implementations, etc accessible through the usual hotkeys.

Added commands to invoke LspHover and temporarily disable lsp for the
current buffer (is re-enabled on re-entering the buffer, e.g. with
:e<cr>)

Added tjdevries extended lua lsp implementation containing functionality
for the nvim api itself (especially useful for `vim.api`, `vim.fn`).
2020-10-09 22:11:06 +02:00
Marty Oehme 65df0fb91f
nvim: Remove pencil to fix relative cursor movement
Cursor movement works better for soft-wrapped prose files now:
When just using j/k to move vertically, the cursor will jump between the
different parts of a single wrapped line. That means you can easily move
anywhere you want on your lines, exactly as it's shown to you.

If, however, prefixing your j/k move with a number to move a relative
number of lines, it will no longer take wrapping into account. That
means you can not jump instantly to *any* part of a wrapped lines,
however on the other hand the relative line numbers on the side never
lie now: You will jump exactly as many lines as are shown on the side.
This is a tradeoff I am happily willing to make.

Additionally had to remove vim-pencil to get the movement to work, but
since it did not provide any visible pros anymore, this should not be a
big issue.
2020-10-08 20:38:50 +02:00
Marty Oehme eaec90379d
nvim: Improve lsp source chaining
Lsp will by default invoke most of its sources simultaneously (one after
the other if no completions are found for the first), but this is
disabled for pandoc.

In pandoc, only the buffer and lsp sources are invoked (the first
chain), since bibcite will take a while to compile the cite keys.
To invoke bibcite in pandoc, use c-j/c-k when in the completion menu,
and they will be calculated.

This may be removed if a faster compilation for bibtex citekeys is
found.
2020-10-02 11:56:31 +02:00
Marty Oehme a79bef6c4d
nvim: Switch to nvim-lsp
Enabled lsp within nvim and switched completion engine from deoplete to
completion-nvim.

The completion will be somewhat more barebones for some filetypes until
the language servers are set up, but should then (theoretically) carry a
lot more features than before.

Additionally, we can, over time, add additional code inspection
functionality.

One change concerns the calling of bibtex cite key completion in pandoc
files: Where before the completion would automatically begin after
typing an '@', it will now only start on manual completion invocation
(c-p/c-n) -- since the completion from my current bibtex file takes a
while to load.
2020-10-01 19:20:07 +02:00
Marty Oehme facaa3e185
nvim: Improve completino menu, add cursor context
Improved completion menu by allowing c-p,c-n scrolling through it.

Removed automatically resizing buffers, use c-w= if you need it.

Added scrolloff, controlling the amount of lines that are always
under/above the cursor. This fixes the cursor being at the very bottom
of the page, after doing e.g. zb or zt and will allow seeing a bit more
information around it at all times.
2020-09-24 21:59:38 +02:00
Marty Oehme e015c4b5f1
Tiny fixes
Clarified naming scheme in sxhkd-chain-labels documentation.

Updated year for vim copyright shortcut.

Enabled automatic copying to clipboard by neovim for every yank action.
2020-09-22 22:34:50 +02:00
Marty Oehme 755113f0f3
nvim: Add exclusions for pass files to nvim
Additionally to gopass editing, editing pass files should also avoid
creating external undo files, backups, and similar traceable files out
of which secrets could leak.

This prevents their creation on a wide level.
2020-09-12 17:36:11 +02:00
Marty Oehme 12beacac19
nvim: Fix 'vim:' modeline, add paragraph highlights
Fixed bug when line in todo dropdown starts with `vim:`, `vi:`, or `:ex`
which would automatically be read by vim and tried to be set in the
editor. Removed modeline reading from vim to fix the bug, and since it
provides quite an attack vector anyway.

Added Limelight to its startup procedure to highlight the current to-do
paragraph.
2020-09-08 14:58:36 +02:00
Marty Oehme a505976485
[nvim] Add python linting, suggestions to vim
Uses python-black, python-pylint, and python-jedi to enable
functionality.
2020-07-10 10:15:03 +02:00
Marty Oehme 3884d28dbd
[nvim] Add yank highlight and substitution preview
Added quick highlighting of whatever text is added to a yank buffer.
Added live preview of `:%s/sub/command/` in current buffer and preview
window.
2020-07-10 10:10:34 +02:00
Marty Oehme 701d97389b
[nvim] Set all markdown-like documents to pandoc
Whenever I write markdown, I want it to be interpreted by pandoc rather
than markdown itself. I write the pandoc flavor of md, I want the pandoc
plugin to handle the files, and I want to enable citations and
compilation in every markdown file.
2020-05-26 17:40:45 +02:00
Marty Oehme 5f0c508ea8
[nvim] Add peekaboo plugin to display registers 2020-05-26 15:29:41 +02:00
Marty Oehme 4292d1e5de
[nvim] Add table align plugin; update spell
Added alignment plugin. My primary use-case is markdown tables, though
the plugin can be used for a lot more than that.

Basic use is marking the to-be-aligned area and pressing ga then
entering *| (or something else than pipe, if the separator symbol is
different). Or doing e.g. gaip to align within paragraph; works as
editing command.
2020-05-25 17:46:04 +02:00
Marty Oehme 0f67355ccd
[nvim] Add ale defaults
Added package which sets ale defaults without having to define them
myself. Still keeping ale settings file around, but can probably get rid
of it soon.
2020-02-23 22:47:39 +01:00
Marty Oehme 347ef4e41f
Add thesaurus function to nvim
Added thesaurus calling on leader-zt, for word under cursor or selected
word(s). Will go through variety of online api's or locally supplied
mthesaur.txt from project gutenberg.
2020-02-11 17:17:47 +01:00
Marty Oehme 7d60a61565
Add spellsync plugin to vim
Enables easier vcs integration of vim spelllang dictionaries. Will cause
them to be reloaded on external editing, add their binary parts to
ignore files, and set their addition files to unison merge mode.
2020-02-08 18:42:12 +01:00
Marty Oehme 7917b45859 Remove experimental modules, add initial foldlevel
Vim experimental modules should be short-lived and really used for
experimentation, not be always in git and messing up diffs.

An initial foldlevel of 2 has been added to vim, this is experimental
and if it doesn't suit me can be easily reverted.
2020-02-04 11:40:06 +01:00
Marty Oehme 36c202f48a Sort vim plugin loading 2020-02-04 11:36:42 +01:00
Marty Oehme 756e45e037 Reorganize vim plugin settings
Setting everything during PlugLoad function caused some plugins to
misbehave. Plugins are now loaded by Plug and their settings can be
either set with a file in the plugin directory (this mimicks the old way
of setting plugin up during load) or in after/ directory, which sets
options *after* everything has loaded.
2020-02-03 22:23:45 +01:00
Marty Oehme ad8decb4ef Integrate dynamic colorschemes into applications
Makes polybar use Xresources color values for its colors. Resets rofi
values to their default after being overwritten by the base16 themes.
Makes qutebrowser include the colorscheme in its configuration file.

Ignore dynamically generated colorschemes in .gitignore file.
2020-02-01 11:01:26 +01:00
Marty Oehme d08966509a Switch vim color scheme to base16 2020-01-27 08:37:53 +01:00
Marty Oehme d34cecb27e Switch to GNU stow 2019-12-29 23:12:13 +01:00
Renamed from .config/nvim/init.vim (Browse further)