Neovim for Minimalists — Package Manager and Snippets
In this article, we will refactor our minimal configuration to use the
mason.nvim package manager plugin. Besides LSP completion, we will also configure snippets completion using
This article is part of the Neovim for Minimalists series.
The Neovim configuration files are available in this repository.
Package Manager using mason.nvim
We configured the
nvim-lsp-installer plugin in the previous article. Since this plugin is deprecated, we will refactor our code to use
init.lua file, we remove
nvim-lsp-installer and add the lines to install
lua/config/lsp.lua file, we configure
For more advanced configuration, check out this article!
Neovim for Beginners — Package Manager Plugin
Use mason.nvim to install and manage LSP servers, DAP servers, linters, and formatters.
Restart Neovim and the language servers should be installed automatically. Once installed, LSP completion should work.
Snippets using LuaSnip
By default, the
mini.completion module does not support snippets. We have to configure key mappings and auto commands…