add nix mode
This commit is contained in:
parent
3622699968
commit
cd4899b69e
1 changed files with 12 additions and 0 deletions
12
init.el
12
init.el
|
@ -117,6 +117,9 @@
|
||||||
;; langs
|
;; langs
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
;; nixos
|
||||||
|
(use-package nix-mode :ensure t
|
||||||
|
:mode "\\.nix\\'")
|
||||||
;; terraform
|
;; terraform
|
||||||
(use-package terraform-mode :ensure t)
|
(use-package terraform-mode :ensure t)
|
||||||
;; rego
|
;; rego
|
||||||
|
@ -282,6 +285,15 @@
|
||||||
:server-id 'php-custom))
|
:server-id 'php-custom))
|
||||||
(add-to-list 'lsp-language-id-configuration '(puppet-mode . "php-custom"))
|
(add-to-list 'lsp-language-id-configuration '(puppet-mode . "php-custom"))
|
||||||
|
|
||||||
|
(lsp-register-client
|
||||||
|
(make-lsp-client
|
||||||
|
:new-connection
|
||||||
|
(lsp-stdio-connection
|
||||||
|
'("nix-shell" "-p" "rnix-lsp" "--run" "rnix-lsp"))
|
||||||
|
:major-modes '(nix-mode)
|
||||||
|
:server-id 'nix))
|
||||||
|
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix-custom"))
|
||||||
|
|
||||||
(setq lsp-auto-configure t
|
(setq lsp-auto-configure t
|
||||||
lsp-auto-guess-root t
|
lsp-auto-guess-root t
|
||||||
lsp-enable-indentation t
|
lsp-enable-indentation t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue