Various LSP cleanups and fixes

parent 0a47f22d
......@@ -658,6 +658,7 @@ in
lsp-ivy = {
enable = true;
after = [ "lsp-mode" ];
command = [ "lsp-ivy-workspace-symbol" ];
};
lsp-haskell = {
......@@ -675,17 +676,22 @@ in
lsp-ui = {
enable = true;
command = [ "lsp-ui-mode" ];
bind = {
"C-c r d" = "lsp-ui-doc-show";
"C-c f s" = "lsp-ui-find-workspace-symbol";
bindLocal = {
lsp-mode-map = {
"C-c r d" = "lsp-ui-doc-glance";
"C-c f s" = "lsp-ui-find-workspace-symbol";
};
};
config = ''
(setq lsp-ui-sideline-enable t
lsp-ui-sideline-show-symbol nil
lsp-ui-sideline-show-hover nil
lsp-ui-sideline-show-code-actions nil
lsp-ui-sideline-update-mode 'point
lsp-ui-doc-enable nil)
lsp-ui-sideline-update-mode 'point)
(setq lsp-ui-doc-enable nil
lsp-ui-doc-position 'at-point
lsp-ui-doc-max-width 120
lsp-ui-doc-max-height 15)
'';
};
......@@ -712,19 +718,25 @@ in
command = [ "lsp" ];
after = [ "flycheck" ];
hook = [ "(lsp-mode . lsp-enable-which-key-integration)" ];
bind = {
"C-c r r" = "lsp-rename";
"C-c r f" = "lsp-format-buffer";
"C-c r g" = "lsp-format-region";
"C-c r a" = "lsp-execute-code-action";
"C-c f r" = "lsp-find-references";
bindLocal = {
lsp-mode-map = {
"C-c r r" = "lsp-rename";
"C-c r f" = "lsp-format-buffer";
"C-c r g" = "lsp-format-region";
"C-c r a" = "lsp-execute-code-action";
"C-c f r" = "lsp-find-references";
};
};
init = ''
(setq lsp-keymap-prefix "C-c l")
'';
config = ''
(setq lsp-diagnostics-provider :flycheck
lsp-eldoc-render-all nil
lsp-modeline-code-actions-enable nil
lsp-modeline-diagnostics-enable nil
lsp-modeline-workspace-status-enable nil)
(define-key lsp-mode-map (kbd "C-c l") lsp-command-map)
'';
};
......@@ -772,7 +784,8 @@ in
lsp-treemacs = {
enable = true;
after = [ "lsp-mode" "treemacs" ];
after = [ "lsp-mode" ];
command = [ "lsp-treemacs-errors-list" ];
};
dap-mode = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment