mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
clean-up + add helm-nixos-options
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user