Update getting started page to mention -E
This commit is contained in:
parent
9543bb7437
commit
51798742fe
|
@ -83,7 +83,7 @@ The author's personal emacs config uses `lsp-mode` and `qml-ts-mode` as follows:
|
||||||
:config
|
:config
|
||||||
(add-to-list 'lsp-language-id-configuration '(qml-ts-mode . "qml-ts"))
|
(add-to-list 'lsp-language-id-configuration '(qml-ts-mode . "qml-ts"))
|
||||||
(lsp-register-client
|
(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")
|
:activation-fn (lsp-activate-on "qml-ts")
|
||||||
:server-id 'qmlls))
|
:server-id 'qmlls))
|
||||||
(add-hook 'qml-ts-mode-hook (lambda ()
|
(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))))
|
(lsp-deferred))))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Qmlls versions prior to 6.8.2 do not require `-E`
|
||||||
|
|
||||||
### Neovim
|
### Neovim
|
||||||
Neovim has built-in syntax highlighting for QML, however tree-sitter highlighting
|
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
|
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)),
|
To use the language server ([caveats below](#language-server)),
|
||||||
install [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
|
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
|
## Language Server
|
||||||
The QML language has an associated language server,
|
The QML language has an associated language server,
|
||||||
|
|
Loading…
Reference in a new issue