LSP mode and spellchecking integration
This commit is contained in:
parent
146649a99f
commit
d67b45e799
62
config.org
62
config.org
|
|
@ -312,31 +312,6 @@ Configuration :
|
||||||
:init
|
:init
|
||||||
(company-quickhelp-mode))
|
(company-quickhelp-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** Company + Yasnippet
|
|
||||||
+BEGIN_SRC emacs-lisp
|
|
||||||
(use-package yasnippet
|
|
||||||
:ensure t
|
|
||||||
:config
|
|
||||||
(use-package yasnippet-snippets
|
|
||||||
:ensure t)
|
|
||||||
(yas-reload-all))
|
|
||||||
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
|
||||||
(add-to-list 'company-backends 'company-yasnippet)
|
|
||||||
+END_SRC
|
|
||||||
**** Company-Jedi Python
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(use-package company-jedi
|
|
||||||
:ensure t)
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Set Company-Jedi to run on Python buffers. :
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(require 'company-jedi)
|
|
||||||
(autoload 'jedi:setup "jedi" nil t)
|
|
||||||
(add-hook 'python-mode-hook 'jedi:setup)
|
|
||||||
(add-to-list 'company-backends 'company-jedi)
|
|
||||||
#+END_SRC
|
|
||||||
*** Which Key
|
*** Which Key
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
|
|
@ -344,14 +319,47 @@ Set Company-Jedi to run on Python buffers. :
|
||||||
:init
|
:init
|
||||||
(which-key-mode))
|
(which-key-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** LSP Mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
|
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
|
||||||
|
(setq lsp-keymap-prefix "s-l")
|
||||||
|
|
||||||
|
(use-package lsp-mode
|
||||||
|
:ensure t
|
||||||
|
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
||||||
|
(prog-mode . lsp)
|
||||||
|
;; if you want which-key integration
|
||||||
|
(lsp-mode . lsp-enable-which-key-integration))
|
||||||
|
:commands lsp)
|
||||||
|
|
||||||
|
;; optionally
|
||||||
|
(use-package lsp-ui :commands lsp-ui-mode
|
||||||
|
:ensure t)
|
||||||
|
(use-package company-lsp :commands company-lsp
|
||||||
|
:ensure t)
|
||||||
|
;; if you are helm user
|
||||||
|
;;(use-package helm-lsp :commands helm-lsp-workspace-symbol)
|
||||||
|
;; if you are ivy user
|
||||||
|
(use-package lsp-ivy :commands lsp-ivy-workspace-symbol
|
||||||
|
:ensure t)
|
||||||
|
(use-package lsp-treemacs :commands lsp-treemacs-errors-list
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
|
;; optionally if you want to use debugger
|
||||||
|
(use-package dap-mode
|
||||||
|
:ensure t)
|
||||||
|
;; (use-package dap-LANGUAGE) to load the dap adapter for your language
|
||||||
|
#+END_SRC
|
||||||
** Spell Correction
|
** Spell Correction
|
||||||
*** Flyspell Correct Ivy
|
*** Flyspell Correct Ivy
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package flyspell-correct-ivy
|
(use-package flyspell-correct-ivy
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind ("C-M-;" . flyspell-correct-wrapper)
|
:bind ("C-;" . flyspell-correct-wrapper)
|
||||||
:init
|
:init
|
||||||
(setq flyspell-correct-interface #'flyspell-correct-ivy))
|
(setq flyspell-correct-interface #'flyspell-correct-ivy)
|
||||||
|
(add-hook 'org-mode-hook 'flyspell-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Multiple Cursors
|
** Multiple Cursors
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue