From 6ad634b9baecea6e68cb18778de8474a1ed06f31 Mon Sep 17 00:00:00 2001 From: niverton Date: Fri, 3 Apr 2026 10:16:04 +0200 Subject: [PATCH] feat(slint): wip slint configuration --- lua/plugins/20-lsp.lua | 3 --- lua/plugins/50-user.lua | 1 - lua/plugins/51-slint.lua | 28 ++++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 lua/plugins/51-slint.lua diff --git a/lua/plugins/20-lsp.lua b/lua/plugins/20-lsp.lua index ac5c4f7..a8502dd 100644 --- a/lua/plugins/20-lsp.lua +++ b/lua/plugins/20-lsp.lua @@ -15,9 +15,6 @@ return { "--enable-config", -- Enable .clangd and clangd.yaml files }, }, - slint_lsp = { - root_dir = function() end, -- Fix missing root_dir issue in neoconf (lspconfig doesn't define it...) - }, qmlls = { cmd = { "qmlls6" }, }, diff --git a/lua/plugins/50-user.lua b/lua/plugins/50-user.lua index 04034f6..993a180 100644 --- a/lua/plugins/50-user.lua +++ b/lua/plugins/50-user.lua @@ -1,6 +1,5 @@ ---@type LazySpec return { { "tpope/vim-abolish", event = "User AstroFile" }, - { "slint-ui/vim-slint", ft = "slint" }, -- { "stevearc/profile.nvim", lazy = false }, -- Profiling lua } diff --git a/lua/plugins/51-slint.lua b/lua/plugins/51-slint.lua new file mode 100644 index 0000000..c8cabec --- /dev/null +++ b/lua/plugins/51-slint.lua @@ -0,0 +1,28 @@ +--[[ Future slint community pack? +-- TODO: add ensure installed +--]] + +---@type LazySpec +return { + { + "AstroNvim/astrocore", + optional = true, + ---@type AstroCoreOpts + opts = { + filetypes = { + extension = { + slint = "slint", + }, + }, + }, + }, + { + "AstroNvim/astrolsp", + optional = true, + ---@type AstroLSPOpts + opts = { + ---@diagnostic disable: missing-fields + config = {}, + }, + }, +}