Update getting started page to mention -E

This commit is contained in:
outfoxxed 2025-02-26 11:24:18 -08:00
parent 9543bb7437
commit 51798742fe
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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,