Compare commits
4 commits
6b49d38307
...
fc0655dc04
Author | SHA1 | Date | |
---|---|---|---|
outfoxxed | fc0655dc04 | ||
outfoxxed | 3b55af550b | ||
outfoxxed | e5fd4455d8 | ||
outfoxxed | f68b4904a8 |
21
init.el
21
init.el
|
@ -112,6 +112,7 @@
|
||||||
:config
|
:config
|
||||||
(evil-collection-init '(magit ibuffer)))
|
(evil-collection-init '(magit ibuffer)))
|
||||||
|
|
||||||
|
(use-package crux)
|
||||||
|
|
||||||
;; Avy (jump to char)
|
;; Avy (jump to char)
|
||||||
(use-package avy
|
(use-package avy
|
||||||
|
@ -322,6 +323,13 @@
|
||||||
:mode "\\.nix\\'"
|
:mode "\\.nix\\'"
|
||||||
:hook (nix-mode . disable-tabs))
|
:hook (nix-mode . disable-tabs))
|
||||||
|
|
||||||
|
;; QML Support
|
||||||
|
(setq qml-ts-mode-indent-offset 2)
|
||||||
|
(use-package qml-ts-mode
|
||||||
|
:config
|
||||||
|
(add-hook 'qml-ts-mode-hook
|
||||||
|
(lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,)))))
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode))
|
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
|
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-ts-mode))
|
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-ts-mode))
|
||||||
|
@ -331,9 +339,15 @@
|
||||||
(add-hook 'c++-ts-mode-hook #'lsp-deferred)
|
(add-hook 'c++-ts-mode-hook #'lsp-deferred)
|
||||||
(add-hook 'typescript-ts-mode-hook #'lsp-deferred)
|
(add-hook 'typescript-ts-mode-hook #'lsp-deferred)
|
||||||
|
|
||||||
|
;; Fix indent
|
||||||
|
(add-hook 'rust-ts-mode-hook
|
||||||
|
(lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,))))
|
||||||
|
|
||||||
(setq gc-cons-threshold (* 1024 1024 100)
|
(setq gc-cons-threshold (* 1024 1024 100)
|
||||||
read-process-output-max (* 1024 1024))
|
read-process-output-max (* 1024 1024))
|
||||||
|
|
||||||
|
;; Misc keybinds
|
||||||
|
|
||||||
;; hy3 retardation
|
;; hy3 retardation
|
||||||
(use-package frames-only-mode
|
(use-package frames-only-mode
|
||||||
:config
|
:config
|
||||||
|
@ -351,7 +365,12 @@
|
||||||
(hyprctl "hy3:makegroup" "h, ephemeral")
|
(hyprctl "hy3:makegroup" "h, ephemeral")
|
||||||
(make-frame-command)))
|
(make-frame-command)))
|
||||||
|
|
||||||
(define-key evil-normal-state-map (kbd "C-w a") #'make-frame-command)
|
(define-key evil-normal-state-map (kbd "C-w a")
|
||||||
|
(lambda () (interactive)
|
||||||
|
(hyprctl "hy3:makegroup" "tab, ephemeral")
|
||||||
|
(make-frame-command)))
|
||||||
|
|
||||||
|
(define-key evil-normal-state-map (kbd "C-w r") #'make-frame-command)
|
||||||
|
|
||||||
(advice-add #'evil-window-left :override
|
(advice-add #'evil-window-left :override
|
||||||
(lambda (&optional count file) (hyprctl "hy3:movefocus" "l")))
|
(lambda (&optional count file) (hyprctl "hy3:movefocus" "l")))
|
||||||
|
|
Loading…
Reference in a new issue