Move to lsp from eglot config; add company.

master
jowj 4 years ago
parent c398583cd5
commit 81c875cd5b

@ -41,11 +41,15 @@
'(epg-gpg-program "/usr/local/bin/gpg")
'(global-hl-line-mode t)
'(package-selected-packages
'(ob-restclient virtualenvwrapper flymake-python-pyflakes lsp-ui lsp-mode jedi znc yaml-mode which-key use-package twittering-mode try smex racer python-mode pylint py-autopep8 powershell pdf-tools outline-magic org2blog multiple-cursors magit helm flycheck-rust eyebrowse exec-path-from-shell emojify elpy ein doom-themes dockerfile-mode docker csharp-mode ansible anaconda-mode ace-window))
(quote
(company-lsp ob-restclient virtualenvwrapper flymake-python-pyflakes lsp-ui lsp-mode jedi znc yaml-mode which-key use-package twittering-mode try smex racer python-mode pylint py-autopep8 powershell pdf-tools outline-magic org2blog multiple-cursors magit helm flycheck-rust eyebrowse exec-path-from-shell emojify elpy ein doom-themes dockerfile-mode docker csharp-mode ansible anaconda-mode ace-window)))
'(znc-servers
`(("bouncer.awful.club" 5000 t
((freenode "blindidiotgod/freenode" ,znc-password)
(OFTC "blindidiotgod/OFTC" ,znc-password))))))
(\`
(("bouncer.awful.club" 5000 t
((freenode "blindidiotgod/freenode"
(\, znc-password))
(OFTC "blindidiotgod/OFTC"
(\, znc-password))))))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

@ -4,32 +4,36 @@
;; using jedi requires virtualenv to be installed
;; pipenv is mostly acceptable but i could not make a full IDE experience happen
;; (use-package pylint
;; :ensure t)
;; (setq python-shell-interpreter "/usr/local/bin/python3"
;; python-shell-interpreter-args "-i")
(use-package pipenv
:ensure t)
;; (use-package py-autopep8
;; :ensure t
;; :config
;; (progn
;; (add-hook 'python-mode-hook 'py-autopep8-enable-on-save)))
(use-package flycheck
:ensure t)
;; (use-package jedi
;; :ensure t
;; :init
;; (add-hook 'python-mode-hook 'jedi:setup)
;; (add-hook 'python-mode-hook 'jedi:ac-setup))
; Let's set up company! perhaps not necessary but this is what i like to use
(use-package company
:ensure t
:config
(setq company-idle-delay 0)
(setq company-minimum-prefix-length 1))
(use-package pipenv
:ensure t)
; install lsp mode
(use-package lsp-mode
:ensure t
:hook (python-mode . lsp-deferred)
:commands (lsp lsp-deferred))
(use-package eglot
; let's add the lsp company backend
(use-package company-lsp
:ensure t
:config
(add-hook 'python-mode-hook 'eglot-ensure))
(push 'company-lsp company-backends))
; also installs lsp as a dependency
(use-package lsp-ui
:ensure t
:hook (lsp-mode . lsp-ui-mode))
;; (use-package pyvenv
;; :ensure t)

Loading…
Cancel
Save