My ever changing Neovim configuration
git clone https://github.com/TheBlob42/nvim-config.git ~/.config/nvim
Requires Neovim version 0.12.0 (nightly)
Some functionality is tailored towards the usage of a Linux operating system
¹At least version 2.2.2 to include codicons for nvim-dap-ui
²Only relevant on Linux
- translate-shell
- lazygit
- cargo
- for the parinfer-rust plugin, if not present it will note be loaded
- neovim-remote
- for using the commit editor of
lazygit(see here)
- for using the commit editor of
- for validating Jenkinsfiles see the template script in
./lua/user/commands/jenkins.lua
In order to install & update plugins alpacka.nvim is being used, check the init.lua file for more details
You can find a collection of very simple custom plugins within the
./lua/user/plugins/directory. Each file solves one simple problem and can easily be copied over to your own Neovim configuration. Check the./lua/user/plugins.luafile to see my setup
For local system specific configuration check lua/user/local.lua.sample
There is some preconfigured configuration which is expected by other parts of the configuration (for example the path to your project directory). But you can also add any custom Lua code in their which you consider system specific. The local.lua file is on .gitignore so the system specific settings will not be checked into version control
Install LSP servers simply via the :Mason command
See the mason.nvim plugin for more information about available options
Depending on the LSP servers you might also need to fulfill additionally dependencies (e.g. java, node)
The following servers have been tested explicitly:
- eclipse.jdt.ls
- also tested debugging via java-debug & vscode-java-test
- jsonls
- clojure-lsp
- lua-language-server
- gopls
- bash-language-server
- check shellcheck for linting
- marksman (markdown)
If treesitter does not initialize correctly check if you have a proper C compiler installed (more)
Especially for the light theme the cursor color might be hard to see and read
To control the highlighting of the cursor by Neovim you can add the following to your local.lua file:
vim.opt.guicursor:append{ "a:Cursor" }Beware that this will only affect the cursor background color. The foreground (font) color is always defined by the terminal. For this reason the setting is not set by default
For kitty check out the
cursor_text_color backgroundoption in~/.config/kitty/kitty.conf