From 9e0da2b4bf3e07ae50f631f55919ea01794437f3 Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Mon, 28 Feb 2022 23:48:09 -0500 Subject: [PATCH] Feburary 2022 update --- doom-emacs/.doom.d/config.el | 31 +++++++++++++++++++++++++++++-- doom-emacs/.doom.d/init.el | 2 +- doom-emacs/.doom.d/packages.el | 3 +++ lvim/.config/lvim/config.lua | 19 +++++++------------ sway/.config/sway/config | 3 ++- 5 files changed, 42 insertions(+), 16 deletions(-) diff --git a/doom-emacs/.doom.d/config.el b/doom-emacs/.doom.d/config.el index a19f205..4fe259d 100644 --- a/doom-emacs/.doom.d/config.el +++ b/doom-emacs/.doom.d/config.el @@ -54,6 +54,12 @@ (setq display-line-numbers-type 'relative) +(add-hook 'spell-fu-mode-hook + (lambda () + (spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en")) + (spell-fu-dictionary-add + (spell-fu-get-personal-dictionary "en-personal" "/home/minhradz/.aspell.en.pws")))) + ;; Clangd lsp for C/C++ dev (setq lsp-clients-clangd-args '("-j=3" "--background-index" @@ -103,6 +109,12 @@ (setq company-idle-delay 1) (add-hook 'evil-normal-state-entry-hook #'company-abort)) ;; make aborting less annoying. +(use-package all-the-icons-ivy-rich + :init (all-the-icons-ivy-rich-mode 1)) + +(use-package ivy-rich + :init (ivy-rich-mode 1)) + (setq-default history-length 1000) (setq-default prescient-history-length 1000) @@ -147,7 +159,7 @@ '(("d" "default" entry "* %?" :target (file+head "%<%Y-%m-%d>.org" - "#+title: %<%Y-%m-%d>\n")))) + "#+title: %<%Y-%m-%d>\n* What I did today\n* What was on my mind")))) (defun org-roam-rg-search () "Search org-roam directory using consult-ripgrep. With live-preview." @@ -173,7 +185,7 @@ (setq avy-all-windows 't) -;; Disables lsp-signature-auto-activate globally +;; Disables lsp-signature-auto-activate ;; Looking at you, rustic mode (after! lsp-mode (setq lsp-signature-auto-activate nil)) @@ -192,3 +204,18 @@ :desc "Clear search highlight" "s c" #'evil-ex-nohighlight) + +;; We do a little bit of finger pointing +(use-package blamer + :bind (("s-i" . blamer-show-commit-info)) + :defer 20 + :custom + (blamer-idle-time 0.3) + (blamer-min-offset 40) + :custom-face + (blamer-face ((t :foreground "#7a88cf" + :background nil + :height 110 + :italic t))) + :config + (global-blamer-mode 1)) diff --git a/doom-emacs/.doom.d/init.el b/doom-emacs/.doom.d/init.el index 6f94dd6..2f7babb 100644 --- a/doom-emacs/.doom.d/init.el +++ b/doom-emacs/.doom.d/init.el @@ -78,7 +78,7 @@ :checkers syntax ; tasing you for every semicolon you forget - (spell +flyspell) ; tasing you for misspelling mispelling + (spell +everywhere +aspell); tasing you for misspelling mispelling ;;grammar ; tasing grammar mistake every you make :tools diff --git a/doom-emacs/.doom.d/packages.el b/doom-emacs/.doom.d/packages.el index add8933..a282400 100644 --- a/doom-emacs/.doom.d/packages.el +++ b/doom-emacs/.doom.d/packages.el @@ -55,3 +55,6 @@ (package! websocket) (package! org-roam-ui :recipe (:host github :repo "org-roam/org-roam-ui" :files ("*.el" "out"))) (package! magit-delta) +(package! blamer :recipe (:host github :repo "artawower/blamer.el")) +(package! all-the-icons-ivy-rich) +(package! ivy-rich) diff --git a/lvim/.config/lvim/config.lua b/lvim/.config/lvim/config.lua index f1ea6d1..d6d0d54 100644 --- a/lvim/.config/lvim/config.lua +++ b/lvim/.config/lvim/config.lua @@ -1,17 +1,7 @@ -- general lvim.format_on_save = true lvim.lint_on_save = true - -vim.g.nord_contrast = true -vim.g.nord_borders = true -vim.g.nord_disable_background = false -vim.g.nord_italic = true -vim.termguicolors = true - -lvim.colorscheme = "nord" lvim.shell = "/bin/fish" - --- keymappings [view all the defaults by pressing Lk] lvim.leader = "space" lvim.builtin.dashboard.active = true lvim.builtin.terminal.active = true @@ -19,12 +9,17 @@ lvim.builtin.autopairs.active = true lvim.builtin.gitsigns.active = true lvim.builtin.dap.active = true vim.opt.relativenumber = true - lvim.builtin.nvimtree.side = "left" lvim.builtin.nvimtree.show_icons.git = 1 lvim.builtin.terminal.shell = "/bin/fish" --- if you don't want all the parsers change this to a table of the ones you want +vim.g.nord_contrast = true +vim.g.nord_borders = true +vim.g.nord_disable_background = false +vim.g.nord_italic = true +vim.termguicolors = true +lvim.colorscheme = "nord" + lvim.builtin.treesitter.ensure_installed = {} lvim.builtin.treesitter.ignore_install = { "" } lvim.builtin.treesitter.highlight.enabled = true diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 20f872a..0e9be77 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -81,9 +81,10 @@ exec swayidle -w \ for_window [title="Firefox — Sharing Indicator"] floating enable for_window [title="Firefox — Sharing Indicator"] nofocus for_window [app_id="mpv"] inhibit_idle visible; border none; max_render_time off +for_window [app_id="soffice.bin"] inhibit_idle visible; border none; max_render_time off for_window [class="firefox"] inhibit_idle fullscreen; max_render_time off for_window [app_id="firefox"] inhibit_idle fullscreen; max_render_time off - +for_window [app_id="jellyfinmediaplayer"] inhibit_idle fullscreen; max_render_time off # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep.