Add treesitter and Ruby
This commit is contained in:
parent
0191a7ebd9
commit
2dd1affaf0
3 changed files with 9 additions and 3 deletions
3
init.el
3
init.el
|
|
@ -81,7 +81,8 @@
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(safe-local-variable-values
|
'(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-elixir-project-dir . "/Users/maciej/Development/mindvalley/connect/app")
|
||||||
(lsp-lens-mode)
|
(lsp-lens-mode)
|
||||||
(lsp-lens-enable)
|
(lsp-lens-enable)
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@
|
||||||
;; Do not insert magic encoding comment at the begining of each file
|
;; Do not insert magic encoding comment at the begining of each file
|
||||||
(setq ruby-insert-encoding-magic-comment nil)
|
(setq ruby-insert-encoding-magic-comment nil)
|
||||||
|
|
||||||
(lsp)
|
|
||||||
|
|
||||||
;; Company list override
|
;; Company list override
|
||||||
(add-to-list (make-local-variable 'company-backends)
|
(add-to-list (make-local-variable 'company-backends)
|
||||||
'(company-capf company-yasnippet)))
|
'(company-capf company-yasnippet)))
|
||||||
|
|
@ -37,6 +35,7 @@
|
||||||
(eval-after-load 'rspec-mode
|
(eval-after-load 'rspec-mode
|
||||||
'(rspec-install-snippets))
|
'(rspec-install-snippets))
|
||||||
(add-hook 'enh-ruby-mode-hook 'activate-ruby-mode)
|
(add-hook 'enh-ruby-mode-hook 'activate-ruby-mode)
|
||||||
|
(add-hook 'enh-ruby-mode-hook 'lsp-deferred)
|
||||||
|
|
||||||
(provide '+custom-lang-ruby)
|
(provide '+custom-lang-ruby)
|
||||||
;;; ruby.el ends here
|
;;; ruby.el ends here
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,12 @@
|
||||||
;; Numbers are arbitrary, but work on a large screen. Default is 160
|
;; Numbers are arbitrary, but work on a large screen. Default is 160
|
||||||
(setq split-width-threshold 180)
|
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;; Shell stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
|
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue