Hot answers tagged

3

Bad form just to link but possibly this helps: https://www.reddit.com/r/emacs/comments/adxcal/subprojects_do_i_need_to_armwrestle_projectile_or/edl7jhl/ It covers how to add workspace folders and also how to reset your lsp settings to get a prompt.


1

You were pretty close. I imagine you want something like this? ((nil . ((eval . (progn (require 'projectile) (setq-local ccls-initialization-options `(:index (:blacklist ,(vector (concat ...


1

(defun disable-lsp-conn-msg-advice (func &rest r) (unless (string-prefix-p "Connected to" (car r)) (apply func r))) (advice-add 'lsp--info :around #'disable-lsp-conn-msg-advice)


1

You can try something like the following. (use-package lsp-mode :ensure t) (use-package cmake-mode :ensure t :mode ("CMakeLists\\.txt\\'" "\\.cmake\\'") :hook (cmake-mode . lsp-deferred)) (use-package cmake-font-lock :ensure t :after cmake-mode :config (cmake-font-lock-activate)) The lsp-mode package provides additional ...


1

I still don't know how to use the lsp-json-schemas variable, but with this mode properly activated in emacs you can add a top-level $schema property to the object you are presumably editing in the file and the auto-completions and other features will kick in. { "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/master/...


1

The LSP server just provides a list of action names that are applicable, and the client must request that the server invoke them. This means that the client doesn't actually know how they're implemented or what the full set of actions will be, and that they cannot be interactive commands. Instead there is only a command that lets you select which action you ...


1

Disabling flymake-mode on eglot-managed-mode-hook should work.


1

You'll end up doing it the same way most programming modes do syntax highlighting: by matching regular expressions against the buffer contents. You'll want to search backwards for the beginning of the function, and then search forwards from there to find the end of it. Using LSP is a nice idea, but the protocol doesn't deal in the actual syntax of the ...


Only top voted, non community-wiki answers of a minimum length are eligible