summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mora Unie Youer <[email protected]>2025-08-10 13:54:00 +0300
committerLibravatar Mora Unie Youer <[email protected]>2025-08-10 13:54:00 +0300
commit0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37 (patch)
tree9d713311002e81fae7555b325db2a975ee636c00
parentfix: refresh `rust-analyzer` inlay hints on finished indexing (diff)
downloadneovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.tar.gz
neovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.tar.bz2
neovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.tar.lz
neovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.tar.xz
neovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.tar.zst
neovim-configuration-0b6e4cc3b7973d3b0c2037157dad1a9cab4fec37.zip
feat: add `qmlls` for QML filesHEADmaster
-rw-r--r--flake.nix2
-rw-r--r--lsp/qmlls.lua5
-rw-r--r--lua/config/lsp.lua2
3 files changed, 9 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 195f149..baa5620 100644
--- a/flake.nix
+++ b/flake.nix
@@ -149,6 +149,8 @@
nixfmt-rfc-style
];
+ qml = [ kdePackages.qtdeclarative ];
+
rust = [
# NOTE: required to find project root
# NOTE: for now unused, so commented out
diff --git a/lsp/qmlls.lua b/lsp/qmlls.lua
new file mode 100644
index 0000000..92dc83b
--- /dev/null
+++ b/lsp/qmlls.lua
@@ -0,0 +1,5 @@
+return {
+ cmd = { "qmlls", "-E" },
+ root_markers = { ".qmlls.ini", ".git" },
+ filetypes = { "qml", "qmljs" },
+}
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 899fd50..7004b6c 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -10,6 +10,8 @@ vim.lsp.enable({
"nixd",
+ "qmlls",
+
"rust-analyzer",
"angular-language-server",