Set up lsp+direnv everywhere

This commit is contained in:
Alexander Bantyev 2021-03-01 13:04:17 +03:00
parent 964fbe8baf
commit f05400fb0b
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 11 additions and 8 deletions

View File

@ -57,6 +57,7 @@
lsp-mode lsp-mode
org-caldav org-caldav
envrc envrc
lsp-haskell
]; ];
}; };

View File

@ -220,14 +220,14 @@ If point was already at that position, move point to beginning of line."
(use-package lsp-mode (use-package lsp-mode
:config :config
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix")) (add-hook 'rust-mode-hook 'lsp)
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode)
:server-id 'nix))
) )
(use-package lsp-haskell
:config
(add-hook 'haskell-mode-hook 'lsp)
(add-hook 'haskell-literate-mode-hook 'lsp)
)
(use-package org-caldav (use-package org-caldav
:config :config
(setq org-caldav-url "https://nextcloud.balsoft.ru/remote.php/dav/calendars/balsoft") (setq org-caldav-url "https://nextcloud.balsoft.ru/remote.php/dav/calendars/balsoft")
@ -235,8 +235,9 @@ If point was already at that position, move point to beginning of line."
(setq org-caldav-inbox "/home/balsoft/Documents/Work/calendar.org") (setq org-caldav-inbox "/home/balsoft/Documents/Work/calendar.org")
(setq org-icalendar-timezone "Europe/Moscow") (setq org-icalendar-timezone "Europe/Moscow")
) )
;;; init.el ends here
(use-package envrc (use-package envrc
:config :config
(envrc-global-mode)) (envrc-global-mode)
(advice-add 'lsp :before (lambda (&optional n) (envrc--update))))
;;; init.el ends here

View File

@ -4,6 +4,7 @@
userEmail = "balsoft@balsoft.ru"; userEmail = "balsoft@balsoft.ru";
userName = "Alexander Bantyev"; userName = "Alexander Bantyev";
extraConfig.pull.rebase = true; extraConfig.pull.rebase = true;
ignores = [ ".envrc" ".direnv" ".#*" ];
signing = { signing = {
signByDefault = true; signByDefault = true;
key = "687558B21E04FE92B255BED0E081FF12ADCB4AD5"; key = "687558B21E04FE92B255BED0E081FF12ADCB4AD5";