nvim: Use Purescript language server
We do not do Purescript really so just add the language server support and remove the extra bindings for purs ide plugin, if we ever require at work. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
3bd7b6e544
commit
46364f42e3
1 changed files with 3 additions and 29 deletions
|
@ -75,7 +75,6 @@ Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
|
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
|
||||||
" Purescript
|
" Purescript
|
||||||
Plug 'purescript-contrib/purescript-vim', { 'for': 'purescript' }
|
Plug 'purescript-contrib/purescript-vim', { 'for': 'purescript' }
|
||||||
Plug 'frigoeu/psc-ide-vim', { 'for': 'purescript' }
|
|
||||||
" Neo/Async stuff
|
" Neo/Async stuff
|
||||||
Plug 'sbdchd/neoformat'
|
Plug 'sbdchd/neoformat'
|
||||||
Plug 'neomake/neomake'
|
Plug 'neomake/neomake'
|
||||||
|
@ -409,24 +408,6 @@ augroup haskell_maps
|
||||||
au FileType haskell inoremap <buffer> ;: <ESC>:call MakeArrow(0)<CR>
|
au FileType haskell inoremap <buffer> ;: <ESC>:call MakeArrow(0)<CR>
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup purescript_maps
|
|
||||||
au!
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>L :Plist<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>l :Pload<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>r :Prebuild<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>f :PaddClause<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>T :PaddType<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>a :Papply<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>c :Pcase<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>i :Pimport<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>q :PaddImportQualifications<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>g :Pgoto<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>p :Pursuit<CR>
|
|
||||||
au FileType purescript nmap <buffer> <silent> <LocalLeader>t :Ptype<CR>
|
|
||||||
au FileType purescript au BufWritePost <buffer> Prebuild
|
|
||||||
au FileType purescript setlocal keywordprg=:Pursuit
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
augroup c_maps
|
augroup c_maps
|
||||||
au!
|
au!
|
||||||
au FileType c nmap <LocalLeader>ct :NeomakeSh ctags -R .<CR>
|
au FileType c nmap <LocalLeader>ct :NeomakeSh ctags -R .<CR>
|
||||||
|
@ -564,14 +545,8 @@ call deoplete#custom#option('sources', {
|
||||||
\ 'haskell': ['LanguageClient', 'buffer', 'tag'],
|
\ 'haskell': ['LanguageClient', 'buffer', 'tag'],
|
||||||
\ 'rust': ['LanguageClient', 'buffer'],
|
\ 'rust': ['LanguageClient', 'buffer'],
|
||||||
\ 'python': ['LanguageClient', 'buffer'],
|
\ 'python': ['LanguageClient', 'buffer'],
|
||||||
\ 'purescript': ['buffer', 'omni'],
|
\ 'purescript': ['LanguageClient', 'buffer'],
|
||||||
\})
|
\})
|
||||||
call deoplete#custom#source('omni', 'functions', {
|
|
||||||
\ 'purescript': 'PSCIDEComplete',
|
|
||||||
\})
|
|
||||||
call deoplete#custom#var('omni', 'input_patterns', {
|
|
||||||
\ 'purescript': '\w*',
|
|
||||||
\})
|
|
||||||
call deoplete#custom#option({
|
call deoplete#custom#option({
|
||||||
\ 'auto_complete_delay': 200,
|
\ 'auto_complete_delay': 200,
|
||||||
\ 'auto_complete': v:true,
|
\ 'auto_complete': v:true,
|
||||||
|
@ -660,8 +635,6 @@ let g:cpp_concepts_highlight = 1
|
||||||
|
|
||||||
" For SLIMV
|
" For SLIMV
|
||||||
let g:lisp_rainbow=1
|
let g:lisp_rainbow=1
|
||||||
" For Purescript
|
|
||||||
let g:psc_ide_auto_imports = 1
|
|
||||||
|
|
||||||
" FZF
|
" FZF
|
||||||
let g:fzf_mru_no_sort = 1
|
let g:fzf_mru_no_sort = 1
|
||||||
|
@ -679,7 +652,8 @@ let g:LanguageClient_serverCommands = {
|
||||||
\ 'haskell': ['ghcide', '--lsp'],
|
\ 'haskell': ['ghcide', '--lsp'],
|
||||||
\ 'rust': ['ra_lsp_server'],
|
\ 'rust': ['ra_lsp_server'],
|
||||||
\ 'python': ['pyls'],
|
\ 'python': ['pyls'],
|
||||||
\ }
|
\ 'purescript': ['purescript-language-server', '--stdio', '--config', '{}'],
|
||||||
|
\ }
|
||||||
|
|
||||||
" Vista
|
" Vista
|
||||||
let g:vista_executive_for = {
|
let g:vista_executive_for = {
|
||||||
|
|
Loading…
Reference in a new issue