nvim: Enable purescript language server

This does not perform any better than purs ide and psc-ide-vim could not
jump to definitions in other components which is the same case here.
But, at least we now need one less package and additional bindings for
psc-ide-vim.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-06-03 14:26:19 +05:30
parent f40584b6a9
commit fa04744c9a
4 changed files with 2 additions and 16 deletions

View file

@ -1,15 +1,2 @@
setlocal textwidth=0
setlocal wrapmargin=0
nmap <buffer> <silent> <LocalLeader>L :Plist<CR>
nmap <buffer> <silent> <LocalLeader>l :Pload<CR>
nmap <buffer> <silent> <LocalLeader>r :Prebuild<CR>
nmap <buffer> <silent> <LocalLeader>f :PaddClause<CR>
nmap <buffer> <silent> <LocalLeader>T :PaddType<CR>
nmap <buffer> <silent> <LocalLeader>a :Papply<CR>
nmap <buffer> <silent> <LocalLeader>c :Pcase<CR>
nmap <buffer> <silent> <LocalLeader>i :Pimport<CR>
nmap <buffer> <silent> <LocalLeader>q :PaddImportQualifications<CR>
nmap <buffer> <silent> <LocalLeader>p :Pursuit<CR>
nmap <buffer> <silent> gd :Pgoto<CR>
nmap <buffer> <silent> K :Ptype<CR>

View file

@ -73,7 +73,6 @@ Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
" Purescript
Plug 'purescript-contrib/purescript-vim'
Plug 'frigoeu/psc-ide-vim'
" Lisp
Plug 'wlangstroth/vim-racket'
Plug 'guns/vim-clojure-static'

View file

@ -19,7 +19,7 @@ local on_attach = function(_, bufnr)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<Leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
end
local servers = { 'ghcide', 'rust_analyzer' }
local servers = { 'ghcide', 'purescriptls', 'rust_analyzer' }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,

View file

@ -93,8 +93,8 @@ let g:completion_chain_complete_list = {
\ {'mode': 'keyn'}
\],
\ 'purescript': [
\ {'complete_items': ['lsp']},
\ {'mode': 'keyn'},
\ {'mode': 'omni'},
\ {'mode': '<c-p>'},
\ {'mode': '<c-n>'}
\],