gitignore

This commit is contained in:
cake 2025-04-01 20:30:22 +02:00
commit 2faaeeb0d7
2 changed files with 34 additions and 8 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ recentf
backups/
projectile-bookmarks.eld
tramp/
tramp

41
init.el
View file

@ -20,8 +20,11 @@
(dashboard-setup-startup-hook))
;; UI
(use-package company :ensure t :config (global-company-mode t))
(use-package treemacs :ensure t)
(use-package company :ensure t :config (global-company-mode))
(use-package flycheck
:ensure t
:config
(add-hook 'after-init-hook #'global-flycheck-mode))
(use-package all-the-icons
:ensure t
:if (display-graphic-p))
@ -36,10 +39,27 @@
;; LSP
(use-package lsp-mode
:ensure t
:config (lsp-mode t)(setq lsp-headerline-breadcrumb-enable nil))
:config
(lsp-mode t)
(setq lsp-headerline-breadcrumb-enable nil))
(use-package lsp-ui
:ensure t
:after lsp-mode)
: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
@ -48,13 +68,17 @@
(use-package magit :ensure t)
;; MODES
(use-package rust-mode
(use-package rustic
:ensure t
:hook (rust-mode . lsp)
:init
(setq rust-mode-treesitter-derive t))
:config
(setq rustic-format-on-save nil)
:custom
(rustic-cargo-use-last-stored-arguments t))
(use-package astro-ts-mode :ensure t)
(setq major-mode-remap-alist
'((python-mode . python-ts-mode)))
;; OTHER
(use-package treemacs-projectile
:after (treemacs projectile)
@ -74,5 +98,6 @@
(css "https://github.com/tree-sitter/tree-sitter-css")
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
(python "https://github.com/tree-sitter/tree-sitter-python")
(rust "https://github.com/tree-sitter/tree-sitter-rust"))))