fzf and winmove
This commit is contained in:
parent
12e17b0861
commit
5f3a432db7
1 changed files with 29 additions and 16 deletions
45
init.el
45
init.el
|
|
@ -1,7 +1,7 @@
|
||||||
(setq custom-file "./custom")
|
(setq custom-file "./custom")
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
(global-display-line-numbers-mode 1)
|
(global-display-line-numbers-mode 1)
|
||||||
(tool-bar-mode 0)
|
;;(tool-bar-mode 0)
|
||||||
(menu-bar-mode 0)
|
(menu-bar-mode 0)
|
||||||
(column-number-mode 1)
|
(column-number-mode 1)
|
||||||
(setq select-enable-clipboard t)
|
(setq select-enable-clipboard t)
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
auto-save-default nil)
|
auto-save-default nil)
|
||||||
|
|
||||||
;; keys
|
;; keys
|
||||||
(global-set-key (kbd "C-x C-c") 'comment-line)
|
(global-set-key (kbd "C-x c") 'comment-line)
|
||||||
|
|
||||||
;; packages
|
;; packages
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
@ -28,29 +28,42 @@
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
|
|
||||||
(setq evil-want-C-u-scroll t
|
(use-package fzf
|
||||||
evil-want-keybinding nil
|
:bind
|
||||||
evil-want-integration t
|
;; Don't forget to set keybinds!
|
||||||
evil-undo-system 'undo-tree)
|
:config
|
||||||
|
(setq fzf/args "-x --color bw --print-query --margin=1,0 --no-hscroll"
|
||||||
|
fzf/executable "fzf"
|
||||||
|
fzf/git-grep-args "-i --line-number %s"
|
||||||
|
;; command used for `fzf-grep-*` functions
|
||||||
|
;; example usage for ripgrep:
|
||||||
|
fzf/grep-command "rg --no-heading -nH"
|
||||||
|
;; fzf/grep-command "grep -nrH"
|
||||||
|
;; If nil, the fzf buffer will appear at the top of the window
|
||||||
|
fzf/position-bottom t
|
||||||
|
fzf/window-height 15))
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-x p f") 'fzf-git-files)
|
||||||
|
|
||||||
|
(use-package tree-sitter-langs
|
||||||
|
:config
|
||||||
|
(global-undo-tree-mode))
|
||||||
|
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
:config
|
:config
|
||||||
(global-undo-tree-mode))
|
(global-undo-tree-mode))
|
||||||
|
|
||||||
(use-package evil
|
;; window-management
|
||||||
:config
|
|
||||||
(evil-mode 1))
|
|
||||||
|
|
||||||
(use-package evil-collection
|
|
||||||
;; :after evil
|
|
||||||
:config
|
|
||||||
(evil-collection-init))
|
|
||||||
|
|
||||||
(use-package zoom-window
|
(use-package zoom-window
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq zoom-window-mode-line-color "DarkGreen")
|
(setq zoom-window-mode-line-color "DarkGreen")
|
||||||
:bind ("C-x C-z" . zoom-window-zoom))
|
:bind ("C-x w z" . zoom-window-zoom))
|
||||||
|
;; keys
|
||||||
|
(global-set-key (kbd "C-x w l") 'windmove-right)
|
||||||
|
(global-set-key (kbd "C-x w h") 'windmove-left)
|
||||||
|
(global-set-key (kbd "C-x w j") 'windmove-down)
|
||||||
|
(global-set-key (kbd "C-x w k") 'windmove-up)
|
||||||
|
|
||||||
(use-package doom-themes
|
(use-package doom-themes
|
||||||
:config
|
:config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue