Update emacs lsp-mode config.

This commit is contained in:
Kevin Baensch 2023-01-29 14:34:34 +01:00
parent c5eb628248
commit f6a24ff9f6
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -29,14 +29,17 @@ mkIf (elem "emacs::lsp" config.machine.pkgs) {
lsp-ui = { lsp-ui = {
enable = true; enable = true;
after = [ "lsp" ]; after = [ "lsp-mode" ];
command = [ "lsp-ui-mode" "lsp-ui-sideline-mode" ];
config = '' config = ''
(setq lsp-ui-sideline-enable t (setq lsp-ui-sideline-enable 't)
lsp-ui-sideline-show-symbol nil (setq lsp-ui-sideline-show-symbol nil)
lsp-ui-sideline-show-hover nil (setq lsp-ui-sideline-show-hover nil)
lsp-ui-sideline-show-code-actions t (setq lsp-ui-doc-show-with-cursor 't)
lsp-ui-sideline-update-mode 'point) (setq lsp-ui-doc-delay 1)
(setq lsp-ui-sideline-show-code-actions 't)
(setq lsp-ui-sideline-update-mode 'point)
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
(define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references)
''; '';
}; };