Add imenu to lsp-ui

This commit is contained in:
Wojciech Kozlowski 2019-03-17 00:18:51 +01:00
parent 051f3007bb
commit c8b71004ee
2 changed files with 10 additions and 4 deletions

View File

@ -160,7 +160,8 @@
(progn
(setq-default ispell-program-name "aspell")
(setq-default ispell-extra-args '("--sug-mode=ultra")))
(setq-default ispell-program-name "ispell")))
(setq-default ispell-program-name "ispell"))
(unbind-key "C-M-i" flyspell-mode-map))
;; --------------------------------------------------------------------------
;; Commands.

View File

@ -61,14 +61,19 @@
(use-package lsp-mode
:commands lsp
:config (require 'lsp-clients))
:config
(require 'lsp-clients))
(use-package lsp-ui
:commands lsp-ui-mode
:bind (("C-M-i" . lsp-ui-imenu))
:config
(setq lsp-ui-doc-enable nil)
(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))
(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))
;; --------------------------------------------------------------------------
;; Company - complete anything.