diff options
Diffstat (limited to 'config.el')
| -rw-r--r-- | config.el | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -182,8 +182,23 @@ (setq lsp-ui-sideline-show-code-actions nil) (setq lsp-signature-render-documentation nil) +(after! forester-ts-mode + (setq treesit-font-lock-level 5) + (unless (treesit-ready-p 'forester) + (treesit-install-language-grammar 'forester)) + (add-to-list 'auto-mode-alist '("\\.tree\\'" . forester-ts-mode))) + (after! (lsp-ui helm-lsp) (lsp-signature-activate) + + (add-to-list 'lsp-language-id-configuration + '(forester-ts-mode . "forester")) + (lsp-register-client + (make-lsp-client :new-connection (lsp-stdio-connection '("forester" "lsp")) + :major-modes '(forester-ts-mode) + :activation-fn (lsp-activate-on "forester") + :server-id 'forester)) + ;; custom version which will not blindly apply a single code action ;; if only one is available without asking about it first. ;; Source taken from https://github.com/emacs-lsp/helm-lsp/blob/master/helm-lsp.el |
