clean-up + add helm-nixos-options
This commit is contained in:
parent
6b23692985
commit
0aa351842c
2 changed files with 18 additions and 11 deletions
|
@ -1,21 +1,16 @@
|
|||
;;; config.el --- description -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! company-nixos-options
|
||||
:when (featurep! :completion company)
|
||||
:after nix-mode
|
||||
:config
|
||||
(set-company-backend! 'nix-mode 'company-nixos-options))
|
||||
|
||||
(def-package! nix-update
|
||||
:after nix-mode
|
||||
:commands (nix-update-fetch))
|
||||
|
||||
(def-package! nix-repl
|
||||
:after nix-mode
|
||||
:commands (nix-repl-show))
|
||||
|
||||
(def-package! nix-mode
|
||||
:config
|
||||
(def-package! helm-nixos-options
|
||||
:when (featurep! :completion helm)
|
||||
:commands (helm-nixos-options))
|
||||
|
||||
(after! nix-mode
|
||||
(map! :map nix-mode-map
|
||||
:localleader
|
||||
:n "f" #'nix-update-fetch
|
||||
|
@ -23,4 +18,12 @@
|
|||
:n "r" #'nix-repl-show
|
||||
:n "s" #'nix-shell
|
||||
:n "b" #'nix-build
|
||||
:n "u" #'nix-unpack))
|
||||
:n "u" #'nix-unpack)
|
||||
|
||||
(when (featurep! :completion helm)
|
||||
(map! :map nix-mode-map
|
||||
:localleader
|
||||
:n "o" #'helm-nixos-options))
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(set-company-backend! 'nix-mode 'company-nixos-options)))
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
;;; lang/nix/packages.el
|
||||
|
||||
(package! nix-mode)
|
||||
|
||||
(package! nix-update)
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-nixos-options))
|
||||
|
||||
(when (featurep! :completion helm)
|
||||
(package! helm-nixos-options))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue