Browse Source

Improvements and fixes

master
Juan Placencia 4 years ago
parent
commit
b734af6b17
3 changed files with 22 additions and 17 deletions
  1. +6
    -0
      uno/bootstrap.org
  2. +4
    -2
      uno/modules/dev/lsp.org
  3. +12
    -15
      uno/modules/key/vim.org

+ 6
- 0
uno/bootstrap.org View File

@ -60,6 +60,12 @@ Run bootstrap code for =straight= and have =use-package= ready.
Set up general and leader key binds that are used throughout.
#+BEGIN_SRC emacs-lisp
(use-package evil
:custom
(evil-want-keybinding nil)
:init
(general-evil-setup))
(use-package general
:init
(defvar uno-leader-key "SPC"

+ 4
- 2
uno/modules/dev/lsp.org View File

@ -26,11 +26,13 @@ Define LSP dev package.
(uno-mode-leader-define
:keymaps 'lsp-mode-map
"h" '(:ignore t :which-key "Help")
"ha" '(lsp-execute-code-action :which-key "Execute action")
"hh" '(lsp-describe-thing-at-point :which-key "Describe")
"r" '(:ignore t :watch-key "Refactor")
"r" '(:ignore t :which-key "Refactor")
"rr" '(lsp-rename :which-key "Rename"))
:config
(uno/add-useless-buffer "\\*lsp-log\\*"))
(uno/add-useless-buffer "\\*lsp-log\\*")
(uno/handle-side-window "\\*lsp-help\\*"))
(use-package lsp-mode
:after (uno-dev-lsp which-key)

+ 12
- 15
uno/modules/key/vim.org View File

@ -21,31 +21,28 @@ Define Vim key package.
(evil-split-window-before t)
(evil-vsplit-window-right t)
(evil-want-integration t)
(evil-want-keybinding nil)
:config
(general-evil-setup)
:general
(uno-define ";" 'evil-ex)
:init
(evil-mode 1))
#+END_SRC
** Comment
#+BEGIN_SRC emacs-lisp
(use-package evil-nerd-commenter
:after (uno-key-vim evil)
;; :general
;; (uno-leader-define
;; ";" '(evilnc-comment-or-uncomment-lines :which-key "Toggle comment"))
)
#+END_SRC
** Undo-Fu Integration
#+BEGIN_SRC emacs-lisp
(use-package undo-fu
:after (uno-key-vim evil)
:custom
(evil-undo-system 'undo-fu)
(evil-undo-system 'undo-fu))
#+END_SRC
** Comment
#+BEGIN_SRC emacs-lisp
(use-package evil-nerd-commenter
:after (uno-key-vim evil)
:general
(uno-define ";" 'evil-ex))
(uno-leader-define
";" '(evilnc-comment-or-uncomment-lines :which-key "Toggle comment")))
#+END_SRC
** Evil Collection

Loading…
Cancel
Save