Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

neovim/after/ftplugin/qml.lua

Raw
-- QML/QMLLS tooling.
-- Quickshell populates this marker with local import paths when the config runs.
local current = vim.api.nvim_buf_get_name(0)
local dir = vim.fs.dirname(current)
local root = dir and vim.fs.root(dir, 'shell.qml')

if root and current:find('/quickshell/', 1, true) then
	local marker = root .. '/.qmlls.ini'
	if vim.fn.filereadable(marker) == 0 then
		vim.fn.writefile({}, marker)
	end
end