This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package lsp-mode | |
:ensure t | |
:config | |
(setq lsp-log-io nil) ; only enable for debugging | |
(add-hook 'go-mode-hook #'lsp-deferred) | |
) | |
(use-package lsp-ui | |
:ensure t) | |
(use-package company | |
:ensure t | |
:config | |
(setq company-idle-delay 0) | |
(setq company-minimum-prefix-length 1)) |
company-frontends
& company-backends
in the buffer in question and found that auto-complete-mode
was enabled which was the contributor to the lower completion buffer which I wanted to get rid off. I also remembered disabling global-auto-complete-mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package auto-complete | |
:ensure t | |
:init | |
(ac-config-default) | |
; (global-auto-complete-mode t) | |
) |
ac-config-default
showed the culprit (all the way below in line #10).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;###autoload | |
(defun ac-config-default () | |
"No documentation." | |
(setq-default ac-sources '(ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers)) | |
(add-hook 'emacs-lisp-mode-hook 'ac-emacs-lisp-mode-setup) | |
(add-hook 'c-mode-common-hook 'ac-cc-mode-setup) | |
(add-hook 'ruby-mode-hook 'ac-ruby-mode-setup) | |
(add-hook 'css-mode-hook 'ac-css-mode-setup) | |
(add-hook 'auto-complete-mode-hook 'ac-common-setup) | |
(global-auto-complete-mode t)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun fc/lsp-deferred () | |
"When enabling lsp-mode disable auto-complete" | |
(auto-complete-mode -1) | |
(lsp-deferred)) | |
(use-package lsp-mode | |
:ensure t | |
:config | |
(setq lsp-log-io nil) ; only enable for debugging | |
(add-hook 'go-mode-hook #'fc/lsp-deferred) | |
) |
No comments:
Post a Comment