rice

personal dot files and scripts for linux and macOS
Log | Files | Refs | README | LICENSE

module-lsp.el (527B)


      1 (use-package eglot
      2   :disabled
      3   :bind
      4   (:map eglot-mode-map
      5         ("C-c r" . eglot-rename)
      6         ("C-c o" . eglot-code-action-organize-imports)
      7         ("C-c h" . eldoc)
      8         ("M-."   . xref-show-definitions-function))
      9   :config
     10   (add-hook 'go-mode-hook 'eglot-ensure)
     11   (add-hook 'eglot--managed-mode (lambda () (flymake-mode -1))))
     12 
     13 (use-package lsp-mode
     14   :config
     15   (setq lsp-keymap-prefix "H-l")
     16   (add-hook 'go-mode-hook #'lsp))
     17 
     18 (use-package lsp-ivy
     19   :commands lsp-ivy-workspace-symbol)
     20 
     21 (provide 'module-lsp)