Skip to content

Commit

Permalink
Typescript and Solidity in nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
clvv committed Dec 2, 2022
1 parent cf223ba commit 7dc16cd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .config/nvim/coc.vim
Expand Up @@ -146,18 +146,18 @@ set statusline=%f\ %h%w%m%r%=%{coc#status()}%{get(b:,'coc_current_function','')}

" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
nnoremap <silent><nowait> <leader>d :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList --normal outline<cr>
" nnoremap <silent><nowait> <space>o :<C-u>CocList --normal outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.
nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list.
nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>
" nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>
1 change: 1 addition & 0 deletions .env
Expand Up @@ -15,6 +15,7 @@ pathmunge() {
pathmunge "$HOME/.cargo/bin"
pathmunge "$HOME/.cabal/bin"
pathmunge "$HOME/node_modules/.bin"
pathmunge "$HOME/.foundry/bin"
pathmunge "$HOME/bin"
pathmunge "$HOME/.local/bin"

Expand Down
6 changes: 4 additions & 2 deletions .vimrc
Expand Up @@ -3,8 +3,9 @@ call plug#begin('~/.vim/plugged')

" IDE: Coc, Conquer of completion. Requires nodejs.
Plug 'neoclide/coc.nvim', {'branch': 'release',
\ 'for': ['rust', 'tex', 'markdown'], 'on': 'CocInfo',
\ 'do': ':CocInstall coc-rust-analyzer coc-ltex',
\ 'for': ['rust', 'tex', 'markdown', 'typescript', 'solidity'],
\ 'on': 'CocInfo',
\ 'do': ':CocInstall coc-rust-analyzer coc-ltex coc-tsserver coc-solidity',
\ }
autocmd! User coc.nvim source ~/.config/nvim/coc.vim

Expand All @@ -29,6 +30,7 @@ Plug 'tpope/vim-repeat'

" Language:
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
Plug 'iden3/vim-circom-syntax'

" Other:
Plug 'vim-scripts/IndexedSearch'
Expand Down

0 comments on commit 7dc16cd

Please sign in to comment.