Skip to content

Commit f4b99d1

Browse files
authored
chore(README): Adding custom lsp doc (LunarVim#61)
1 parent 6dd7c0d commit f4b99d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,29 @@ and press `i` on the Language Server you wish to install
111111

112112
Next you will need to add the server to this list: [servers](https://github.com/LunarVim/nvim-basic-ide/blob/0e65f504f634026f5765ce6a092612d385d6306d/lua/user/lsp/mason.lua#L1)
113113

114+
Note: Builtin LSP doesn't contain all lsps from [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#terraform_lsp).
115+
116+
If you want to install any from there, for example terraform_lsp(which adds more functionality than terraformls, like complete resource listing),
117+
118+
1. You can add the lsp name in [mason lsp block](https://github.com/LunarVim/nvim-basic-ide/blob/f03955dc1e5879164f9229d44d98ca81a948cbfb/lua/user/lsp/mason.lua#L1-L10)
119+
120+
```lua
121+
-- lua/usr/lsp/mason.lua
122+
local servers = {
123+
"sumneko_lua",
124+
"cssls",
125+
"html",
126+
"tsserver",
127+
"pyright",
128+
"bashls",
129+
"jsonls",
130+
"yamlls",
131+
"terraform_lsp" -- New LSP
132+
}
133+
```
134+
135+
2. Manually install the binary of the lsp and put it in your path by downloading the binary or through your package manager. For terraform_lsp [example](https://github.com/juliosueiras/terraform-lsp/releases)
136+
114137
### Formatters and linters
115138

116139
Make sure the formatter or linter is installed and add it to this setup function: [null-ls](https://github.com/LunarVim/nvim-basic-ide/blob/0e65f504f634026f5765ce6a092612d385d6306d/lua/user/lsp/null-ls.lua#L12)

0 commit comments

Comments
 (0)