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
25
README.md
25
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
|
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
|
# TODO
|
||||||
|
|
||||||
- People asked about vimwiki I kinda hate it but maybe I'll add it
|
- People asked about vimwiki I kinda hate it but maybe I'll add it
|
||||||
|
@ -88,7 +111,7 @@ Explanations and installation instruction can be found on my blog
|
||||||
- spectre, or async task/run
|
- spectre, or async task/run
|
||||||
- setup custom paths
|
- setup custom paths
|
||||||
- install script envsubst is your friend
|
- install script envsubst is your friend
|
||||||
- add better whitespace pluginand a toggle, video about clean code maybe
|
- add better whitespace plugin and a toggle, video about clean code maybe
|
||||||
- echodoc and buitin support with CoC
|
- echodoc and buitin support with CoC
|
||||||
- snippets (coc snippets)
|
- snippets (coc snippets)
|
||||||
- git messenger
|
- git messenger
|
||||||
|
|
|
@ -40,6 +40,15 @@
|
||||||
"explorer.keyMappings": {
|
"explorer.keyMappings": {
|
||||||
"<cr>": ["expandable?", "expand", "open"],
|
"<cr>": ["expandable?", "expand", "open"],
|
||||||
"v": "open:vsplit"
|
"v": "open:vsplit"
|
||||||
|
},
|
||||||
|
|
||||||
|
"languageserver":{
|
||||||
|
"bash": {
|
||||||
|
"command": "bash-language-server",
|
||||||
|
"args": ["start"],
|
||||||
|
"filetypes": ["sh"],
|
||||||
|
"ignoredRootPaths": ["~"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO language servers
|
// TODO language servers
|
||||||
|
|
|
@ -23,7 +23,7 @@ autocmd! FileType which_key
|
||||||
autocmd FileType which_key set laststatus=0 noshowmode noruler
|
autocmd FileType which_key set laststatus=0 noshowmode noruler
|
||||||
\| autocmd BufLeave <buffer> set laststatus=2 noshowmode ruler
|
\| 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['/'] = [ '<Plug>NERDCommenterToggle' , 'comment' ]
|
||||||
let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ]
|
let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ]
|
||||||
let g:which_key_map[';'] = [ ':Commands' , 'commands' ]
|
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['w'] = [ 'w' , 'write' ]
|
||||||
let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
|
let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
|
||||||
|
|
||||||
|
" Group mappings
|
||||||
|
|
||||||
|
" b is for buffer
|
||||||
let g:which_key_map.b = {
|
let g:which_key_map.b = {
|
||||||
\ 'name' : '+buffer' ,
|
\ 'name' : '+buffer' ,
|
||||||
\ '1' : ['b1' , 'buffer 1'] ,
|
\ '1' : ['b1' , 'buffer 1'] ,
|
||||||
|
|
Loading…
Reference in a new issue