You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-16Lines changed: 14 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,20 @@ let g:ale_linters = {
83
83
84
84
#### Neovim
85
85
86
+
For Neovim v0.8:
87
+
88
+
```lua
89
+
vim.api.nvim_create_autocmd('FileType', {
90
+
pattern='sh',
91
+
callback=function()
92
+
vim.lsp.start({
93
+
name='bash-language-server',
94
+
cmd= { 'bash-language-server', 'start' },
95
+
})
96
+
end,
97
+
})
98
+
```
99
+
86
100
For NeoVim using [autozimu/LanguageClient-neovim][languageclient-neovim], add the following configuration to
87
101
`init.vim`:
88
102
@@ -92,22 +106,6 @@ let g:LanguageClient_serverCommands = {
92
106
\ }
93
107
```
94
108
95
-
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`
96
-
97
-
`init.vim`:
98
-
99
-
```vim
100
-
lua require'lspconfig'.bashls.setup{}
101
-
```
102
-
103
-
or
104
-
105
-
`init.lua`:
106
-
107
-
```lua
108
-
require'lspconfig'.bashls.setup{}
109
-
```
110
-
111
109
For Vim8/NeoVim v0.5 using [jayli/vim-easycomplete](https://github.com/jayli/vim-easycomplete). Execute `:InstallLspServer sh` and config nothing. Maybe it's the easiest way to use bash-language-server in vim/nvim.
0 commit comments