File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 38
38
:safe #'booleanp
39
39
:group 'lsp-ruby-lsp )
40
40
41
+ (defcustom lsp-ruby-lsp-library-directories
42
+ '(" ~/.rbenv/" " /usr/lib/ruby/" " ~/.rvm/" " ~/.gem/" " ~/.asdf" )
43
+ " List of directories which will be considered to be libraries."
44
+ :type '(repeat string)
45
+ :group 'lsp-ruby-lsp
46
+ :package-version '(lsp-mode . " 9.0.1" ))
47
+
41
48
(defun lsp-ruby-lsp--build-command ()
42
49
(append
43
50
(if lsp-ruby-lsp-use-bundler '(" bundle" " exec" ))
68
75
(make-lsp-client
69
76
:new-connection (lsp-stdio-connection #'lsp-ruby-lsp--build-command )
70
77
:activation-fn (lsp-activate-on " ruby" )
78
+ :library-folders-fn (lambda (_workspace ) lsp-ruby-lsp-library-directories)
71
79
:priority -2
72
80
:action-handlers (ht (" rubyLsp.openFile" #'lsp-ruby-lsp--open-file )
73
81
(" rubyLsp.runTest" #'lsp-ruby-lsp--run-test )
You can’t perform that action at this time.
0 commit comments