GNU/Linux ◆ tmux-256color ◆ zsh 1068 views

Showcase features enabled by a minimal configuration of lsp-zero (version 3).

The lua code needed to achieve this:

require('lsp-zero')
require('lspconfig').intelephense.setup({})

link to configuration file

lsp-zero’s role in all this is to integrate nvim-lspconfig and nvim-cmp. These two plugins (plus intelephense, a language server) are the ones that do the heavy lifting. And lsp-zero “connects” them so you can have working setup with very little code.

What you see in the demo:

  • Linting. Error messages are shown inline.
  • Smart code autocompletion.
  • Go to definition of function.
  • Autoimport missing class.
  • Format selected range.