Compare commits
No commits in common. "cea7e3ace6dbfaf003252166d02a7ddaba07a5e3" and "5a889964e77c028ae8584d8349a30077bf5284db" have entirely different histories.
cea7e3ace6
...
5a889964e7
@ -24,12 +24,6 @@
|
||||
(setq citre-auto-enable-citre-mode-modes '(prog-mode))
|
||||
:config
|
||||
(with-no-warnings
|
||||
(setq citre-readtags-program "/usr/bin/readtags"
|
||||
citre-ctags-program "/usr/bin/ctags"
|
||||
citre-default-create-tags-file-location 'global-cache
|
||||
citre-use-project-root-when-creating-tags t
|
||||
citre-prompt-language-for-ctags-command t)
|
||||
|
||||
(with-eval-after-load 'projectile
|
||||
(setq citre-project-root-function #'projectile-project-root))
|
||||
|
||||
@ -47,8 +41,13 @@
|
||||
|
||||
(defun lsp-citre-capf-function ()
|
||||
"A capf backend that tries lsp first, then Citre."
|
||||
(let ((lsp-result (if (bound-and-true-p lsp-mode)
|
||||
(lsp-completion-at-point))))
|
||||
(let ((lsp-result (pcase centaur-lsp
|
||||
('lsp-mode
|
||||
(and (fboundp #'lsp-completion-at-point)
|
||||
(lsp-completion-at-point)))
|
||||
('eglot
|
||||
(and (fboundp #'eglot-completion-at-point)
|
||||
(eglot-completion-at-point))))))
|
||||
(if (and lsp-result
|
||||
(try-completion
|
||||
(buffer-substring (nth 0 lsp-result)
|
||||
@ -61,8 +60,7 @@
|
||||
"Enable the lsp + Citre capf backend in current buffer."
|
||||
(add-hook 'completion-at-point-functions #'lsp-citre-capf-function nil t))
|
||||
|
||||
(add-hook 'citre-mode-hook #'enable-lsp-citre-capf-backend)
|
||||
))
|
||||
(add-hook 'citre-mode-hook #'enable-lsp-citre-capf-backend)))
|
||||
|
||||
(provide 'base-ctags)
|
||||
;;; base-ctags.el ends here
|
||||
|
@ -177,21 +177,6 @@
|
||||
file)))
|
||||
)
|
||||
|
||||
;; Polymode
|
||||
(use-package polymode
|
||||
:defer t
|
||||
:straight t)
|
||||
|
||||
;; Polymode para markdown
|
||||
(use-package poly-markdown
|
||||
:defer t
|
||||
:straight t)
|
||||
|
||||
;; Polymode para org-Mode
|
||||
(use-package poly-org
|
||||
:defer t
|
||||
:straight t)
|
||||
|
||||
;; Paquete para manejo de proyectos
|
||||
(use-package projectile
|
||||
:defer t
|
||||
|
@ -20,9 +20,10 @@
|
||||
lsp-format-buffer
|
||||
lsp-organize-imports
|
||||
lsp-install-server)
|
||||
:hook ((markdown-mode . lsp-deferred)
|
||||
(js-mode . lsp-deferred)
|
||||
(php-mode . lsp-deferred)
|
||||
:hook ((prog-mode . (lambda ()
|
||||
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
|
||||
(lsp-deferred))))
|
||||
(markdown-mode . lsp-deferred)
|
||||
(lsp-mode . lsp-enable-which-key-integration))
|
||||
:custom
|
||||
(lsp-headerline-breadcrumb-enable nil)
|
||||
|
Loading…
Reference in New Issue
Block a user