Add delq! and pushnew! macros
And move projectile configs to their respective modules (and out of package configs).
This commit is contained in:
parent
f934f38627
commit
742687a51e
5 changed files with 33 additions and 21 deletions
|
@ -237,13 +237,14 @@ This is ignored by ccls.")
|
|||
(def-package! ccls
|
||||
:when (featurep! +lsp)
|
||||
:hook ((c-mode-local-vars c++-mode-local-vars objc-mode-local-vars) . +cc|init-ccls)
|
||||
:init
|
||||
(after! projectile
|
||||
(add-to-list 'projectile-globally-ignored-directories ".ccls-cache")
|
||||
(add-to-list 'projectile-project-root-files-bottom-up ".ccls-root")
|
||||
(add-to-list 'projectile-project-root-files-top-down-recurring "compile_commands.json"))
|
||||
:config
|
||||
(defun +cc|init-ccls ()
|
||||
(setq-local company-transformers nil)
|
||||
(setq-local company-lsp-async t)
|
||||
(setq-local company-lsp-cache-candidates nil)
|
||||
(lsp))
|
||||
(after! projectile
|
||||
(add-to-list 'projectile-globally-ignored-directories ".ccls-cache")
|
||||
(add-to-list 'projectile-project-root-files-bottom-up ".ccls-root")
|
||||
(add-to-list 'projectile-project-root-files-top-down-recurring "compile_commands.json")))
|
||||
(lsp)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue