ccls

about | blog | config | notes | github

1. C/C++/ObjC Language Server

ccls is a language server for the C Programming Language and the C++ Programming Language. ccls is an external package which must be installed, but it also has package that connects it to the Lsp Mode.

2. Configuration

2.1. Setup Dependencies

Make sure Lsp Mode is setup

(require 'init-lsp-mode)

2.2. Package Install

Time to install ccls.

(use-package ccls)

2.3. Executable Path

ccls needs us to specify where the executbale exists on our filesystem.

(setq ccls-executable "ccls")

2.4. Initialization Options

We need to tell the server how to configure itself. Use t for True, :json-false for False and :json-null.

(setq ccls-initialization-options '(:index (:comments 2) :completion (:detailedLabel t)))

2.5. Feature Provide

(provide 'init-ccls)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)