{"id":2087,"date":"2022-06-12T03:35:17","date_gmt":"2022-06-11T22:05:17","guid":{"rendered":"https:\/\/smarttech101.com\/?p=2087"},"modified":"2023-08-25T17:33:03","modified_gmt":"2023-08-25T12:03:03","slug":"nvim-lsp-configure-language-servers-shortcuts-highlights","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/nvim-lsp-configure-language-servers-shortcuts-highlights\/","title":{"rendered":"Nvim lsp: configure language servers, shortcuts, highlights"},"content":{"rendered":"\n

Nvim LSP (Neovim Language Server Protocol) enables you to code efficiently by predicting what you are going to type, early diagnosis, etc. In this article, I will explain what is LSP, what are language servers, how to configure them in nvim, highlight symbols under the cursor, keybindings for code actions, rename, hover info, implementations, definition and declaration, workspace, and many more.<\/p>\n\n\n\n

If have not set up basic configuration in Neovim, do that over here<\/a>. This article is part of my series on setting up Nvim Lsp (Neovim Language Server Protocol):<\/p>\n\n\n\n

    \n
  1. Nvim lsp: configure language servers, shortcuts for listing your symbols, rename, code actions, get definition\/declaration, workspace, highlights (this article)<\/li>\n\n\n\n
  2. Nvim lsp: diagnostics – keybindings, error\/warning signs, floating and virtual texts<\/a><\/li>\n\n\n\n
  3. Nvim lsp: autocompletion – mapping, snippets, fuzzy search, and icons<\/a><\/li>\n<\/ol>\n\n\n\n

    I recommend you to follow all three articles in the above order.<\/p>\n\n\n\n

    Table of Contents<\/h2>\n\n\n\n