Skip to content

Commit

Permalink
Add client registration to lua-ts-mode and gdscript-ts-mode (#4132)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxrgd authored Aug 12, 2023
1 parent ee58d9e commit d14d3d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/lsp-gdscript.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

(lsp-register-client
(make-lsp-client :new-connection (lsp-gdscript-tcp-connect-to-port)
:major-modes '(gdscript-mode)
:activation-fn (lsp-activate-on "gdscript")
:server-id 'gdscript))

(lsp-consistency-check lsp-gdscript)
Expand Down
8 changes: 4 additions & 4 deletions clients/lsp-lua.el
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
,@lsp-clients-emmy-lua-args
,lsp-clients-emmy-lua-jar-path)))
#'lsp-clients-emmy-lua-test)
:major-modes '(lua-mode)
:activation-fn (lsp-activate-on "lua")
:server-id 'emmy-lua
:priority -1
:notification-handlers (lsp-ht ("emmy/progressReport" #'ignore))))
Expand Down Expand Up @@ -575,7 +575,7 @@ and `../lib` ,exclude `../lib/temp`.
,@lsp-clients-lua-language-server-args
,lsp-clients-lua-language-server-main-location)))
#'lsp-clients-lua-language-server-test)
:major-modes '(lua-mode)
:activation-fn (lsp-activate-on "lua")
:priority -2
:server-id 'lua-language-server
:download-server-fn #'lsp-lua-language-server-install-latest))
Expand Down Expand Up @@ -611,7 +611,7 @@ and `../lib` ,exclude `../lib/temp`.
(or lsp-clients-lua-lsp-server-install-dir
(f-join lsp-clients-luarocks-bin-dir "lua-lsp")))
#'lsp-clients-lua-lsp-test)
:major-modes '(lua-mode)
:activation-fn (lsp-activate-on "lua")
:priority -3
:server-id 'lsp-lua-lsp))

Expand Down Expand Up @@ -690,7 +690,7 @@ and `../lib` ,exclude `../lib/temp`.
,@lsp-clients-lua-language-server-args
,lsp-lua-roblox-language-server-main-location)))
#'lsp-lua-roblox-language-server-test)
:major-modes '(lua-mode)
:activation-fn (lsp-activate-on "lua")
:priority -4
:server-id 'lua-roblox-language-server
:download-server-fn #'lsp-lua-roblox-language-server-install))
Expand Down
3 changes: 3 additions & 0 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ Changes take effect only when a new session is started."
(less-mode . "less")
(less-css-mode . "less")
(lua-mode . "lua")
(lua-ts-mode . "lua")
(sass-mode . "sass")
(ssass-mode . "sass")
(scss-mode . "scss")
Expand Down Expand Up @@ -894,6 +895,7 @@ Changes take effect only when a new session is started."
(cmake-ts-mode . "cmake")
(purescript-mode . "purescript")
(gdscript-mode . "gdscript")
(gdscript-ts-mode . "gdscript")
(perl-mode . "perl")
(cperl-mode . "perl")
(robot-mode . "robot")
Expand Down Expand Up @@ -5926,6 +5928,7 @@ Request codeAction/resolve for more info if server supports."
(json-mode . js-indent-level) ; JSON
(json-ts-mode . json-ts-mode-indent-offset)
(lua-mode . lua-indent-level) ; Lua
(lua-ts-mode . lua-ts-mode-indent-offset)
(nxml-mode . nxml-child-indent) ; XML
(objc-mode . c-basic-offset) ; Objective C
(pascal-mode . pascal-indent-level) ; Pascal
Expand Down

0 comments on commit d14d3d5

Please sign in to comment.