IDFK what I am doing anymore

This commit is contained in:
cake 2025-04-28 20:52:16 +02:00
parent a2aac5a2f0
commit c11e91574b
2 changed files with 29 additions and 37 deletions

View file

@ -5,7 +5,12 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(delete-selection-mode nil) '(delete-selection-mode nil)
'(package-selected-packages nil) '(package-selected-packages
'(all-the-icons astro-ts-mode company-quickhelp dashboard
doom-modeline doom-themes evil-collection
fennel-mode flycheck lsp-pyright lsp-ui magit
rustic sideline slime treemacs-evil
treemacs-projectile))
'(warning-suppress-log-types '((lsp-mode) (lsp-mode))) '(warning-suppress-log-types '((lsp-mode) (lsp-mode)))
'(warning-suppress-types '((lsp-mode)))) '(warning-suppress-types '((lsp-mode))))
(custom-set-faces (custom-set-faces

57
init.el
View file

@ -1,8 +1,12 @@
(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file) (load custom-file)
(require 'package) (use-package package
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) :ensure nil
:config (package-initialize)
:custom (package--native-compile-async t)
(package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/"))))
;; THEMES ;; THEMES
(use-package doom-themes :ensure t :config (load-theme 'doom-dracula t)) (use-package doom-themes :ensure t :config (load-theme 'doom-dracula t))
@ -21,6 +25,11 @@
;; UI ;; UI
(use-package company :ensure t :config (global-company-mode)) (use-package company :ensure t :config (global-company-mode))
(use-package company-quickhelp
:ensure t
:after company
:hook (company-mode . company-quickhelp-mode)
:config)
(use-package flycheck (use-package flycheck
:ensure t :ensure t
:config :config
@ -28,6 +37,7 @@
(use-package all-the-icons (use-package all-the-icons
:ensure t :ensure t
:if (display-graphic-p)) :if (display-graphic-p))
(use-package magit :ensure t)
;; EVIL ;; EVIL
(use-package evil :ensure t :init (setq evil-want-keybinding nil) :config (evil-mode t)) (use-package evil :ensure t :init (setq evil-want-keybinding nil) :config (evil-mode t))
@ -36,48 +46,20 @@
:after (treemacs evil) :after (treemacs evil)
:ensure t) :ensure t)
;; LSP ;; EGLOT
(use-package lsp-mode (use-package eglot :ensure t)
:ensure t
:config
(lsp-mode t)
(setq lsp-headerline-breadcrumb-enable nil))
(use-package lsp-ui
:ensure t
:after lsp-mode
:config
(setq lsp-ui-doc-enable nil)
(setq lsp-ui-doc-show-with-mouse nil)
(setq lsp-ui-doc-show-with-cursor t)
(setq lsp-ui-doc-position 'bottom)
(setq lsp-ui-doc-alignment 'frame))
(use-package lsp-pyright
:ensure t
:custom (lsp-pyright-langserver-command "pyright") ;; or basedpyright
:hook (python-ts-mode . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
(use-package company-quickhelp
:ensure t
:after company
:hook (company-mode . company-quickhelp-mode)
:config)
(use-package magit :ensure t)
;; MODES ;; MODES
(use-package rustic (use-package rustic
:ensure t :ensure t
:config :config
(setq rustic-format-on-save nil) (setq rustic-format-on-save nil)
(setq rustic-lsp-client 'eglot)
:custom :custom
(rustic-cargo-use-last-stored-arguments t)) (rustic-cargo-use-last-stored-arguments t))
(use-package astro-ts-mode :ensure t) (use-package astro-ts-mode :ensure t)
(use-package fennel-mode :ensure t) (use-package fennel-mode :ensure t)
(setq major-mode-remap-alist (use-package slime :ensure t)
'((python-mode . python-ts-mode)))
;; OTHER ;; OTHER
(use-package treemacs-projectile (use-package treemacs-projectile
@ -99,5 +81,10 @@
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src") (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src") (typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
(python "https://github.com/tree-sitter/tree-sitter-python") (python "https://github.com/tree-sitter/tree-sitter-python")
(rust "https://github.com/tree-sitter/tree-sitter-rust")))) (rust "https://github.com/tree-sitter/tree-sitter-rust")))
(setq inferior-lisp-program "sbcl")
(setq major-mode-remap-alist
'((python-mode . python-ts-mode))))
;;; init.el ends here