Skip to content

meikse/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

installation

debian

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)

tree 🌳


\lua

Contains all configuration files to initially! set-up nvim via lua.

\meikse

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.

\after

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.

\plugin

Here tweaking and twisting of the default configurations of those plugins are done.
Note subfolder shall be called plugin (see :h rtp).

\lsp

All configuration files towards the nvim-lspconfig server support are stored here.

\cmp

All configuration files towards the nvim-cmp support are stored here. (has nothing to do with nvim-lsp directly)

\ftplugin

It can be used to define configurations to a specific filetype.

\dict

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)

\spell

It contains a list of own spell checks for aimed languages.

\skeleton

It contains raw templates for different kinds of file formats. (see autocmd.lua for sourcing them automatically)

\snippets

It contains self-created snippets for various purposes.

lsp

pyright

no specific configs. Plug-and-Play.

ltex

include language usepackages

\usepackage[<language>]{babel}

thus the ltex parser identifies which language is shall be evaluated during editing.

clangd

Did not managed to configure for c++

set-up in servers.lua

  1. Installed via :LspInstall
  2. 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:

  1. touched in the root folder compile_commands.json and/or compile_flags.txt described here and configured them
  2. touched $XDG_CONFIG_HOME/clangd/.clangd with content:
CompileFlags:
    Add: [-std=c++14]

sources: suggestions issue

Notes

spell check: is good to correct while/after you write a word
Keyword check: lists all words matching with the word before using it.

TODO

About

my neovim configurations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages