Skip to content

For Developers (WIP)

Leinux edited this page Jul 10, 2024 · 1 revision

Example persistent file

{
    "/home/lei/.local/share/nvim/lazy/lspmark.nvim/lua/lspmark/bookmarks.lua": {
        "12": {
            "ensure_path_valid": {
                "12": [
                    {
                        "col": 0,
                        "comment": "",
                        "range": [
                            28,
                            45,
                            6,
                            3
                        ],
                        "calibrated": false,
                        "text": "\tlocal l3 = l2[name]",
                        "symbol_text": "functionensure_path_valid(file_name,kind,name,offset)ifnotM.bookmarks[file_name]thenM.bookmarks[file_name]={}endlocall1=M.bookmarks[file_name]ifnotl1[tostring(kind)]thenl1[tostring(kind)]={}endlocall2=l1[tostring(kind)]ifnotl2[name]thenl2[name]={}endlocall3=l2[name]ifnotl3[tostring(offset)]thenl3[tostring(offset)]={}endreturnl3end"
                    }
                ],
                "15": [
                    {
                        "col": 0,
                        "comment": "",
                        "range": [
                            28,
                            45,
                            6,
                            3
                        ],
                        "calibrated": false,
                        "text": "\tend",
                        "symbol_text": "functionensure_path_valid(file_name,kind,name,offset)ifnotM.bookmarks[file_name]thenM.bookmarks[file_name]={}endlocall1=M.bookmarks[file_name]ifnotl1[tostring(kind)]thenl1[tostring(kind)]={}endlocall2=l1[tostring(kind)]ifnotl2[name]thenl2[name]={}endlocall3=l2[name]ifnotl3[tostring(offset)]thenl3[tostring(offset)]={}endreturnl3end"
                    }
                ]
            }
        }
    }
}
Clone this wiki locally