Add LanguageServerProtocol mode
This commit is contained in:
parent
f3f8fe991e
commit
510e3f7443
3 changed files with 12 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
;;; Show hex colors as colors
|
||||
(add-hook 'prog-mode-hook 'rainbow-mode)
|
||||
(add-hook 'text-mode-hook 'rainbow-mode)
|
||||
(require 'lsp-mode)
|
||||
|
||||
;;; When pasting/writing over a selection, replace it.
|
||||
(delete-selection-mode 1)
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
company-yasnippet ;; Snippets for all programming languages
|
||||
company-elisp ; Emacs Lisp
|
||||
company-clang company-cmake ;; C
|
||||
company-lsp ;; Language server protocol
|
||||
company-robe ;; Ruby
|
||||
company-ansible ;; Ansible
|
||||
alchemist-company ;; Elixir
|
||||
|
|
@ -38,6 +39,11 @@
|
|||
company-files ; files & directory
|
||||
))
|
||||
|
||||
|
||||
(setq-default company-lsp-cache-candidates 1 ;; Cache LSP results
|
||||
company-lsp-async 1 ;; Fetch LSP results asynchronously
|
||||
)
|
||||
|
||||
;;; Yasnippet configuration
|
||||
(define-key prog-mode-map (kbd "C-c y") 'company-yasnippet)
|
||||
(define-key prog-mode-map (kbd "<f13>") 'company-yasnippet)
|
||||
|
|
|
|||
5
init.el
5
init.el
|
|
@ -40,6 +40,9 @@
|
|||
flycheck ;; Compilation framework
|
||||
visual-regexp ;; Regexp replacement with preview in
|
||||
;; current buffer.
|
||||
lsp-mode
|
||||
company-lsp
|
||||
lsp-ui
|
||||
|
||||
;; Project management
|
||||
projectile
|
||||
|
|
@ -116,7 +119,7 @@
|
|||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(nginx-mode gitignore-mode js2-mode keyfreq company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||
(dap-mode lsp-ui company-lsp lsp-mode nginx-mode gitignore-mode js2-mode keyfreq company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue