Skip to content

Commit ee4d232

Browse files
authored
Merge pull request #276 from ekickx/master
Add instruction for neovim built-in lsp
2 parents 5365aae + ac3aa09 commit ee4d232

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ let g:ale_linters = {
7676

7777
#### Neovim
7878

79-
Install the plugin [autozimu/LanguageClient-neovim][languageclient-neovim] and add the following configuration to
79+
For NeoVim using [autozimu/LanguageClient-neovim][languageclient-neovim], add the following configuration to
8080
`init.vim`:
8181

8282
```vim
@@ -85,6 +85,20 @@ let g:LanguageClient_serverCommands = {
8585
\ }
8686
```
8787

88+
For NeoVim v0.5(nightly) using its built-in lsp, install [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) and add the following configuration to either your `init.vim` or `init.lua`
89+
90+
`init.vim`:
91+
```vim
92+
lua require'lspconfig'.bashls.setup{}
93+
```
94+
95+
or
96+
97+
`init.lua`:
98+
``` lua
99+
require'lspconfig'.bashls.setup{}
100+
```
101+
88102
#### Oni
89103

90104
On the config file (`File -> Preferences -> Edit Oni config`) add the following configuration:
@@ -118,6 +132,7 @@ Please see [docs/development-guide][dev-guide] for more information.
118132
[sublime-text-lsp]: https://packagecontrol.io/packages/LSP-bash
119133
[explainshell]: https://explainshell.com/
120134
[languageclient-neovim]: https://github.com/autozimu/LanguageClient-neovim
135+
[nvim-lspconfig]: https://github.com/neovim/nvim-lspconfig
121136
[vim-lsp]: https://github.com/prabirshrestha/vim-lsp
122137
[vim-ale]: https://github.com/dense-analysis/ale
123138
[coc.nvim]: https://github.com/neoclide/coc.nvim

0 commit comments

Comments
 (0)