Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Setting up qmlls with neovim
Forum Updated to NodeBB v4.3 + New Features

Setting up qmlls with neovim

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 907 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aakarsh MJ
    wrote on last edited by
    #1

    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 checked LspInfo, it shows 0 attached servers.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Aakarsh MJ
      wrote on last edited by
      #2

      I must be doing something wrong, any help in this regard will be highly appreciated!

      1 Reply Last reply
      0
      • T Offline
        T Offline
        talksik
        wrote on last edited by
        #3

        Were you able to figure this out? Trying to figure this out myself. Treesitter qmljs doesn't work for me either

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved