Compare commits

..

4 commits

21
init.el
View file

@ -112,6 +112,7 @@
:config
(evil-collection-init '(magit ibuffer)))
(use-package crux)
;; Avy (jump to char)
(use-package avy
@ -322,6 +323,13 @@
:mode "\\.nix\\'"
: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 '("\\.ts\\'" . 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 '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)
read-process-output-max (* 1024 1024))
;; Misc keybinds
;; hy3 retardation
(use-package frames-only-mode
:config
@ -351,7 +365,12 @@
(hyprctl "hy3:makegroup" "h, ephemeral")
(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
(lambda (&optional count file) (hyprctl "hy3:movefocus" "l")))