feat(slint): wip slint configuration

This commit is contained in:
2026-04-03 10:16:04 +02:00
parent 3d25a1500f
commit 6ad634b9ba
3 changed files with 28 additions and 4 deletions

View File

@@ -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" },
},

View File

@@ -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
}

28
lua/plugins/51-slint.lua Normal file
View File

@@ -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 = {},
},
},
}