Skip to content

Commit

Permalink
Update TRAMP configuration of lsp lang server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdjames37 committed Nov 24, 2023
1 parent 6029977 commit 93c4848
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
42 changes: 22 additions & 20 deletions cpp.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,32 @@
lsp-deferred)
:init
(add-to-list 'lsp-enabled-clients 'ccls)
(add-to-list 'lsp-enabled-clients 'ccls-tramp)
(add-to-list 'lsp-enabled-clients 'clangd-tramp)
)

;;(use-package cuda-mode)
(use-package cmake-mode)

(with-eval-after-load 'lsp-mode
(progn
(require 'lsp)
(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection
;;'("clangd" "--log=verbose"))
'("bash" "/home/jhd/1.sh"))
:major-modes '(c-mode c++-mode c-ts-mode c++-ts-mode)
:remote? t
:server-id 'clangd-remote))

(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection "ccls")
:major-modes '(c-mode c++-mode c-ts-mode c++-ts-mode)
:remote? t
:server-id 'ccls-remote))
;; (with-eval-after-load 'lsp-mode
;; (progn
;; (require 'lsp)
;; (lsp-register-client
;; (make-lsp-client :new-connection (lsp-tramp-connection
;; '("clangd" "--log=verbose"))
;; ;;'("bash" "/home/jhd/1.sh"))
;; :major-modes '(c-mode c++-mode c-ts-mode c++-ts-mode)
;; :remote? t
;; :server-id 'clangd-remote))

;; (lsp-register-client
;; (make-lsp-client :new-connection (lsp-tramp-connection "ccls")
;; :major-modes '(c-mode c++-mode c-ts-mode c++-ts-mode)
;; :remote? t
;; :server-id 'ccls-remote))


(add-to-list 'lsp-enabled-clients 'clangd-remote)
(add-to-list 'lsp-enabled-clients 'ccls-remote)
(add-to-list 'lsp-enabled-clients 'ccls-test)
))
;; (add-to-list 'lsp-enabled-clients 'clangd-remote)
;; (add-to-list 'lsp-enabled-clients 'ccls-remote)
;; (add-to-list 'lsp-enabled-clients 'ccls-test)
;; ))
17 changes: 10 additions & 7 deletions python.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@
(with-eval-after-load "lsp-mode"
;;(add-to-list 'lsp-jedi-python-library-directories "/home/jhdjames37/miniconda3/") ;; Add conda support
(add-to-list 'lsp-disabled-clients 'pyls)
(add-to-list 'lsp-enabled-clients 'jedi)))
(add-to-list 'lsp-enabled-clients 'jedi)
(add-to-list 'lsp-enabled-clients 'pyls-tramp)
(add-to-list 'lsp-enabled-clients 'jedi-tramp)
))

(use-package company-jedi
:after lsp-jedi)

(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection "pylsp")
:major-modes '(python-mode python-ts-mode)
:remote? t
:server-id 'pyls-remote))
;; (lsp-register-client
;; (make-lsp-client :new-connection (lsp-tramp-connection "pylsp")
;; :major-modes '(python-mode python-ts-mode)
;; :remote? t
;; :server-id 'pyls-remote))

(add-to-list 'lsp-enabled-clients 'pyls-remote)
;; (add-to-list 'lsp-enabled-clients 'pyls-remote)

0 comments on commit 93c4848

Please sign in to comment.