Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emacs.d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Liu Miao
emacs.d
Commits
593a4146
Commit
593a4146
authored
2 years ago
by
Liu Miao
Browse files
Options
Downloads
Patches
Plain Diff
remove company supports
parent
0b76fa8e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lisp/completion.el
+1
-1
1 addition, 1 deletion
lisp/completion.el
lisp/programming.el
+4
-25
4 additions, 25 deletions
lisp/programming.el
with
5 additions
and
26 deletions
lisp/completion.el
+
1
−
1
View file @
593a4146
...
...
@@ -73,7 +73,7 @@
(
use-package
consult
:ensure
t
:defer
t
:after
(
projectile
vertico
)
:after
(
vertico
)
:bind
((
[remap
apropos]
.
consult-apropos
)
(
[remap
bookmark-jump]
.
consult-bookmark
)
(
[remap
evil-show-marks]
.
consult-mark
)
...
...
This diff is collapsed.
Click to expand it.
lisp/programming.el
+
4
−
25
View file @
593a4146
...
...
@@ -15,28 +15,11 @@
:init
(
setq
lsp-keymap-prefix
"C-c l"
)
:commands
(
lsp
lsp-deferred
)
:hook
((
c-mode
c++-mode
python-mode
)
.
lsp-deferred
)
:hook
((
c-mode
c++-mode
python-mode
rust-mode
)
.
lsp-deferred
)
:config
(
setq
lsp-enable-snippet
nil
lsp-modeline-diagnostics-enable
nil
lsp-prefer-capf
t
(
setq
lsp-modeline-diagnostics-enable
nil
lsp-keep-workspace-alive
nil
)
(
add-hook
'lsp-completion-mode-hook
(
defun
lsp-init-company-backends-h
()
(
when
lsp-completion-mode
(
set
(
make-local-variable
'company-backends
)
(
cons
lsp-company-backends
(
remove
lsp-company-backends
(
remq
'company-capf
company-backends
)))))))
;; Tramp
(
lsp-register-client
(
make-lsp-client
:new-connection
(
lsp-tramp-connection
"clangd"
)
:major-modes
'
(
c-mode
c++-mode
)
:remote?
t
:server-id
'clangd-remote
))
:commands
(
lsp-install-server
))
(
use-package
lsp-ui
...
...
@@ -81,11 +64,7 @@
(
add-hook
'prog-mode-hook
#'
yas-minor-mode
)
(
add-hook
'org-mode-hook
#'
yas-minor-mode
)
:config
(
add-hook
'prog-mode-hook
'yas-reload-all
)
(
with-eval-after-load
'company
(
add-to-list
'company-backends
'company-yasnippet
))
:diminish
yas-minor-mode
)
(
add-hook
'prog-mode-hook
'yas-reload-all
))
(
use-package
yasnippet-snippets
:ensure
t
)
...
...
@@ -104,7 +83,7 @@
:defer
t
:config
(
setq
c-basic-offset
tab-width
c-backspace-functon
#'
delete-backward-char
))
c-backspace-funct
i
on
#'
delete-backward-char
))
(
use-package
clang-format
:ensure
t
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment