Some nim layer fixes
- Define nimscript backend list - Use jump handlers API
This commit is contained in:
parent
763d6f5555
commit
48dc7776ae
|
@ -12,3 +12,6 @@
|
||||||
;; Variables
|
;; Variables
|
||||||
|
|
||||||
(spacemacs|defvar-company-backends nim-mode)
|
(spacemacs|defvar-company-backends nim-mode)
|
||||||
|
(spacemacs|defvar-company-backends nimscript-mode)
|
||||||
|
|
||||||
|
(spacemacs|define-jump-handlers python-mode)
|
||||||
|
|
|
@ -19,9 +19,11 @@
|
||||||
(use-package nim-mode
|
(use-package nim-mode
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
|
(progn
|
||||||
(when (configuration-layer/package-usedp 'company)
|
(when (configuration-layer/package-usedp 'company)
|
||||||
(push 'company-capf company-backends-nim-mode))
|
(push 'company-capf company-backends-nim-mode))
|
||||||
(add-hook 'nim-mode-hook 'nimsuggest-mode)
|
(add-hook 'nim-mode-hook 'nimsuggest-mode)
|
||||||
|
(push 'nimsuggest-find-definition spacemacs-jump-handlers-nim-mode))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(defun spacemacs/nim-compile-run ()
|
(defun spacemacs/nim-compile-run ()
|
||||||
|
@ -30,5 +32,4 @@
|
||||||
|
|
||||||
(spacemacs/set-leader-keys-for-major-mode 'nim-mode
|
(spacemacs/set-leader-keys-for-major-mode 'nim-mode
|
||||||
"cr" 'spacemacs/nim-compile-run
|
"cr" 'spacemacs/nim-compile-run
|
||||||
"gg" 'nimsuggest-find-definition
|
|
||||||
"gb" 'pop-tag-mark))))
|
"gb" 'pop-tag-mark))))
|
||||||
|
|
Loading…
Reference in a new issue