Neovim for Minimalists — LSP and Completion
In this article, we will continue to set up LSP and completion for our minimal configuration.
This article is part of the Neovim for Minimalists series.
The Neovim configuration files can be found in this repository.
For the most recent version that uses mason.nvim
, check out the main branch.
LSP Setup
Installation
We will still use the nvim-lspconfig
and nvim-lsp-installer
plugins to configure the LSP servers.
Note: For mason.nvim, check out the main branch.
In the init.lua
file, we add the code to install the plugins.
use({
"neovim/nvim-lspconfig",
event = "BufReadPre",
requires = { "williamboman/nvim-lsp-installer" },
config = function()
require("config.lsp")
end,
})
Configuration
In the lua/lsp.lua
file, we configure the LSP.