mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-25 12:30:24 +10:00
Minor edits.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
;;; lang/nix/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(after! tramp
|
||||
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin"))
|
||||
|
||||
|
||||
;;
|
||||
;;; Plugins
|
||||
|
||||
(use-package! nix-mode
|
||||
:interpreter ("\\(?:cached-\\)?nix-shell" . +nix-shell-init-mode)
|
||||
:mode "\\.nix\\'"
|
||||
@@ -8,6 +15,11 @@
|
||||
(set-company-backend! 'nix-mode 'company-nixos-options)
|
||||
(set-lookup-handlers! 'nix-mode
|
||||
:documentation '(+nix/lookup-option :async t))
|
||||
(set-popup-rule! "^\\*nixos-options-doc\\*$" :ttl 0 :quit t)
|
||||
|
||||
;; Fix #3927: disable idle completion because `company-nixos-options' is
|
||||
;; dreadfully slow. It can still be invoked manually..
|
||||
(setq-hook! 'nix-mode-hook company-idle-delay nil)
|
||||
|
||||
(map! :localleader
|
||||
:map nix-mode-map
|
||||
|
||||
Reference in New Issue
Block a user