This commit is contained in:
Mars 2024-10-05 23:08:56 -04:00
parent 4dc26ebef7
commit 5c39aa2bfa
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5

View file

@ -119,6 +119,25 @@
(doom-modeline-mode)) (doom-modeline-mode))
#+end_src #+end_src
** VTerm
#+begin_src emacs-lisp
(use-package vterm
:ensure t
:config
(setq vterm-timer-delay 0.01))
(use-package shackle
:ensure t
:config
(setq shackle-rules
'(("\\*vterm\\*" :regexp t :popup t :align 'below :size 0.4 :select t)))
(shackle-mode 1))
(use-package vterm-toggle
:ensure t)
#+end_src
** Nix ** Nix
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -197,7 +216,9 @@
:ensure t :ensure t
:config :config
(general-define-key (general-define-key
:states '(normal visual emacs))) :states '(normal visual emacs)
:keymaps 'override
"C-t" '(vterm-toggle :wk "Toggle VTerm")))
(use-package evil-collection (use-package evil-collection
:ensure t :ensure t
@ -238,12 +259,6 @@
(use-package lsp-bridge (use-package lsp-bridge
:ensure '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge" :files (:defaults "*")) :ensure '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge" :files (:defaults "*"))
:init :init
(defun my/lsp-bridge-find-def ()
(interactive)
(let ((prev-marker (point-marker)))
(lsp-bridge-find-def)
(xref-push-marker-stack prev-marker)))
(defun lsp-bridge-mode-hook-func () (defun lsp-bridge-mode-hook-func ()
(with-eval-after-load 'corfu (corfu-mode -1)) (with-eval-after-load 'corfu (corfu-mode -1))
@ -260,7 +275,8 @@
(evil-define-key 'normal 'local (kbd "gr") #'lsp-bridge-find-references) (evil-define-key 'normal 'local (kbd "gr") #'lsp-bridge-find-references)
(evil-define-key 'normal 'local (kbd "K") #'lsp-bridge-popup-documentation)) (evil-define-key 'normal 'local (kbd "K") #'lsp-bridge-popup-documentation))
(setq lsp-bridge-enable-log nil (setq lsp-bridge-enable-log t
lsp-bridge-nix-lsp-server "nil"
acm-enable-icon t acm-enable-icon t
acm-enable-doc t acm-enable-doc t
acm-enable-tabnine nil acm-enable-tabnine nil
@ -270,8 +286,7 @@
(evil-set-initial-state 'lsp-bridge-ref-mode 'insert) (evil-set-initial-state 'lsp-bridge-ref-mode 'insert)
(add-hook 'lsp-bridge-mode-hook #'lsp-bridge-mode-hook-func) (add-hook 'lsp-bridge-mode-hook #'lsp-bridge-mode-hook-func)
;; Enable lsp-bridge. (add-hook 'prog-mode-hook #'lsp-bridge-mode))
(add-hook 'c++-mode-hook #'lsp-bridge-mode))
#+end_src #+end_src
*** TreeSitter *** TreeSitter