Fix workspace switch-buffer keybinds

This commit is contained in:
Henrik Lissner 2018-06-30 17:41:20 +02:00
parent 5e9f74c269
commit 2e0d6a7c3d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -469,12 +469,6 @@
;; <leader>
;;
(if (featurep! :feature workspaces)
(map! :leader :desc "Switch buffer" :n "," #'switch-to-buffer)
(map! :leader :desc "Switch workspace buffer"
:n "," #'persp-switch-to-buffer
:n "<" #'switch-to-buffer))
(map! :leader
:desc "Ex command" :nv ";" #'evil-ex
:desc "M-x" :nv ":" #'execute-extended-command
@ -489,6 +483,12 @@
:desc "Blink cursor line" :n "DEL" #'+nav-flash/blink-cursor
:desc "Jump to bookmark" :n "RET" #'bookmark-jump
(:when (featurep! :feature workspaces)
:desc "Switch workspace buffer" :n "," #'persp-switch-to-buffer
:desc "Switch buffer" :n "<" #'switch-to-buffer)
(:unless (featurep! :feature workspaces)
:desc "Switch buffer" :n "," #'switch-to-buffer)
;; C-u is used by evil
:desc "Universal argument" :n "u" #'universal-argument
:desc "window" :n "w" evil-window-map