misc settings

This commit is contained in:
Alexander Gehrke 2025-05-28 17:30:44 +02:00
parent a3935e52f0
commit 4742d5b88e
5 changed files with 31 additions and 17 deletions

View file

@ -41,7 +41,11 @@ local function goToCSSClassDefinition()
if className then
require("nvim-quick-switcher").toggle("tsx", "scss", { only_existing = true })
local query = vim.treesitter.query.parse("scss", '((class_name) @cn (#eq? @cn "' .. className .. '"))')
local tree = vim.treesitter.get_node():tree()
local node = vim.treesitter.get_node()
if not node then
return false
end
local tree = node:tree()
vim.fn.setqflist({})
local start, _, stop, _ = tree:root():range()
local anyMatch = false