- `wireguard` for `hs`
- gnome keyring for VSCode to make Copilot work
- uninstalled local `Hydra` on `pc`
- VSCode -> VSCodeFHS
- Emacs
  - typescript
  - solidity
  - envrc mode
This commit is contained in:
Andrea Ciceri 2022-06-26 12:35:43 +02:00
parent 3668e2d3d0
commit 0ee819715f
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
10 changed files with 127 additions and 47 deletions

View file

@ -47,6 +47,9 @@
poppler_utils
python3Full
rnix-lsp
nodePackages.typescript-language-server
nodePackages.eslint
nodejs
silver-searcher
unzip
(
@ -60,7 +63,6 @@
}
)
] ++ (if pkgs.system == "x86_64-linux" then [
python-language-server
] ++ (with easy-ps; [
ffmpegthumbnailer
]) else [ ]);

View file

@ -1,3 +1,5 @@
(envrc-global-mode)
(setq backup-directory-alist `(("." . "~/.saves"))
backup-by-copying t
delete-old-versions 6

View file

@ -1,6 +1,6 @@
(use-package nix-mode
:mode "\\.nix\\'"
:config (setq format-on-save t)
:config (setq format-on-save t)
:bind ("<f8>" . (lambda () (interactive) (setq format-on-save (not format-on-save)) ))
:hook
(before-save . (lambda () (when (format-on-save) (lsp-format-buffer)))))

View file

@ -0,0 +1,31 @@
(use-package typescript-mode
:mode "\\.ts\\'")
(defun setup-tide-mode ()
(interactive)
(tide-setup)
(flycheck-mode +1)
(flycheck-status-emoji-mode +1)
(setq
flycheck-checker 'javascript-eslint
flycheck-check-syntax-automatically '(save mode-enabled))
(eldoc-mode +1)
(tide-hl-identifier-mode +1)
;; company is an optional dependency. You have to
;; install it separately via package-install
;; `M-x package-install [ret] company`
(company-mode +1))
;; aligns annotation to the right hand side
(setq company-tooltip-align-annotations t)
;; formats the buffer before saving
;;(add-hook 'before-save-hook 'tide-format-before-save)
;; instead use prettier
(add-hook 'typescript-mode-hook 'prettier-mode)
(add-hook 'typescript-mode-hook #'setup-tide-mode)
(provide 'config-typescript)

View file

@ -17,7 +17,9 @@
(require 'config-python)
(require 'config-spelling)
(require 'config-nix)
(require 'config-typescript)
(require 'config-purescript)
(require 'config-solidity)
(require 'config-scad)
(require 'config-translate)
(require 'config-lisp)

View file

@ -2,35 +2,37 @@
{
programs.vscode = {
enable = true;
package = pkgs.vscode-fhs;
userSettings = {
"update.channel" = "none";
"editor" = {
"formatOnSave" = true;
"fontFamily" = "Fira Code";
"fontLigatures" = true;
};
"window"."menuBarVisibility" = "classic";
"[nix]"."editor.tabSize" = 2;
"nix"."enableLanguageServer" = true;
"github.copilot.enable" = {
"*" = true;
};
};
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
jnoortheen.nix-ide
haskell.haskell
justusadam.language-haskell
#ms-python.python
];
# userSettings = {
# "update.channel" = "none";
# "editor" = {
# "formatOnSave" = true;
# "fontFamily" = "Fira Code";
# "fontLigatures" = true;
# };
# "window"."menuBarVisibility" = "classic";
# "[nix]"."editor.tabSize" = 2;
# "nix"."enableLanguageServer" = true;
# "github.copilot.enable" = {
# "*" = true;
# };
# };
# # extensions = with pkgs.vscode-extensions; [
# # eamodio.gitlens
# # jnoortheen.nix-ide
# # haskell.haskell
# # justusadam.language-haskell
# # #ms-python.python
# # ];
# };
# home.packages = with pkgs; [
# gnome.gnome-keyring
# stylish-haskell
# ghc
# ] ++ (if pkgs.system == "x86_64-linux" then [
# haskell-language-server
# ] else [ ]);
};
home.packages = with pkgs; [
gnome.gnome-keyring
stylish-haskell
ghc
] ++ (if pkgs.system == "x86_64-linux" then [
haskell-language-server
] else [ ]);
}