Skip to content

Commit

Permalink
Add support for clangd customization
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Dec 6, 2019
1 parent 6f4f738 commit 0a974ea
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion ycmd.el
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,22 @@ engine."
"Python binary path."
:type 'string)

(defcustom ycmd-use-clangd 1
"Use clangd for completion."
:type 'integer)

(defcustom ycmd-clangd-binary-path nil
"clangd binary path."
:type 'string)

(defcustom ycmd-clangd-args nil
"Extra arguments to pass to clangd when launching."
:type '(repeat string))

(defcustom ycmd-clangd-uses-ycmd-caching 1
"Have clangd use ycmd caching."
:type 'integer)

(defcustom ycmd-global-modes t
"Modes for which `ycmd-mode' is turned on by `global-ycmd-mode'.
Expand Down Expand Up @@ -2122,7 +2138,11 @@ file."
(rust_src_path . ,rust-src-path)
(swift_src_path . ,swift-src-path)
(racerd_binary_path . ,racerd-binary-path)
(python_binary_path . ,python-binary-path))))
(python_binary_path . ,python-binary-path)
(use_clangd . ,ycmd-use-clangd)
(clangd_binary_path . ,ycmd-clangd-binary-path)
(clangd_args . ,ycmd-clangd-args)
(clangd_uses_ycmd_caching . ,ycmd-clangd-uses-ycmd-caching))))

(defun ycmd--create-options-file (hmac-secret)
"Create a new options file for a ycmd server with HMAC-SECRET.
Expand Down

0 comments on commit 0a974ea

Please sign in to comment.