Setting up qmlls with neovim
Unsolved
Qt Creator and other tools
-
wrote on 18 Jun 2024, 16:03 last edited by
Hi, I have been trying to setup qml with neovim but it seems the lsp is not been called.
I am using neovim with lspconfig and lua. Following is the code that I used:local config = function() local lspconfig = require("lspconfig") local cmp_nvim_lsp = require("cmp_nvim_lsp") local capabilities = cmp_nvim_lsp.default_capabilities() -- qml lspconfig.qmlls.setup({ capabilities = capabilities, on_attach = on_attach, cmd = { "qmlls" }, filetypes = { "qml" }, single_file_support = true, root_dir = function(fname) return lspconfig.util.find_git_ancestor(fname) end, }) ...
on-attach
contains the key bindings.qmlls
is installed on my system.
Whenever I open up a qml file and checkedLspInfo
, it shows 0 attached servers. -
wrote on 18 Jun 2024, 18:31 last edited by
I must be doing something wrong, any help in this regard will be highly appreciated!
-
wrote on 12 Jul 2024, 00:22 last edited by
Were you able to figure this out? Trying to figure this out myself. Treesitter qmljs doesn't work for me either