Commit 9e029550 authored by Fangrui Song's avatar Fangrui Song

Remove --language-server and fix semantic highlighting on Tab

parent 0b39ba36
......@@ -293,11 +293,13 @@ If nil, disable semantic highlighting."
(cl-loop
for (start end face) in ranges do
(forward-line (- (car start) last-line-number))
(move-to-column (cdr start))
(beginning-of-line)
(forward-char (cdr start))
;; start of range
(setq range-start (point))
(forward-line (- (car end) (car start)))
(move-to-column (cdr end))
(beginning-of-line)
(forward-char (cdr end))
;; end of range
(setq range-end (point))
(cquery--make-sem-highlight (cons range-start range-end) buffer face)
......@@ -614,7 +616,7 @@ Keep an eye on https://github.com/jacobdufault/cquery/issues/283"
;;;###autoload (autoload 'lsp-cquery-enable "cquery")
(lsp-define-stdio-client
lsp-cquery "cpp" #'cquery--get-root
`(,cquery-executable "--language-server" ,@cquery-extra-args)
`(,cquery-executable ,@cquery-extra-args)
:initialize #'cquery--initialize-client
:extra-init-params #'cquery--get-init-params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment