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
org-caldav
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
:config
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode)
:server-id 'nix))
(add-hook 'rust-mode-hook 'lsp)
)
(use-package lsp-haskell
:config
(add-hook 'haskell-mode-hook 'lsp)
(add-hook 'haskell-literate-mode-hook 'lsp)
)
(use-package org-caldav
:config
(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-icalendar-timezone "Europe/Moscow")
)
;;; init.el ends here
(use-package envrc
: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";
userName = "Alexander Bantyev";
extraConfig.pull.rebase = true;
ignores = [ ".envrc" ".direnv" ".#*" ];
signing = {
signByDefault = true;
key = "687558B21E04FE92B255BED0E081FF12ADCB4AD5";