This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local api = vim.api | |
| local fn = vim.fn | |
| local ns = api.nvim_create_namespace "conf_folding_virtual_text" | |
| ---@class ExtmarkInfo | |
| ---@field buf integer | |
| ---@field start_lnum integer | |
| ---@field end_lnum integer | |
| ---@field level integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local funcs = {} | |
| local function find_funcs(t, pre) | |
| if pre == "vim.fn" or pre == "vim.loop" then | |
| return | |
| end | |
| local function ident(name) | |
| if not name:match "^[a-zA-Z_][a-zA-Z_0-9]*$" then | |
| return ('%s["%s"]'):format(pre, name) -- I don't care about escaping. | |
| end |
OlderNewer