Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/books/nvchad/custom/plugins/lspconfig_lua.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
title: lspconfig.lua
title: Language Server
author: Franco Colussi
contributors: Steven Spencer
tested with: 8.6, 9.0
tags:
- nvchad
- coding
- editor
- nvchad
- coding
- editor
---

# `lspconfig.lua`
# lspconfig.lua

This configuration file assigns the functionality defined in `nvim/lua/plugins/configs/lspconfig.lua` to the language servers we have installed with `Mason`. The language servers should be placed in the local servers according to this format:

```lua
local servers = { "html", "marksman", "yamlls"}
```

As pointed out earlier, there is no need to make explicit support for Lua as it is enabled by default by NvChad; however, the *lua-language-server* must be installed with *Mason* to be available in the IDE.
As pointed out earlier, there is no need to make explicit support for Lua as it is enabled by default by NvChad; however, the _lua-language-server_ must be installed with _Mason_ to be available in the IDE.

Let us then look at our `lspconfig.lua` file:

Expand All @@ -40,4 +40,4 @@ The first two instructions import the `on_attach` and `capabilities` features fr

After the first configuration, it is advisable to exit and re-enter the editor before running <kbd>SHIFT</kbd> + <kbd>:PackerSync</kbd>. Subsequent language server entries to the configuration can be registered with <kbd>SHIFT</kbd> + <kbd>:LspRestart</kbd> without the need to reload the configuration. The next time a supported file is opened, it will bring up an icon at the bottom with associated LSP and language server used. This gives us confirmation that the LSP is running properly.

Summarizing, the `lspconfig.lua` file configures the functionality of the servers we install. It is a file that, after the first configuration, will not need much editing as long as we write documentation in Markdown. For more information on the **L**anguage **S**erver **P**rotocol you can consult the [dedicated page](../lsp.md).
Summarizing, the `lspconfig.lua` file configures the functionality of the servers we install. It is a file that, after the first configuration, will not need much editing as long as we write documentation in Markdown. For more information on the **L**anguage **S**erver **P**rotocol you can consult the [dedicated page](../lsp.md).
2 changes: 1 addition & 1 deletion docs/books/nvchad/custom/plugins/null_ls.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Null-ls
title: Linter & Formatter
author: Franco Colussi
contributors: Steven Spencer
tested with: 8.6, 9.0
Expand Down