File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 38
38
:ensure nil
39
39
:bind (:map c-mode-base-map
40
40
(" C-c c" . compile))
41
- :hook (c-mode-common . (lambda () (c-set-style " bsd " )))
41
+ :hook (c-mode-common . (lambda () (c-set-style " stroustrup " )))
42
42
:init (setq-default c-basic-offset 4 )
43
43
:config
44
44
(use-package modern-cpp-font-lock
Original file line number Diff line number Diff line change 40
40
:bind ((" M-/" . company-complete)
41
41
(" C-M-i" . company-complete)
42
42
:map company-active-map
43
- ; ; ("C-p" . company-select-previous)
44
- ; ; ("C-n" . company-select-next)
43
+ (" C-p" . company-select-previous)
44
+ (" C-n" . company-select-next)
45
45
(" <tab>" . company-complete-common-or-cycle)
46
46
(" <backtab>" . my-company-yasnippet)
47
47
:map company-search-map
Original file line number Diff line number Diff line change 66
66
(" C-c h" . counsel-command-history)
67
67
(" C-c i" . counsel-git)
68
68
(" C-c j" . counsel-git-grep)
69
- (" C-c l" . counsel-locate)
70
69
(" C-c o" . counsel-outline)
71
70
(" C-c r" . counsel-rg)
72
71
(" C-c z" . counsel-fzf)
Original file line number Diff line number Diff line change 51
51
(lsp-enable-which-key-integration)
52
52
53
53
; ; Format and organize imports
54
- (add-hook 'before-save-hook #'lsp-format-buffer t t )
55
- (add-hook 'before-save-hook #'lsp-organize-imports t t ))))
54
+ (unless (derived-mode-p 'c-mode 'c++-mode )
55
+ (add-hook 'before-save-hook #'lsp-format-buffer t t )
56
+ (add-hook 'before-save-hook #'lsp-organize-imports t t )))))
56
57
:bind (:map lsp-mode-map
57
58
(" C-c C-d" . lsp-describe-thing-at-point)
58
59
([remap xref-find-definitions] . lsp-find-definition)
62
63
(setq read-process-output-max (* 1024 1024 )) ; ; 1MB
63
64
64
65
(setq lsp-auto-guess-root t ; Detect project root
65
- lsp-keep-workspace-alive nil ) ; Auto-kill LSP server
66
+ lsp-keep-workspace-alive nil ; Auto-kill LSP server
67
+ lsp-enable-indentation nil
68
+ lsp-enable-on-type-formatting nil
69
+ lsp-keymap-prefix " C-c l" )
66
70
67
71
; ; For `lsp-clients'
68
72
(setq lsp-clients-python-library-directories '(" /usr/local/" " /usr/" ))
You can’t perform that action at this time.
0 commit comments