aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAccess <ShootingStarDragons@protonmail.com>2022-10-14 12:37:31 +0800
committerGitHub <noreply@github.com>2022-10-14 12:37:31 +0800
commit6769c93bee856f4a26d6e09231f2e5d1b277427b (patch)
treed13849a2cdff4127d5d14cf3ce5b77bcd5faa726 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar.gz
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar.bz2
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar.lz
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar.xz
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.tar.zst
nvim-lspconfig-6769c93bee856f4a26d6e09231f2e5d1b277427b.zip
feat: add qmlls which is the lsp from qt (#2191)
Now In qt6.4, the lsp is useable, so I add it but qmlls is not always in the path, Like in archlinux, it is in the /usr/lib/qt6/bin/qmlls, so the config maybe always needed to be edited by user
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/qmlls.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/qmlls.lua b/lua/lspconfig/server_configurations/qmlls.lua
new file mode 100644
index 00000000..e5a90065
--- /dev/null
+++ b/lua/lspconfig/server_configurations/qmlls.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'qmlls' },
+ filetypes = { '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),
+ ]],
+ },
+}