misc settings
This commit is contained in:
parent
a3935e52f0
commit
4742d5b88e
5 changed files with 31 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue