feat(lsp): tweak configuration for lsp-mode and lsp-ui

Overall enable more features, like lsp-ui's sideline.
This commit is contained in:
2021-03-15 23:03:12 +00:00
parent d941d5c0f1
commit b7bc119af0
2 changed files with 20 additions and 8 deletions

View File

@@ -19,15 +19,19 @@
:custom
(lsp-ui-doc-alignment 'window)
(lsp-ui-doc-delay 0.2)
(lsp-ui-doc-show-with-cursor t)
(lsp-ui-doc-show-with-mouse t)
(lsp-ui-doc-enable nil)
(lsp-ui-doc-enable t)
(lsp-ui-doc-header nil)
(lsp-ui-doc-include-signature nil)
(lsp-ui-doc-include-signature t)
(lsp-ui-doc-max-height 45)
(lsp-ui-doc-position 'at-point)
(lsp-ui-doc-show-with-cursor nil)
(lsp-ui-doc-show-with-mouse t)
(lsp-ui-doc-use-webkit nil)
(lsp-ui-sideline-enable nil))
(lsp-ui-peek-always-show nil)
(lsp-ui-sideline-enable t)
(lsp-ui-sideline-show-code-actions t)
(lsp-ui-sideline-show-diagnostics t)
(lsp-ui-sideline-show-hover t))
(provide 'siren-lsp-ui)
;;; siren-lsp-ui.el ends here

View File

@@ -19,13 +19,21 @@
(lsp-mode . siren-lsp-mode-setup)
:custom
(lsp-completion-provider :capf)
(lsp-completion-show-detail t)
(lsp-completion-show-kind t)
(lsp-eldoc-enable-hover t)
(lsp-eldoc-render-all nil)
(lsp-enable-xref t)
(lsp-enable-file-watchers t)
(lsp-enable-imenu t)
(lsp-lens-enable t)
(lsp-enable-symbol-highlighting t)
(lsp-enable-xref t)
(lsp-headerline-breadcrumb-enable t)
(lsp-keymap-prefix "M-;")
(lsp-completion-provider :capf)
(lsp-lens-enable t)
(lsp-modeline-diagnostics-enable t)
(lsp-signature-auto-activate t)
(lsp-signature-render-documentation t)
;; Set read process output to 1MB, instead of default 4KB. As many language
;; servers produce output ranging from 800KB to 3MB, leaving it at 4KB affects