mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
bash language server config
This commit is contained in:
parent
bcd7a4ff30
commit
a6fa807ca0
3 changed files with 37 additions and 2 deletions
23
README.md
23
README.md
|
@ -81,6 +81,29 @@ let g:node_host_prog = expand("~/.nvm/versions/node/v12.16.1/bin/neovim-node-hos
|
|||
|
||||
Explanations and installation instruction can be found on my blog
|
||||
|
||||
## Language Servers
|
||||
|
||||
Since CoC doesn't support all languages in there extensions
|
||||
I recommend installing some language servers from scratch
|
||||
and adding them to your `coc-settings.json` file
|
||||
|
||||
Example:
|
||||
|
||||
- bash
|
||||
|
||||
`npm i -g bash-language-server`
|
||||
|
||||
```
|
||||
"languageserver": {
|
||||
"bash": {
|
||||
"command": "bash-language-server",
|
||||
"args": ["start"],
|
||||
"filetypes": ["sh"],
|
||||
"ignoredRootPaths": ["~"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
# TODO
|
||||
|
||||
- People asked about vimwiki I kinda hate it but maybe I'll add it
|
||||
|
|
|
@ -40,6 +40,15 @@
|
|||
"explorer.keyMappings": {
|
||||
"<cr>": ["expandable?", "expand", "open"],
|
||||
"v": "open:vsplit"
|
||||
},
|
||||
|
||||
"languageserver":{
|
||||
"bash": {
|
||||
"command": "bash-language-server",
|
||||
"args": ["start"],
|
||||
"filetypes": ["sh"],
|
||||
"ignoredRootPaths": ["~"]
|
||||
}
|
||||
}
|
||||
|
||||
// TODO language servers
|
||||
|
|
|
@ -23,7 +23,7 @@ autocmd! FileType which_key
|
|||
autocmd FileType which_key set laststatus=0 noshowmode noruler
|
||||
\| autocmd BufLeave <buffer> set laststatus=2 noshowmode ruler
|
||||
|
||||
" change to nerd commenter
|
||||
" Single mappings
|
||||
let g:which_key_map['/'] = [ '<Plug>NERDCommenterToggle' , 'comment' ]
|
||||
let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ]
|
||||
let g:which_key_map[';'] = [ ':Commands' , 'commands' ]
|
||||
|
@ -40,6 +40,9 @@ let g:which_key_map['v'] = [ '<C-W>v' , 'split right']
|
|||
let g:which_key_map['w'] = [ 'w' , 'write' ]
|
||||
let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
|
||||
|
||||
" Group mappings
|
||||
|
||||
" b is for buffer
|
||||
let g:which_key_map.b = {
|
||||
\ 'name' : '+buffer' ,
|
||||
\ '1' : ['b1' , 'buffer 1'] ,
|
||||
|
|
Loading…
Reference in a new issue