summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua
new file mode 100644
index 0000000..b045159
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/qmlls.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'qmlls' },
+ filetypes = { 'qml', 'qmljs' },
+ root_dir = function(fname)
+ return util.find_git_ancestor(fname)
+ end,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/qt/qtdeclarative
+
+LSP implementation for QML (autocompletion, live linting, etc. in editors),
+ ]],
+ },
+}