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' }
|
||||
" Purescript
|
||||
Plug 'purescript-contrib/purescript-vim', { 'for': 'purescript' }
|
||||
Plug 'frigoeu/psc-ide-vim', { 'for': 'purescript' }
|
||||
" Neo/Async stuff
|
||||
Plug 'sbdchd/neoformat'
|
||||
Plug 'neomake/neomake'
|
||||
|
@ -409,24 +408,6 @@ augroup haskell_maps
|
|||
au FileType haskell inoremap <buffer> ;: <ESC>:call MakeArrow(0)<CR>
|
||||
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
|
||||
au!
|
||||
au FileType c nmap <LocalLeader>ct :NeomakeSh ctags -R .<CR>
|
||||
|
@ -564,14 +545,8 @@ call deoplete#custom#option('sources', {
|
|||
\ 'haskell': ['LanguageClient', 'buffer', 'tag'],
|
||||
\ 'rust': ['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({
|
||||
\ 'auto_complete_delay': 200,
|
||||
\ 'auto_complete': v:true,
|
||||
|
@ -660,8 +635,6 @@ let g:cpp_concepts_highlight = 1
|
|||
|
||||
" For SLIMV
|
||||
let g:lisp_rainbow=1
|
||||
" For Purescript
|
||||
let g:psc_ide_auto_imports = 1
|
||||
|
||||
" FZF
|
||||
let g:fzf_mru_no_sort = 1
|
||||
|
@ -679,7 +652,8 @@ let g:LanguageClient_serverCommands = {
|
|||
\ 'haskell': ['ghcide', '--lsp'],
|
||||
\ 'rust': ['ra_lsp_server'],
|
||||
\ 'python': ['pyls'],
|
||||
\ }
|
||||
\ 'purescript': ['purescript-language-server', '--stdio', '--config', '{}'],
|
||||
\ }
|
||||
|
||||
" Vista
|
||||
let g:vista_executive_for = {
|
||||
|
|
Loading…
Reference in a new issue