Chapter 11: Configure Neovim’s LSP Client

Chapter Overview

Part VI: Language Server Protocol | Tips 53-55

Setting up LSP servers.

Tips in This Chapter

Tip Title Mastered

53

Install a Language Server

[ ]

54

Configure LanguageClient-neovim

[ ]

55

Use LSP Features

[ ]

Key Concepts

Installing and configuring language servers.

My LSP Setup (Neovim 0.11+)

-- Using native vim.lsp and lsp/ directory
-- No need for nvim-lspconfig in 0.11+

-- Example: lua_ls configuration
-- lua/lsp/lua_ls.lua

Language Servers I Use

Language Server Install

Lua

lua_ls

mason.nvim

Python

pyright

mason.nvim

Bash

bashls

mason.nvim

YAML

yamlls

mason.nvim

Commands Learned

Command Description Notes

gd

Go to definition

gr

Find references

K

Hover documentation

<leader>rn

Rename symbol

<leader>ca

Code actions

Practice

Commands I tried while reading:

" (Add commands you practiced)

Config Ideas

-- Ideas from this chapter

Questions

Things I want to explore further.

Book Complete

This is the final chapter!

  • Read entire chapter

  • LSP fully configured

  • All tips practiced

Date completed: _

Book Summary

What I learned from Modern Vim:

Record your overall takeaways here.