diff options
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/my-lsp.el | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/emacs/custom/my-lsp.el b/emacs/custom/my-lsp.el new file mode 100644 index 0000000..0cb62bd --- /dev/null +++ b/emacs/custom/my-lsp.el @@ -0,0 +1,27 @@ +;;; my-lsp.el --- Configures emacs for LSP -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;;; Code: + +(require 'lsp-mode) +(require 'lsp-ui) + +(setq lsp-ui-doc-position 'at-point) +(setq lsp-ui-peek-enable t) ;; Enable `lsp-ui-peek'. +(setq lsp-ui-peek-show-directory t) ;; Show the directory of files. +(setq lsp-ui-sideline-enable t) ;; Enable `lsp-ui-sideline'. +(setq lsp-ui-sideline-show-hover t) ;; Show hover messages in sideline. +(setq lsp-ui-sideline-show-code-actions t) ;; Show code actions in sideline. + +(setq lsp-completion-enable t) ;; Enable `completion-at-point' integration. + +(require 'lsp-diagnostics) +(setq lsp-diagnostics-provider :flymake) + +(add-hook 'lsp-mode-hook #'lsp-ui-mode) + +(provide 'my-lsp) + +;;; my-lsp.el ends here |