nvim configuration
version | OS |
---|---|
0.9.0-dev |
pop-os 22.04 |
Set path to neovim configurations and make it default editor:
export XDG_CONFIG_HOME="$HOME/.config"
export EDITOR='nvim'
if you are confident enough embed the unstable repository.
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update
and install neovim
# install directly for old stable version
sudo apt install neovim
in addition install python support
sudo apt install python-neovim
sudo apt install python3-neovim
Do :checkhealth
and see if any clipboard tool is already supported by default.
If not, xclip provides handy functionalities for clipping
sudo apt install xclip
(neovim should detect it automatically)
Contains all configuration files to initially! set-up nvim via lua.
Subfolder should be unique to not interfere downloaded plugins, thus this folder is named after user.
All used files stored in meikse need to be required
in init.lua.
It contains all third-party plugins for further configuration. In contrast to the files stored in lua, files in after will be loaded subsequently when init.lua is sourced.
Here tweaking and twisting of the default configurations of those plugins are done.
Note subfolder shall be called plugin (see :h rtp
).
All configuration files towards the nvim-lspconfig server support are stored here.
All configuration files towards the nvim-cmp support are stored here. (has nothing to do with nvim-lsp directly)
It can be used to define configurations to a specific filetype.
It contains dictionaries for aimed languages for plain text editing.
The dictionaries are link to unix default dictionaries stored in /usr/share/dict/
(only needed for cmp-dictionary)
It contains a list of own spell checks for aimed languages.
It contains raw templates for different kinds of file formats. (see autocmd.lua for sourcing them automatically)
It contains self-created snippets for various purposes.
no specific configs. Plug-and-Play.
include language usepackages
\usepackage[<language>]{babel}
thus the ltex parser identifies which language is shall be evaluated during editing.
Did not managed to configure for c++
set-up in servers.lua
- Installed via
:LspInstall
- Installed with
sudo apt install clangd
in both cases, clangd
works for plain .c
files but is not configurable and thus useable for .cpp
files
try outs:
- touched in the root folder
compile_commands.json
and/orcompile_flags.txt
described here and configured them - touched
$XDG_CONFIG_HOME/clangd/.clangd
with content:
CompileFlags:
Add: [-std=c++14]
sources: suggestions issue
spell check: is good to correct while/after you write a word
Keyword check: lists all words matching with the word before using it.
-
disable commenting next line if appending line is a comment (seems to be pretty heavy problem. set formatoptions always changes, no matter if init in /after or doing autocmd.. https://www.reddit.com/r/neovim/comments/pgtdi1/trouble_with_setting_formatoptions_in_lua/
-
config
clangd
for.cpp
files