Skip to content

Commit 4a5af31

Browse files
committed
Better way to add languages folder to load path
1 parent 0449e1d commit 4a5af31

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lsp-sonarlint.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ e.g. `-Xmx1024m`."
9494
:group 'lsp-sonarlint
9595
:type 'string)
9696

97-
(let ((default-directory (concat
98-
(file-name-directory load-file-name)
99-
"languages")))
100-
(normal-top-level-add-subdirs-to-load-path))
97+
(add-to-list 'load-path (concat (file-name-directory load-file-name) "languages"))
10198

10299
(defun lsp-sonarlint--plugin-list ()
103100
"Check for the enabled extensions and return a path list.

0 commit comments

Comments
 (0)