fix emacs

This commit is contained in:
Sakooooo 2024-06-14 17:07:23 +00:00
parent 2c89afb22c
commit 1a3c132187
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 36 additions and 15 deletions

View file

@ -628,7 +628,7 @@ this should be useful later
#+end_src #+end_src
** Eglot (LSP) ** Eglot (LSP)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package eglot (use-package eglot
:bind (:map eglot-mode-map :bind (:map eglot-mode-map
("C-c C-a" . eglot-code-actions) ("C-c C-a" . eglot-code-actions)
("C-c C-r" . eglot-rename)) ("C-c C-r" . eglot-rename))
@ -636,14 +636,18 @@ this should be useful later
(setq eglot-autoshutdown t (setq eglot-autoshutdown t
eglot-confirm-server-initiated-edits nil)) eglot-confirm-server-initiated-edits nil))
;; this'll make it so i don't have to use vscode every now and then ;; this'll make it so i don't have to use vscode every now and then
;; TODO:: WRITE NIX PACKAGE!!!!!!!!!!!!!! ;; (when (eq system-type 'windows-nt)
(unless (eq system-type 'gnu/linux) ;; (use-package eglot-booster
;; :straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
;; :after eglot
;; :config (eglot-booster-mode))
;; )
(when (eq system-type 'gnu/linux)
(use-package eglot-booster (use-package eglot-booster
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster") :ensure nil
:after eglot :config (eglot-booster-mode)))
:config (eglot-booster-mode))
)
#+end_src #+end_src
** Magit ** Magit
#+begin_src emacs-lisp #+begin_src emacs-lisp

View file

@ -22,7 +22,24 @@ with lib; let
# TODO make this check if EXWM is enabled or not # TODO make this check if EXWM is enabled or not
epkgs.exwm epkgs.exwm
# epkgs.sakomodules # epkgs.sakomodules
epkgs.eglot-booster
]; ];
# add eglot-lsp-booster package
override = epkgs: epkgs // {
eglot-booster = epkgs.trivialBuild {
pname = "eglot-booster";
version = "e19dd7ea81bada84c66e8bdd121408d9c0761fe6";
packageRequires = with pkgs; [ emacs-lsp-booster ];
src = pkgs.fetchFromGitHub {
owner = "jdtsmith";
repo = "eglot-booster";
rev = "e19dd7ea81bada84c66e8bdd121408d9c0761fe6";
hash = "sha256-vF34ZoUUj8RENyH9OeKGSPk34G6KXZhEZozQKEcRNhs=";
};
};
};
# override for modules # override for modules
# override = epkgs: epkgs // { # override = epkgs: epkgs // {
# sakomodules = epkgs.trivialBuild { # sakomodules = epkgs.trivialBuild {