Add treesitter and Ruby

This commit is contained in:
Maciej 2023-01-27 14:10:49 +02:00
parent 0191a7ebd9
commit 2dd1affaf0
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 9 additions and 3 deletions

View file

@ -81,7 +81,8 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(safe-local-variable-values
'((cider-clojure-cli-aliases . "dev")
'((lsp-enabled-clients sorbet-ls)
(cider-clojure-cli-aliases . "dev")
(lsp-elixir-project-dir . "/Users/maciej/Development/mindvalley/connect/app")
(lsp-lens-mode)
(lsp-lens-enable)

View file

@ -25,8 +25,6 @@
;; Do not insert magic encoding comment at the begining of each file
(setq ruby-insert-encoding-magic-comment nil)
(lsp)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-capf company-yasnippet)))
@ -37,6 +35,7 @@
(eval-after-load 'rspec-mode
'(rspec-install-snippets))
(add-hook 'enh-ruby-mode-hook 'activate-ruby-mode)
(add-hook 'enh-ruby-mode-hook 'lsp-deferred)
(provide '+custom-lang-ruby)
;;; ruby.el ends here

View file

@ -86,6 +86,12 @@
;; Numbers are arbitrary, but work on a large screen. Default is 160
(setq split-width-threshold 180)
;;;;;;;;;;;;;;;;;;;;;; Tree sitter ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package tree-sitter :straight t)
(use-package tree-sitter-langs :straight t)
(global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook 'tree-sitter-hl-mode)
;;;;;;;;;;;;;;;;;;;;;; Shell stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)