diff options
author | Franck Cuny <franck@fcuny.net> | 2024-04-19 15:34:20 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-04-19 15:34:20 -0700 |
commit | 682fa2f2e084df8665800ba95e34a2cee289ea38 (patch) | |
tree | 0e620188b2005bdb75a46592555b971b5ead8491 | |
parent | cleanup snippet (diff) | |
download | emacs.d-682fa2f2e084df8665800ba95e34a2cee289ea38.tar.gz |
remove all customization's
Since I don't fully understand them, let's not do anything, we can change them as I figure out things better. Change-Id: I109a3d47d9dc67b7fd2dca72fd2c460d00138bbd
-rw-r--r-- | config/init-completion.el | 13 | ||||
-rw-r--r-- | config/init-lsp.el | 7 |
2 files changed, 5 insertions, 15 deletions
diff --git a/config/init-completion.el b/config/init-completion.el index e5ec83b..fc65e3d 100644 --- a/config/init-completion.el +++ b/config/init-completion.el @@ -24,24 +24,13 @@ :ensure t :custom (corfu-auto t) - (corfu-auto-prefix 2) - (corfu-preview-current nil) - (corfu-auto-delay 0.2) - (corfu-popupinfo-delay '(0.4 . 0.2)) - :config - (setq tab-always-indent 'complete) - :custom-face - (corfu-border ((t (:inherit region :background unspecified)))) :bind ("M-/" . completion-at-point) :hook ((after-init . global-corfu-mode) (global-corfu-mode . corfu-popupinfo-mode))) (use-package cape :demand t - :ensure t - :init - (add-to-list 'completion-at-point-functions #'cape-file) - (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)) + :ensure t) (use-package marginalia :hook (after-init . marginalia-mode)) diff --git a/config/init-lsp.el b/config/init-lsp.el index bad227d..9ad6f40 100644 --- a/config/init-lsp.el +++ b/config/init-lsp.el @@ -8,19 +8,20 @@ ;;; Code: (use-package eglot - :ensure t :after yasnippet :bind (:map eglot-mode-map ("C-c l a" . eglot-code-actions) - ("C-c l r" . eglot-rename)) + ("C-c l r" . eglot-rename) + ("C-c l f" . eglot-format)) :config + (setq eglot-autoshutdown t) (setq-default eglot-workspace-configuration '((gopls (usePlaceholders . t) (staticcheck . t) (completeUnimported . t)))) - ;; uses https://github.com/oxalica/nil for the LSP server instead of rnix + ;; uses https://github.com/nix-community/nixd for the LSP server instead of rnix (add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))) (provide 'init-lsp) |