eglot-autoloads.el (3601B)
1 ;;; eglot-autoloads.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*- 2 ;; Generated by the `loaddefs-generate' function. 3 4 ;; This file is part of GNU Emacs. 5 6 ;;; Code: 7 8 (add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path))) 9 10 11 12 ;;; Generated autoloads from eglot.el 13 14 (define-obsolete-function-alias 'eglot-update #'eglot-upgrade-eglot "29.1") 15 (autoload 'eglot "eglot" "\ 16 Start LSP server for PROJECT's buffers under MANAGED-MAJOR-MODES. 17 18 This starts a Language Server Protocol (LSP) server suitable for 19 the buffers of PROJECT whose `major-mode' is among 20 MANAGED-MAJOR-MODES. CLASS is the class of the LSP server to 21 start and CONTACT specifies how to connect to the server. 22 23 Interactively, the command attempts to guess MANAGED-MAJOR-MODES, 24 CLASS, CONTACT, and LANGUAGE-IDS from `eglot-server-programs', 25 according to the current buffer's `major-mode'. PROJECT is 26 guessed from `project-find-functions'. The search for active 27 projects in this context binds `eglot-lsp-context' (which see). 28 29 If it can't guess, it prompts the user for the mode and the 30 server. With a single \\[universal-argument] prefix arg, it 31 always prompts for COMMAND. With two \\[universal-argument], it 32 also always prompts for MANAGED-MAJOR-MODE. 33 34 The LSP server of CLASS is started (or contacted) via CONTACT. 35 If this operation is successful, current *and future* file 36 buffers of MANAGED-MAJOR-MODE inside PROJECT become \"managed\" 37 by the LSP server, meaning the information about their contents is 38 exchanged periodically with the server to provide enhanced 39 code-analysis via `xref-find-definitions', `flymake-mode', 40 `eldoc-mode', and `completion-at-point', among others. 41 42 PROJECT is a project object as returned by `project-current'. 43 44 CLASS is a subclass of `eglot-lsp-server'. 45 46 CONTACT specifies how to contact the server. It is a 47 keyword-value plist used to initialize CLASS or a plain list as 48 described in `eglot-server-programs', which see. 49 50 LANGUAGE-IDS is a list of language ID string to send to the 51 server for each element in MANAGED-MAJOR-MODES. 52 53 INTERACTIVE is ignored and provided for backward compatibility. 54 55 (fn MANAGED-MAJOR-MODES PROJECT CLASS CONTACT LANGUAGE-IDS &optional INTERACTIVE)" t) 56 (autoload 'eglot-ensure "eglot" "\ 57 Start Eglot session for current buffer if there isn't one. 58 59 Only use this function (in major mode hooks, etc) if you are 60 confident that Eglot can be started safely and efficiently for 61 *every* buffer visited where these hooks may execute. 62 63 Since it is difficult to establish this confidence fully, it's 64 often wise to use the interactive command `eglot' instead. This 65 command only needs to be invoked once per project, as all other 66 files of a given major mode visited within the same project will 67 automatically become managed with no further user intervention 68 needed.") 69 (autoload 'eglot-upgrade-eglot "eglot" "\ 70 Update Eglot to latest version. 71 72 (fn &rest _)" t) 73 (put 'eglot-workspace-configuration 'safe-local-variable #'listp) 74 (put 'eglot--debbugs-or-github-bug-uri 'bug-reference-url-format t) 75 (defun eglot--debbugs-or-github-bug-uri nil (format (if (string= (match-string 2) "github") "https://github.com/joaotavora/eglot/issues/%s" "https://debbugs.gnu.org/%s") (match-string 3))) 76 (register-definition-prefixes "eglot" '("eglot-")) 77 78 ;;; End of scraped data 79 80 (provide 'eglot-autoloads) 81 82 ;; Local Variables: 83 ;; version-control: never 84 ;; no-byte-compile: t 85 ;; no-update-autoloads: t 86 ;; no-native-compile: t 87 ;; coding: utf-8-emacs-unix 88 ;; End: 89 90 ;;; eglot-autoloads.el ends here