File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 35
35
(require 'ivy )
36
36
(require 'dash )
37
37
(require 'lsp-mode )
38
+
38
39
(defgroup lsp-ivy nil
39
40
" LSP support for ivy-based symbol completion"
40
41
:group 'lsp-mode )
41
42
42
43
(defcustom lsp-ivy-show-symbol-kind
43
- nil
44
+ t
44
45
" Whether to show the symbol's kind when showing lsp symbols"
45
46
:group 'lsp-ivy
46
47
:type 'boolean )
116
117
(let* ((container-name (gethash " containerName" match ))
117
118
(name (gethash " name" match ))
118
119
(type (elt lsp-ivy-symbol-kind-to-string (gethash " kind" match ) ))
119
- (typestr (propertize (format " [%s ] " (car type)) 'face `(:foreground ,(cdr type)))))
120
- (if (or (null container-name) (string-empty-p container-name))
121
- (format " %s %s " typestr name)
122
- (format " %s %s .%s " typestr container-name name))))
120
+ (typestr (if lsp-ivy-show-symbol-kind
121
+ (propertize (format " [%s ] " (car type)) 'face `(:foreground ,(cdr type)))
122
+ " " )))
123
+ (concat typestr (if (or (null container-name) (string-empty-p container-name))
124
+ (format " %s " name)
125
+ (format " %s .%s " container-name name)))))
123
126
124
127
(defun lsp-ivy--workspace-symbol-action (candidate )
125
128
" Jump to selected CANDIDATE."
You can’t perform that action at this time.
0 commit comments