force lsp on c++ major mode
This commit is contained in:
parent
5159d37cf6
commit
5cd3bde92c
|
@ -57,6 +57,11 @@ https://github.com/ninja-build/ninja/blob/master/misc/ninja-mode.el"
|
|||
(lsp)
|
||||
(require 'company-capf)
|
||||
(require 'company-box)
|
||||
|
||||
(add-hook 'before-save-hook
|
||||
(lambda ()
|
||||
(when (and lsp-mode (eq major-mode 'c++-mode))
|
||||
(lsp-format-buffer))))
|
||||
(setq company-backends
|
||||
'((company-capf
|
||||
company-keywords))))))
|
||||
|
|
Loading…
Reference in New Issue