2015-10-14 04:14:33 +00:00
|
|
|
;;; packages.el --- vimscript Layer packages File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-10-14 04:14:33 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2020-07-09 20:03:55 +00:00
|
|
|
(defconst vimscript-packages
|
|
|
|
'(
|
|
|
|
company
|
|
|
|
flycheck
|
|
|
|
vimrc-mode
|
|
|
|
ggtags
|
|
|
|
counsel-gtags
|
|
|
|
helm-gtags
|
|
|
|
dactyl-mode))
|
|
|
|
|
|
|
|
(defun vimscript/post-init-company ()
|
|
|
|
(spacemacs//vimscript-setup-company))
|
|
|
|
|
|
|
|
(defun vimscript/post-init-flycheck ()
|
|
|
|
(spacemacs/enable-flycheck 'vimrc-mode))
|
2015-10-14 04:14:33 +00:00
|
|
|
|
|
|
|
(defun vimscript/init-vimrc-mode ()
|
|
|
|
"Initialize vimrc package"
|
|
|
|
(use-package vimrc-mode
|
|
|
|
:mode "\\.vim[rc]?\\'"
|
|
|
|
:mode "_vimrc\\'"
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2015-10-14 04:14:33 +00:00
|
|
|
:init
|
|
|
|
(progn
|
2020-07-09 20:03:55 +00:00
|
|
|
(defun spacemacs//vimrc-mode-hook ()
|
|
|
|
"Hooked function for `vimrc-mode-hook'."
|
|
|
|
(highlight-numbers-mode -1)
|
|
|
|
(rainbow-delimiters-mode-disable)
|
|
|
|
(spacemacs//vimscript-setup-backend))
|
|
|
|
(add-hook 'vimrc-mode-hook 'spacemacs//vimrc-mode-hook))))
|
2015-10-14 04:14:33 +00:00
|
|
|
|
|
|
|
(defun vimscript/init-dactyl-mode ()
|
|
|
|
(use-package dactyl-mode
|
|
|
|
:mode "pentadactylrc\\'"
|
|
|
|
:mode "vimperatorrc\\'"
|
|
|
|
:mode "_pentadactylrc\\'"
|
|
|
|
:mode "_vimperatorrc\\'"
|
|
|
|
:mode "\\.penta\\'"
|
|
|
|
:mode "\\.vimp\\'"
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t))
|
2016-04-05 04:08:34 +00:00
|
|
|
|
|
|
|
(defun vimscript/post-init-ggtags ()
|
2016-08-15 19:24:44 +00:00
|
|
|
(add-hook 'vimrc-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))
|
2016-04-05 04:08:34 +00:00
|
|
|
|
2017-08-26 21:18:09 +00:00
|
|
|
(defun vimscript/post-init-counsel-gtags ()
|
|
|
|
(spacemacs/counsel-gtags-define-keys-for-mode 'vimrc-mode))
|
|
|
|
|
2016-04-05 04:08:34 +00:00
|
|
|
(defun vimscript/post-init-helm-gtags ()
|
|
|
|
(spacemacs/helm-gtags-define-keys-for-mode 'vimrc-mode))
|