mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 12:00:24 +10:00
Updating dotfiles.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
;;; lang/nim/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(after! nim-mode
|
||||
(use-package! nim-mode
|
||||
:defer t
|
||||
:init
|
||||
(add-hook! 'nim-mode-hook
|
||||
(defun +nim-init-nimsuggest-mode-h ()
|
||||
"Conditionally load `nimsuggest-mode', instead of clumsily erroring out if
|
||||
@@ -19,9 +21,16 @@ windows."
|
||||
:filter-return #'nimsuggest--get-temp-file-name
|
||||
(replace-regexp-in-string "[꞉* |<>\"?*]" "" path)))
|
||||
|
||||
:config
|
||||
(set-lookup-handlers! '(nim-mode nimsuggest-mode)
|
||||
:definition #'+nimsuggest-find-definition
|
||||
:documentation #'nimsuggest-show-doc)
|
||||
|
||||
(map! :localleader
|
||||
:map nim-mode-map
|
||||
"b" #'nim-compile))
|
||||
"b" #'nim-compile
|
||||
"h" #'nimsuggest-show-doc
|
||||
"d" #'nimsuggest-find-definition))
|
||||
|
||||
|
||||
(use-package! flycheck-nim
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
;;; requires nim nimsuggest nimble
|
||||
|
||||
(package! nim-mode :pin "16a245e497")
|
||||
(package! nim-mode :pin "16a245e4974d21a6e9e7163e7fbfb50a0bd89f99")
|
||||
|
||||
(when (featurep! :checkers syntax)
|
||||
(package! flycheck-nim :pin "ddfade5100"))
|
||||
(package! flycheck-nim :pin "ddfade51001571c2399f78bcc509e0aa8eb752a4"))
|
||||
|
||||
Reference in New Issue
Block a user