diff --git a/src/pages/docs/configuration/getting-started.mdx b/src/pages/docs/configuration/getting-started.mdx index 4477849..bc3ba42 100644 --- a/src/pages/docs/configuration/getting-started.mdx +++ b/src/pages/docs/configuration/getting-started.mdx @@ -83,7 +83,7 @@ The author's personal emacs config uses `lsp-mode` and `qml-ts-mode` as follows: :config (add-to-list 'lsp-language-id-configuration '(qml-ts-mode . "qml-ts")) (lsp-register-client - (make-lsp-client :new-connection (lsp-stdio-connection "qmlls") + (make-lsp-client :new-connection (lsp-stdio-connection '("qmlls", "-E")) :activation-fn (lsp-activate-on "qml-ts") :server-id 'qmlls)) (add-hook 'qml-ts-mode-hook (lambda () @@ -91,6 +91,9 @@ The author's personal emacs config uses `lsp-mode` and `qml-ts-mode` as follows: (lsp-deferred)))) ``` +> [!NOTE] +> Qmlls versions prior to 6.8.2 do not require `-E` + ### Neovim Neovim has built-in syntax highlighting for QML, however tree-sitter highlighting may work better than the built-in highlighting. You can install the grammar @@ -98,7 +101,16 @@ using `:TSInstall qmljs`. To use the language server ([caveats below](#language-server)), install [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) -and call `require("lspconfig").qmlljs.setup({})`. +and the following snippet: + +```lua +require("lspconfig").qmlls.setup { + cmd = {"qmlls", "-E"} +} +``` + +> [!NOTE] +> Qmlls versions prior to 6.8.2 do not require `-E` ## Language Server The QML language has an associated language server,