Hot answers tagged

3

How about: (use-package lsp-mode :straight t :init (setq lsp-keymap-prefix "C-c l") :hook (python-mode . lsp-deferred)) The doc for lsp-deferred: Signature (lsp-deferred) Documentation Entry point that defers server startup until buffer is visible. lsp-deferred will wait until the buffer is visible before invoking lsp. This avoids ...


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

Don't call helm-mode at all. Helm-mode does not introduce anything for lsp-java per se but IMO improves general emacs usability. You could use helm-lsp function without having helm-mode enabled.


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

There appears to be a bug in lsp-mode which causes lsp-headerline-breadcrumb-enable to not work as expected. I believe the following workaround should result in the desired behavior (no breadcrumb): (add-hook 'lsp-mode-hook #'lsp-headerline-breadcrumb-mode) This will call lsp-headerline-breadcrumb-mode each time lsp mode is enabled. Because of the ...


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