Skip to content

Commit bf107f8

Browse files
committed
ignore lockfiles and add rust
1 parent 12f019a commit bf107f8

6 files changed

+20
-1
lines changed

.lsp-eslint-choices

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("/home/binwan/Documents/binwan-dev/dbviewer/dbviewer/node_modules/eslint/lib/api.js" 4))

config/init-generic.el

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
(setq auto-save-timeout 120)
3535
(setq backup-directory-alist `((".*" . "~/.autosave/")))
3636
(setq auto-save-file-name-transforms `((".*","~/.autosave/" t)))
37+
(setq create-lockfiles nil)
3738

3839
;; enable recent file mode
3940
(use-package recentf

config/init-lspmode.el

+5
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@
5656
:ensure t
5757
:hook (csharp-mode . lsp))
5858

59+
(use-package vue-mode
60+
:hook (vue-mode . (lambda ()
61+
(olivetti-mode)
62+
(lsp))))
63+
5964

6065
(provide 'init-lspmode)

config/init-rust.el

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(use-package rust-mode
2+
:config
3+
(setq rust-format-on-save t)
4+
:bind (("C-c C-c" . rust-run))
5+
:hook (rust-mode .
6+
(lambda ()
7+
(setq indent-tabs-mode nil)
8+
(prettify-symbols-mode)
9+
(lsp))))
10+
11+
(provide 'init-rust)

config/init.el

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
(require 'init-conda)
3232
;; (require 'init-yasnippet)
3333
(require 'init-lspmode)
34+
(require 'init-rust)
3435
;; (require 'init-omnisharp)
3536
(require 'init-go)
3637
(require 'init-multi-cursors)

init.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
;; Your init file should contain only one such instance.
1414
;; If there is more than one, they won't work right.
1515
'(package-selected-packages
16-
'(edbi yasnippet window-numbering which-key use-package tree-sitter-langs tree-sitter-indent rainbow-mode rainbow-delimiters quelpa py-autopep8 protobuf-mode olivetti mmm-mode meow mc-extras magit lsp-ui lsp-pyright hungry-delete helm-projectile helm-gtags go-projectile flycheck exec-path-from-shell doom-themes doom-modeline dashboard csharp-mode conda company ccls)))
16+
'(vue-mode rust-mode edbi yasnippet window-numbering which-key use-package tree-sitter-langs tree-sitter-indent rainbow-mode rainbow-delimiters quelpa py-autopep8 protobuf-mode olivetti mmm-mode meow mc-extras magit lsp-ui lsp-pyright hungry-delete helm-projectile helm-gtags go-projectile flycheck exec-path-from-shell doom-themes doom-modeline dashboard csharp-mode conda company ccls)))
1717
(custom-set-faces
1818
;; custom-set-faces was added by Custom.
1919
;; If you edit it by hand, you could mess it up, so be careful.

0 commit comments

Comments
 (0)