Skip to content
Snippets Groups Projects
Commit b8308809 authored by Philippe Dosch's avatar Philippe Dosch
Browse files

Ajout de LSP

parent 7ab159b6
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
(append (append
'( '(
"/home/phil/.lisp/" "/home/phil/.lisp/"
"/home/phil/.lisp/emacs-solargraph/"
) )
load-path)) load-path))
...@@ -444,7 +445,9 @@ ...@@ -444,7 +445,9 @@
;; :config ;; :config
;; (add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch)) ;; (add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch))
;; Request : utilisé par solagraph (LSP/Ruby)
(use-package request
:ensure t)
;; Tout ce qui est relatif à company (completion at any point) ;; Tout ce qui est relatif à company (completion at any point)
(use-package company (use-package company
...@@ -497,6 +500,31 @@ ...@@ -497,6 +500,31 @@
;; (eval-after-load 'company ;; (eval-after-load 'company
;; '(push 'company-robe company-backends)) ;; '(push 'company-robe company-backends))
;; Pour lsp (Language Server Protocol)
;; permettant de transformer emacs en IDE sur certains aspects
(use-package lsp-mode
:ensure t
:hook ((c-mode java-mode) . lsp)
:commands lsp)
;; optionally
(use-package lsp-ui
:ensure t
:commands lsp-ui-mode)
(use-package company-lsp
:ensure t
:commands company-lsp)
(use-package helm-lsp
:ensure t
:commands helm-lsp-workspace-symbol)
(use-package lsp-treemacs
:ensure t
:commands lsp-treemacs-errors-list)
;; Pour grammalecte ;; Pour grammalecte
(use-package flycheck-grammalecte (use-package flycheck-grammalecte
:ensure t :ensure t
...@@ -966,6 +994,10 @@ ...@@ -966,6 +994,10 @@
:ensure t :ensure t
:quelpa (dired+ :fetcher github :repo "emacsmirror/dired-plus")) :quelpa (dired+ :fetcher github :repo "emacsmirror/dired-plus"))
;; ;; Support de Ruby avec lsp
;; (require 'solargraph)
;; (define-key ruby-mode-map (kbd "M-i") 'solargraph:complete)
;; Pour les snippets : yas-global-mode ;; Pour les snippets : yas-global-mode
(add-to-list 'load-path (add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet") "~/.emacs.d/plugins/yasnippet")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment