gitignore
This commit is contained in:
commit
2faaeeb0d7
2 changed files with 34 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@ recentf
|
||||||
backups/
|
backups/
|
||||||
projectile-bookmarks.eld
|
projectile-bookmarks.eld
|
||||||
tramp/
|
tramp/
|
||||||
|
tramp
|
||||||
|
|
41
init.el
41
init.el
|
@ -20,8 +20,11 @@
|
||||||
(dashboard-setup-startup-hook))
|
(dashboard-setup-startup-hook))
|
||||||
|
|
||||||
;; UI
|
;; UI
|
||||||
(use-package company :ensure t :config (global-company-mode t))
|
(use-package company :ensure t :config (global-company-mode))
|
||||||
(use-package treemacs :ensure t)
|
(use-package flycheck
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(add-hook 'after-init-hook #'global-flycheck-mode))
|
||||||
(use-package all-the-icons
|
(use-package all-the-icons
|
||||||
:ensure t
|
:ensure t
|
||||||
:if (display-graphic-p))
|
:if (display-graphic-p))
|
||||||
|
@ -36,10 +39,27 @@
|
||||||
;; LSP
|
;; LSP
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:ensure t
|
: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
|
(use-package lsp-ui
|
||||||
:ensure t
|
: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
|
(use-package company-quickhelp
|
||||||
:ensure t
|
:ensure t
|
||||||
:after company
|
:after company
|
||||||
|
@ -48,13 +68,17 @@
|
||||||
(use-package magit :ensure t)
|
(use-package magit :ensure t)
|
||||||
|
|
||||||
;; MODES
|
;; MODES
|
||||||
(use-package rust-mode
|
(use-package rustic
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (rust-mode . lsp)
|
:config
|
||||||
:init
|
(setq rustic-format-on-save nil)
|
||||||
(setq rust-mode-treesitter-derive t))
|
:custom
|
||||||
|
(rustic-cargo-use-last-stored-arguments t))
|
||||||
(use-package astro-ts-mode :ensure t)
|
(use-package astro-ts-mode :ensure t)
|
||||||
|
|
||||||
|
(setq major-mode-remap-alist
|
||||||
|
'((python-mode . python-ts-mode)))
|
||||||
|
|
||||||
;; OTHER
|
;; OTHER
|
||||||
(use-package treemacs-projectile
|
(use-package treemacs-projectile
|
||||||
:after (treemacs projectile)
|
:after (treemacs projectile)
|
||||||
|
@ -74,5 +98,6 @@
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(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")
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust"))))
|
(rust "https://github.com/tree-sitter/tree-sitter-rust"))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue