Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (use-package lsp-mode
- :ensure t
- :defer t
- :commands lsp
- :hook
- (python-mode . lsp)
- (rust-mode . lsp)
- (java-mode . lsp)
- :config
- ;(setq lsp-log-io t)
- (setq lsp-prefer-flymake nil
- lsp-restart 'auto-restart
- lsp-enable-snippet nil
- lsp-enable-xref t
- lsp-keep-workspace-alive t
- lsp-enable-on-type-formatting t
- lsp-imenu-show-container-name t
- lsp-enable-file-watchers t
- lsp-eldoc-render-all nil
- lsp-enable-symbol-highlighting nil
- lsp-signature-render-all nil
- lsp-enable-imenu t)
- )
- (use-package company
- :ensure t
- :diminish
- :config
- (setq company-minimum-prefix-length 1
- company-auto-complete nil
- tab-always-indent 'complete
- company-idle-delay .2
- company-require-match nil
- company-tooltip-limit 15
- company-tooltip-align-annotations t)
- (setq company-global-modes '(not shell-mode eshell))
- (global-company-mode t)
- (define-key company-active-map (kbd "TAB") 'company-complete-common-or-cycle)
- (define-key company-active-map (kbd "<tab>") 'company-complete-common-or-cycle)
- (define-key company-active-map (kbd "S-TAB") 'company-select-previous)
- (define-key company-active-map (kbd "<backtab>") 'company-select-previous)
- )
- (use-package company-lsp
- :ensure t
- :defer t
- :diminish
- :requires company
- :commands (company-lsp)
- :hook (python-mode-hook . company-lsp)
- :init (push 'company-lsp company-backends)
- :config
- (setq company-transformers nil
- company-lsp-enable-snippet nil
- company-lsp-cache-candidates nil
- company-lsp-async t
- )
- )
- (use-package lsp-ui
- :ensure t
- :after lsp
- :diminish
- :commands (lsp-ui-mode)
- :config
- (setq lsp-ui-doc-enable nil
- lsp-ui-sideline-enable nil
- lsp-ui-doc-position 'bottom
- lsp-ui-doc-use-childframe t
- lsp-ui-doc-aligment 'frame
- lsp-ui-doc-delay 5)
- )
- (use-package pyvenv
- :ensure t
- :defer t
- :diminish
- :config
- (setenv "WORKON_HOME" pyworkon-venvs-folder)
- (setq pyvenv-mode-line-indicator '(pyvenv-virtual-env-name ("[venv:" pyvenv-virtual-env-name "] ")))
- (pyvenv-mode t)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement