Skip to content

Commit 5d643fb

Browse files
author
lin.sun
authored
More robust way to locate the resource dir (#648)
1 parent 177c31e commit 5d643fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ui.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(require 'find-func)
3939

4040
(defconst lsp-ui-resources-dir
41-
(--> (find-library-name "lsp-ui")
41+
(--> (or load-file-name (buffer-file-name))
4242
(file-name-directory it)
4343
(expand-file-name "resources" it)
4444
(file-name-as-directory it)

0 commit comments

Comments
 (0)