lsp-init.vim 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. call plug#begin('~/.config/nvim/plugged')
  2. Plug 'Lokaltog/vim-distinguished'
  3. Plug 'autozimu/LanguageClient-neovim', { 'do': ':UpdateRemotePlugins' }
  4. "
  5. " (Optional) Multi-entry selection UI.
  6. " Plug 'junegunn/fzf'
  7. " (Optional) Multi-entry selection UI.
  8. Plug 'Shougo/denite.nvim'
  9. " (Optional) Completion integration with deoplete.
  10. Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
  11. " (Optional) Completion integration with nvim-completion-manager.
  12. "Plug 'roxma/nvim-completion-manager'
  13. " (Optional) Showing function signature and inline doc.
  14. Plug 'Shougo/echodoc.vim'
  15. call plug#end()
  16. " Begin LSP configuration
  17. " Required for operations modifying multiple buffers like rename.
  18. set hidden
  19. let g:LanguageClient_serverCommands = {
  20. \ 'vhdl': ['vhdl-tool', 'lsp']
  21. \ }
  22. let g:LanguageClient_autoStart = 1
  23. nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
  24. nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
  25. au! CursorHold *.vhd execute ":call LanguageClient_textDocument_hover()"
  26. au! CursorHold *.vhdl execute ":call LanguageClient_textDocument_hover()"
  27. " End LSP configuration
  28. " Deoplete configuration
  29. let g:deoplete#enable_at_startup = 1
  30. autocmd CompleteDone * pclose!
  31. " End Deoplete configuration
  32. "General settings
  33. syntax on " syntax highlighting
  34. " Color scheme settings
  35. set background=dark
  36. colorscheme distinguished