[
  {
    "path": ".gitignore",
    "content": ".local\nlvim/.config/lvim/bckgit\nlvim/.config/lvim/plugin\n.DS_Store\n\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 LintaoAmons\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "Makefile",
    "content": "update:\n\tgit pull --rebase\n\t/opt/homebrew/bin/bash update.sh\n"
  },
  {
    "path": "README.md",
    "content": "转移到了/Moved to [VimEverywhere](https://github.com/LintaoAmons/VimEverywhere)\n"
  },
  {
    "path": "hammerspoon/.gitignore",
    "content": "# Compiled Lua sources\nluac.out\n\n# luarocks build files\n*.src.rock\n*.zip\n*.tar.gz\n\n# Object files\n*.o\n*.os\n*.ko\n*.obj\n*.elf\n\n# Precompiled Headers\n*.gch\n*.pch\n\n# Libraries\n*.lib\n*.a\n*.la\n*.lo\n*.def\n*.exp\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n*.i*86\n*.x86_64\n*.hex\n\n\n.local-history"
  },
  {
    "path": "hammerspoon/.hammerspoon/LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/Spoons/ReloadConfiguration.spoon/docs.json",
    "content": "[\n  {\n    \"Command\": [],\n    \"Constant\": [],\n    \"Constructor\": [],\n    \"Deprecated\": [],\n    \"Field\": [],\n    \"Function\": [],\n    \"Method\": [\n      {\n        \"def\": \"ReloadConfiguration:bindHotkeys(mapping)\",\n        \"desc\": \"Binds hotkeys for ReloadConfiguration\",\n        \"doc\": \"Binds hotkeys for ReloadConfiguration\\n\\nParameters:\\n * mapping - A table containing hotkey modifier/key details for the following items:\\n  * reloadConfiguration - This will cause the configuration to be reloaded\",\n        \"name\": \"bindHotkeys\",\n        \"parameters\": [\n          \" * mapping - A table containing hotkey modifier/key details for the following items:\",\n          \"  * reloadConfiguration - This will cause the configuration to be reloaded\"\n        ],\n        \"signature\": \"ReloadConfiguration:bindHotkeys(mapping)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"ReloadConfiguration:start()\",\n        \"desc\": \"Start ReloadConfiguration\",\n        \"doc\": \"Start ReloadConfiguration\\n\\nParameters:\\n * None\",\n        \"name\": \"start\",\n        \"parameters\": [\n          \" * None\"\n        ],\n        \"signature\": \"ReloadConfiguration:start()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      }\n    ],\n    \"Variable\": [\n      {\n        \"def\": \"ReloadConfiguration.watch_paths\",\n        \"desc\": \"List of directories to watch for changes, defaults to hs.configdir\",\n        \"doc\": \"List of directories to watch for changes, defaults to hs.configdir\",\n        \"name\": \"watch_paths\",\n        \"signature\": \"ReloadConfiguration.watch_paths\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Variable\"\n      }\n    ],\n    \"desc\": \"Adds a hotkey to reload the hammerspoon configuration, and a pathwatcher to automatically reload on changes.\",\n    \"doc\": \"Adds a hotkey to reload the hammerspoon configuration, and a pathwatcher to automatically reload on changes.\\n\\nDownload: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip)\",\n    \"items\": [\n      {\n        \"def\": \"ReloadConfiguration:bindHotkeys(mapping)\",\n        \"desc\": \"Binds hotkeys for ReloadConfiguration\",\n        \"doc\": \"Binds hotkeys for ReloadConfiguration\\n\\nParameters:\\n * mapping - A table containing hotkey modifier/key details for the following items:\\n  * reloadConfiguration - This will cause the configuration to be reloaded\",\n        \"name\": \"bindHotkeys\",\n        \"parameters\": [\n          \" * mapping - A table containing hotkey modifier/key details for the following items:\",\n          \"  * reloadConfiguration - This will cause the configuration to be reloaded\"\n        ],\n        \"signature\": \"ReloadConfiguration:bindHotkeys(mapping)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"ReloadConfiguration:start()\",\n        \"desc\": \"Start ReloadConfiguration\",\n        \"doc\": \"Start ReloadConfiguration\\n\\nParameters:\\n * None\",\n        \"name\": \"start\",\n        \"parameters\": [\n          \" * None\"\n        ],\n        \"signature\": \"ReloadConfiguration:start()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"ReloadConfiguration.watch_paths\",\n        \"desc\": \"List of directories to watch for changes, defaults to hs.configdir\",\n        \"doc\": \"List of directories to watch for changes, defaults to hs.configdir\",\n        \"name\": \"watch_paths\",\n        \"signature\": \"ReloadConfiguration.watch_paths\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Variable\"\n      }\n    ],\n    \"name\": \"ReloadConfiguration\",\n    \"stripped_doc\": \"\\nDownload: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip)\",\n    \"submodules\": [],\n    \"type\": \"Module\"\n  }\n]"
  },
  {
    "path": "hammerspoon/.hammerspoon/Spoons/ReloadConfiguration.spoon/init.lua",
    "content": "--- === ReloadConfiguration ===\n---\n--- Adds a hotkey to reload the hammerspoon configuration, and a pathwatcher to automatically reload on changes.\n---\n--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip)\n\nlocal obj = {}\nobj.__index = obj\n\n-- Metadata\nobj.name = \"ReloadConfiguration\"\nobj.version = \"1.0\"\nobj.author = \"Jon Lorusso <jonlorusso@gmail.com>\"\nobj.homepage = \"https://github.com/Hammerspoon/Spoons\"\nobj.license = \"MIT - https://opensource.org/licenses/MIT\"\n\n\n--- ReloadConfiguration.watch_paths\n--- Variable\n--- List of directories to watch for changes, defaults to hs.configdir\nobj.watch_paths = { hs.configdir }\n\n--- ReloadConfiguration:bindHotkeys(mapping)\n--- Method\n--- Binds hotkeys for ReloadConfiguration\n---\n--- Parameters:\n---  * mapping - A table containing hotkey modifier/key details for the following items:\n---   * reloadConfiguration - This will cause the configuration to be reloaded\nfunction obj:bindHotkeys(mapping)\n   local def = { reloadConfiguration = hs.fnutils.partial(hs.reload, self) }\n   hs.spoons.bindHotkeysToSpec(def, mapping)\nend\n\n--- ReloadConfiguration:start()\n--- Method\n--- Start ReloadConfiguration\n---\n--- Parameters:\n---  * None\nfunction obj:start()\n    self.watchers = {}\n    for _,dir in pairs(self.watch_paths) do\n        self.watchers[dir] = hs.pathwatcher.new(dir, hs.reload):start()\n    end\n    return self\nend\n\nreturn obj\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/Spoons/WinWin.spoon/docs.json",
    "content": "[\n  {\n    \"Command\": [],\n    \"Constant\": [],\n    \"Constructor\": [],\n    \"Deprecated\": [],\n    \"Field\": [],\n    \"Function\": [],\n    \"Method\": [\n      {\n        \"def\": \"WinWin:centerCursor()\",\n        \"desc\": \"Center the cursor on the focused window.\",\n        \"doc\": \"Center the cursor on the focused window.\\n\",\n        \"name\": \"centerCursor\",\n        \"signature\": \"WinWin:centerCursor()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:moveAndResize(option)\",\n        \"desc\": \"Move and resize the focused window.\",\n        \"doc\": \"Move and resize the focused window.\\n\\nParameters:\\n * option - A string specifying the option, valid strings are: `halfleft`, `halfright`, `halfup`, `halfdown`, `cornerNW`, `cornerSW`, `cornerNE`, `cornerSE`, `center`, `fullscreen`, `maximize`, `minimize`, `expand`, `shrink`.\",\n        \"name\": \"moveAndResize\",\n        \"parameters\": [\n          \" * option - A string specifying the option, valid strings are: `halfleft`, `halfright`, `halfup`, `halfdown`, `cornerNW`, `cornerSW`, `cornerNE`, `cornerSE`, `center`, `fullscreen`, `maximize`, `minimize`, `expand`, `shrink`.\"\n        ],\n        \"signature\": \"WinWin:moveAndResize(option)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:moveToScreen(direction)\",\n        \"desc\": \"Move the focused window between all of the screens in the `direction`.\",\n        \"doc\": \"Move the focused window between all of the screens in the `direction`.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`, `next`.\",\n        \"name\": \"moveToScreen\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`, `next`.\"\n        ],\n        \"signature\": \"WinWin:moveToScreen(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:stepMove(direction)\",\n        \"desc\": \"Move the focused window in the `direction` by on step. The step scale equals to the width/height of one gridpart.\",\n        \"doc\": \"Move the focused window in the `direction` by on step. The step scale equals to the width/height of one gridpart.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\",\n        \"name\": \"stepMove\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\"\n        ],\n        \"signature\": \"WinWin:stepMove(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:stepResize(direction)\",\n        \"desc\": \"Resize the focused window in the `direction` by on step.\",\n        \"doc\": \"Resize the focused window in the `direction` by on step.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\",\n        \"name\": \"stepResize\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\"\n        ],\n        \"signature\": \"WinWin:stepResize(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:undo()\",\n        \"desc\": \"Undo the last window manipulation. Only those \\\"moveAndResize\\\" manipulations can be undone.\",\n        \"doc\": \"Undo the last window manipulation. Only those \\\"moveAndResize\\\" manipulations can be undone.\\n\",\n        \"name\": \"undo\",\n        \"signature\": \"WinWin:undo()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      }\n    ],\n    \"Variable\": [\n      {\n        \"def\": \"WinWin.gridparts\",\n        \"desc\": \"An integer specifying how many gridparts the screen should be divided into. Defaults to 30.\",\n        \"doc\": \"An integer specifying how many gridparts the screen should be divided into. Defaults to 30.\",\n        \"name\": \"gridparts\",\n        \"signature\": \"WinWin.gridparts\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Variable\"\n      }\n    ],\n    \"desc\": \"Windows manipulation\",\n    \"doc\": \"Windows manipulation\\n\\nDownload: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip)\",\n    \"items\": [\n      {\n        \"def\": \"WinWin:centerCursor()\",\n        \"desc\": \"Center the cursor on the focused window.\",\n        \"doc\": \"Center the cursor on the focused window.\\n\",\n        \"name\": \"centerCursor\",\n        \"signature\": \"WinWin:centerCursor()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin.gridparts\",\n        \"desc\": \"An integer specifying how many gridparts the screen should be divided into. Defaults to 30.\",\n        \"doc\": \"An integer specifying how many gridparts the screen should be divided into. Defaults to 30.\",\n        \"name\": \"gridparts\",\n        \"signature\": \"WinWin.gridparts\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Variable\"\n      },\n      {\n        \"def\": \"WinWin:moveAndResize(option)\",\n        \"desc\": \"Move and resize the focused window.\",\n        \"doc\": \"Move and resize the focused window.\\n\\nParameters:\\n * option - A string specifying the option, valid strings are: `halfleft`, `halfright`, `halfup`, `halfdown`, `cornerNW`, `cornerSW`, `cornerNE`, `cornerSE`, `center`, `fullscreen`, `maximize`, `minimize`, `expand`, `shrink`.\",\n        \"name\": \"moveAndResize\",\n        \"parameters\": [\n          \" * option - A string specifying the option, valid strings are: `halfleft`, `halfright`, `halfup`, `halfdown`, `cornerNW`, `cornerSW`, `cornerNE`, `cornerSE`, `center`, `fullscreen`, `maximize`, `minimize`, `expand`, `shrink`.\"\n        ],\n        \"signature\": \"WinWin:moveAndResize(option)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:moveToScreen(direction)\",\n        \"desc\": \"Move the focused window between all of the screens in the `direction`.\",\n        \"doc\": \"Move the focused window between all of the screens in the `direction`.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`, `next`.\",\n        \"name\": \"moveToScreen\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`, `next`.\"\n        ],\n        \"signature\": \"WinWin:moveToScreen(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:stepMove(direction)\",\n        \"desc\": \"Move the focused window in the `direction` by on step. The step scale equals to the width/height of one gridpart.\",\n        \"doc\": \"Move the focused window in the `direction` by on step. The step scale equals to the width/height of one gridpart.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\",\n        \"name\": \"stepMove\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\"\n        ],\n        \"signature\": \"WinWin:stepMove(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:stepResize(direction)\",\n        \"desc\": \"Resize the focused window in the `direction` by on step.\",\n        \"doc\": \"Resize the focused window in the `direction` by on step.\\n\\nParameters:\\n * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\",\n        \"name\": \"stepResize\",\n        \"parameters\": [\n          \" * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\"\n        ],\n        \"signature\": \"WinWin:stepResize(direction)\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      },\n      {\n        \"def\": \"WinWin:undo()\",\n        \"desc\": \"Undo the last window manipulation. Only those \\\"moveAndResize\\\" manipulations can be undone.\",\n        \"doc\": \"Undo the last window manipulation. Only those \\\"moveAndResize\\\" manipulations can be undone.\\n\",\n        \"name\": \"undo\",\n        \"signature\": \"WinWin:undo()\",\n        \"stripped_doc\": \"\",\n        \"type\": \"Method\"\n      }\n    ],\n    \"name\": \"WinWin\",\n    \"stripped_doc\": \"\\nDownload: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip)\",\n    \"submodules\": [],\n    \"type\": \"Module\"\n  }\n]"
  },
  {
    "path": "hammerspoon/.hammerspoon/Spoons/WinWin.spoon/init.lua",
    "content": "--- === WinWin ===\n---\n--- Windows manipulation\n---\n--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WinWin.spoon.zip)\nlocal obj = {}\nobj.__index = obj\n\n-- Metadata\nobj.name = \"WinWin\"\nobj.version = \"1.0\"\nobj.author = \"ashfinal <ashfinal@gmail.com>\"\nobj.homepage = \"https://github.com/Hammerspoon/Spoons\"\nobj.license = \"MIT - https://opensource.org/licenses/MIT\"\n\n-- Windows manipulation history. Only the last operation is stored.\nobj.history = {}\n\n--- WinWin.gridparts\n--- Variable\n--- An integer specifying how many gridparts the screen should be divided into. Defaults to 30.\nobj.gridparts = 30\n\n--- WinWin:stepMove(direction)\n--- Method\n--- Move the focused window in the `direction` by on step. The step scale equals to the width/height of one gridpart.\n---\n--- Parameters:\n---  * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\nfunction obj:stepMove(direction)\n    local cwin = hs.window.focusedWindow()\n    if cwin then\n        local cscreen = cwin:screen()\n        local cres = cscreen:frame()\n        local stepw = cres.w / obj.gridparts\n        local steph = cres.h / obj.gridparts\n        local wtopleft = cwin:topLeft()\n        if direction == \"left\" then\n            cwin:setTopLeft({\n                x = wtopleft.x - stepw,\n                y = wtopleft.y\n            })\n        elseif direction == \"right\" then\n            cwin:setTopLeft({\n                x = wtopleft.x + stepw,\n                y = wtopleft.y\n            })\n        elseif direction == \"up\" then\n            cwin:setTopLeft({\n                x = wtopleft.x,\n                y = wtopleft.y - steph\n            })\n        elseif direction == \"down\" then\n            cwin:setTopLeft({\n                x = wtopleft.x,\n                y = wtopleft.y + steph\n            })\n        else\n            hs.alert.show(\"Unknown direction: \" .. direction)\n        end\n    else\n        hs.alert.show(\"No focused window!\")\n    end\nend\n\n--- WinWin:stepResize(direction)\n--- Method\n--- Resize the focused window in the `direction` by on step.\n---\n--- Parameters:\n---  * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`.\nfunction obj:stepResize(direction)\n    local cwin = hs.window.focusedWindow()\n    if cwin then\n        local cscreen = cwin:screen()\n        local cres = cscreen:frame()\n        local stepw = cres.w / obj.gridparts\n        local steph = cres.h / obj.gridparts\n        local wsize = cwin:size()\n        if direction == \"left\" then\n            cwin:setSize({\n                w = wsize.w - stepw,\n                h = wsize.h\n            })\n        elseif direction == \"right\" then\n            cwin:setSize({\n                w = wsize.w + stepw,\n                h = wsize.h\n            })\n        elseif direction == \"up\" then\n            cwin:setSize({\n                w = wsize.w,\n                h = wsize.h - steph\n            })\n        elseif direction == \"down\" then\n            cwin:setSize({\n                w = wsize.w,\n                h = wsize.h + steph\n            })\n        else\n            hs.alert.show(\"Unknown direction: \" .. direction)\n        end\n    else\n        hs.alert.show(\"No focused window!\")\n    end\nend\n\nlocal function windowStash(window)\n    local winid = window:id()\n    local winf = window:frame()\n    if #obj.history > 50 then\n        -- Make sure the history doesn't reach the maximum (50 items).\n        table.remove(obj.history) -- Remove the last item\n    end\n    local winstru = {winid, winf}\n    table.insert(obj.history, winstru) -- Insert new item of window history\nend\n\n--- WinWin:moveAndResize(option)\n--- Method\n--- Move and resize the focused window.\n---\n--- Parameters:\n---  * option - A string specifying the option, valid strings are: \n--- `halfleft`, `halfright`, `halfup`, `halfdown`, `cornerNW`, `cornerSW`, `cornerNE`, `cornerSE`, `center`, `fullscreen`, `maximize`, `minimize`, `expand`, `shrink`.\nfunction obj:moveAndResize(option)\n    local cwin = hs.window.focusedWindow()\n    if cwin then\n        local cscreen = cwin:screen()\n        local cres = cscreen:frame()\n        local stepw = cres.w / obj.gridparts\n        local steph = cres.h / obj.gridparts\n        local wf = cwin:frame()\n        options = {\n            halfleft = function()\n                cwin:setFrame({\n                    x = cres.x,\n                    y = cres.y,\n                    w = cres.w / 2,\n                    h = cres.h\n                })\n            end,\n            halfright = function()\n                cwin:setFrame({\n                    x = cres.x + cres.w / 2,\n                    y = cres.y,\n                    w = cres.w / 2,\n                    h = cres.h\n                })\n            end,\n            halfup = function()\n                cwin:setFrame({\n                    x = cres.x,\n                    y = cres.y,\n                    w = cres.w,\n                    h = cres.h / 2\n                })\n            end,\n            halfdown = function()\n                cwin:setFrame({\n                    x = cres.x,\n                    y = cres.y + cres.h / 2,\n                    w = cres.w,\n                    h = cres.h / 2\n                })\n            end,\n            cornerNW = function()\n                cwin:setFrame({\n                    x = cres.x,\n                    y = cres.y,\n                    w = cres.w / 2,\n                    h = cres.h / 2\n                })\n            end,\n            cornerNE = function()\n                cwin:setFrame({\n                    x = cres.x + cres.w / 2,\n                    y = cres.y,\n                    w = cres.w / 2,\n                    h = cres.h / 2\n                })\n            end,\n            cornerSW = function()\n                cwin:setFrame({\n                    x = cres.x,\n                    y = cres.y + cres.h / 2,\n                    w = cres.w / 2,\n                    h = cres.h / 2\n                })\n            end,\n            cornerSE = function()\n                cwin:setFrame({\n                    x = cres.x + cres.w / 2,\n                    y = cres.y + cres.h / 2,\n                    w = cres.w / 2,\n                    h = cres.h / 2\n                })\n            end,\n            fullscreen = function()\n                cwin:setFullScreen(true)\n            end,\n            maximize = function()\n                cwin:maximize()\n            end,\n            minimize = function()\n                cwin:minimize()\n            end,\n            center = function()\n                cwin:centerOnScreen()\n            end,\n            expand = function()\n                cwin:setFrame({\n                    x = wf.x - stepw,\n                    y = wf.y - steph,\n                    w = wf.w + (stepw * 2),\n                    h = wf.h + (steph * 2)\n                })\n            end,\n            shrink = function()\n                cwin:setFrame({\n                    x = wf.x + stepw,\n                    y = wf.y + steph,\n                    w = wf.w - (stepw * 2),\n                    h = wf.h - (steph * 2)\n                })\n            end\n        }\n        if options[option] == nil then\n            hs.alert.show(\"Unknown option: \" .. option)\n        else\n            -- if the window is fullscreen, and that's not what the user wants,\n            -- toggle fullscreen off before proceeding\n            if option ~= \"fullscreen\" and cwin:isFullScreen() then\n                cwin:setFullScreen(false)\n                -- a sleep is required to let the window manager register the new state,\n                -- otherwise the follow-up minimize() call doesn't work\n                hs.timer.usleep(999999)\n            end\n            windowStash(cwin)\n            options[option]()\n        end\n    else\n        hs.alert.show(\"No focused window!\")\n    end\nend\n\n--- WinWin:moveToScreen(direction)\n--- Method\n--- Move the focused window between all of the screens in the `direction`.\n---\n--- Parameters:\n---  * direction - A string specifying the direction, valid strings are: `left`, `right`, `up`, `down`, `next`.\nfunction obj:moveToScreen(direction)\n    local cwin = hs.window.focusedWindow()\n    if cwin then\n        local cscreen = cwin:screen()\n        if direction == \"up\" then\n            cwin:moveOneScreenNorth()\n        elseif direction == \"down\" then\n            cwin:moveOneScreenSouth()\n        elseif direction == \"left\" then\n            cwin:moveOneScreenWest()\n        elseif direction == \"right\" then\n            cwin:moveOneScreenEast()\n        elseif direction == \"next\" then\n            cwin:moveToScreen(cscreen:next())\n        else\n            hs.alert.show(\"Unknown direction: \" .. direction)\n        end\n    else\n        hs.alert.show(\"No focused window!\")\n    end\nend\n\n--- WinWin:undo()\n--- Method\n--- Undo the last window manipulation. Only those \"moveAndResize\" manipulations can be undone.\n---\nfunction obj:undo()\n    local cwin = hs.window.focusedWindow()\n    local cwinid = cwin:id()\n    for idx, val in ipairs(obj.history) do\n        -- Has this window been stored previously?\n        if val[1] == cwinid then\n            cwin:setFrame(val[2])\n        end\n    end\nend\n\n--- WinWin:centerCursor()\n--- Method\n--- Center the cursor on the focused window.\n---\nfunction obj:centerCursor()\n    local cwin = hs.window.focusedWindow()\n    local wf = cwin:frame()\n    local cscreen = cwin:screen()\n    local cres = cscreen:frame()\n    if cwin then\n        -- Center the cursor one the focused window\n        hs.mouse.setAbsolutePosition({\n            x = wf.x + wf.w / 2,\n            y = wf.y + wf.h / 2\n        })\n    else\n        -- Center the cursor on the screen\n        hs.mouse.setAbsolutePosition({\n            x = cres.x + cres.w / 2,\n            y = cres.y + cres.h / 2\n        })\n    end\nend\n\nreturn obj\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/countdown.lua",
    "content": "local remindTimer = nil\nlocal sound = hs.sound.getByName(\"Glass\")\n\nfunction remindUser()\n    hs.alert.show(\"Time is up!\", 5)\n    sound:play()\n\n    remindTimer = nil -- set timer object to nil so that it can be restarted later\nend\n\nfunction parseTime(input)\n    local totalSeconds = 0\n    for value, unit in input:gmatch(\"(%d+)([smh]?)\") do\n        value = tonumber(value)\n        if unit == \"s\" or unit == \"\" then\n            totalSeconds = totalSeconds + value\n        elseif unit == \"m\" then\n            totalSeconds = totalSeconds + value * 60\n        elseif unit == \"h\" then\n            totalSeconds = totalSeconds + value * 60 * 60\n        end\n    end\n    return totalSeconds\nend\n\nfunction startRemindTimer()\n    -- Ask the user for input\n    local ok, result = hs.dialog.textPrompt(\"Remind Timer\", \"Enter the time (e.g. 5s, 10m, 1h, 1h3m4s):\", \"20m\")\n\n    if ok then\n        -- Parse the user input\n        local time = parseTime(result)\n\n        if time ~= nil then\n            -- Start the timer\n            remindTimer = hs.timer.doAfter(time, remindUser)\n\n            -- Wait for 300ms before focusing on the popup window\n            hs.timer.doAfter(0.3, function()\n                local dialogWindow = hs.window.find(\"Remind Timer\")\n                if dialogWindow then\n                    dialogWindow:focus()\n                end\n            end)\n        else\n            hs.alert.show(\"Invalid input, please enter a time in the format of 5s, 10m, or 1h3m4s.\")\n        end\n    end\nend\n\nfunction stopRemindTimer()\n    if remindTimer ~= nil then\n        remindTimer:stop()\n        hs.notify.new({\n            title = \"Reminder\",\n            informativeText = \"Timer Cancelled\",\n            soundName = \"Glass\"\n        }):send()\n        remindTimer = nil\n    else\n        hs.notify.new({\n            title = \"Reminder\",\n            informativeText = \"No Timer to cancel\",\n            soundName = \"Glass\"\n        }):send()\n    end\nend\n\nfunction formatTime(seconds)\n    local hours = math.floor(seconds / 3600)\n    local minutes = math.floor(seconds / 60 % 60)\n    local remainingSeconds = math.floor(seconds % 60)\n\n    local timeString = \"\"\n    if hours > 0 then\n        return tostring(hours) .. \" hour\" .. (hours > 1 and \"s\" or \"\") .. \" \" .. tostring(minutes) .. \" minute\" ..\n                   (minutes > 1 and \"s\" or \"\") .. \" \" .. tostring(remainingSeconds) .. \" second\" ..\n                   (remainingSeconds ~= 1 and \"s\" or \"\")\n    end\n\n    if minutes > 0 then\n        return tostring(minutes) .. \" minute\" .. (minutes > 1 and \"s\" or \"\") .. \" \" .. tostring(remainingSeconds) ..\n                   \" second\" .. (remainingSeconds ~= 1 and \"s\" or \"\")\n    end\n\n    return tostring(remainingSeconds) .. \" second\" .. (remainingSeconds ~= 1 and \"s\" or \"\")\nend\n\nfunction getRemainTime()\n    if remindTimer ~= nil then\n        local remainTime = remindTimer:nextTrigger()\n        local timeString = formatTime(remainTime)\n        hs.alert.show(\"Remaining time: \" .. timeString)\n        sound:play()\n    else\n        hs.alert.show(\"No timer is running\")\n    end\nend\n\nlocal hyperKey = { \"shift\", \"alt\", \"ctrl\", \"cmd\" }\nfunction showCurrentTime()\n\tlocal prettyNow = os.date(\"%A              📅%B %d %Y              🕐%I:%M:%S %p\")\n\ths.alert.show(prettyNow, hs.alert.defaultStyle, hs.screen.mainScreen(), 1.5)\nend\n\nhs.hotkey.bind(hyperKey, \"T\", showCurrentTime)\n\n-- Set a hotkey to get the remaining time of the timer\nhs.hotkey.bind({\"cmd\", \"ctrl\", \"alt\"}, \"R\", getRemainTime)\n\n-- Set a hotkey to start the timer\nhs.hotkey.bind({\"cmd\", \"ctrl\", \"alt\"}, \"T\", startRemindTimer)\n\n-- Set a hotkey to stop the timer\nhs.hotkey.bind({\"cmd\", \"ctrl\", \"alt\"}, \"S\", stopRemindTimer)\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/init.lua",
    "content": "require(\"windows\")\n-- require('scenarioShortcuts')\nrequire(\"countdown\")\nrequire(\"switch-app\")\n\nhs.loadSpoon(\"ReloadConfiguration\")\nspoon.ReloadConfiguration:start()\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/scenarioShortcuts.lua",
    "content": "local hyperKey = { \"shift\", \"alt\", \"ctrl\", \"cmd\" }\n\nlocal function remap(mods, key, pressFn)\n\treturn hs.hotkey.bind(mods, key, pressFn, nil, pressFn)\nend\n\nfunction showFocusAlert(content)\n\ths.alert.show(content, hs.alert.defaultStyle, hs.screen.mainScreen(), 0.5)\nend\n\nlocal hyperKey = { \"shift\", \"alt\", \"ctrl\", \"cmd\" }\nfunction showCurrentTime()\n\tlocal prettyNow = os.date(\"%A              📅%B %d %Y              🕐%I:%M:%S %p\")\n\ths.alert.show(prettyNow, hs.alert.defaultStyle, hs.screen.mainScreen(), 1.5)\nend\n\nremap(hyperKey, \"t\", showCurrentTime)\n\nlocal function keyStroke(mods, key)\n\tif key == nil then\n\t\tkey = mods\n\t\tmods = {}\n\tend\n\n\treturn function()\n\t\ths.eventtap.keyStroke(mods, key, 1000)\n\tend\nend\n\n-- TODO 变成接受两个变量（from, to），变量的类型是 {keycode，mods}\nfunction tmuxCmdCtrlToPrefix(fromKey, mods, toKey)\n\tif mods == nil then\n\t\tmods = {}\n\tend\n\n\tif toKey == nil then\n\t\ttoKey = fromKey\n\tend\n\n\treturn remap({ \"cmd\", \"ctrl\" }, fromKey, function()\n\t\ths.eventtap.keyStroke({ \"ctrl\" }, \"b\", 1000)\n\t\ths.timer.doAfter(0.2, function()\n\t\t\ths.eventtap.keyStroke(mods, toKey)\n\t\tend)\n\tend)\nend\n\nfunction tmuxHyperToPrefix(key)\n\treturn remap(hyperKey, key, function()\n\t\ths.eventtap.keyStroke({ \"ctrl\" }, \"b\", 1000)\n\t\ths.timer.doAfter(0.2, function()\n\t\t\ths.eventtap.keyStroke({}, key)\n\t\tend)\n\tend)\nend\n\nfunction tmuxSwitchWindow(windowNumber)\n\treturn tmuxHyperToPrefix(windowNumber)\nend\n\nfunction terminalCommand(key, cmd)\n\treturn remap({ \"cmd\", \"ctrl\" }, key, function()\n\t\ths.eventtap.keyStrokes(cmd)\n\t\ths.timer.doAfter(0.2, function()\n\t\t\ths.eventtap.keyStroke({}, \"return\", 1000)\n\t\tend)\n\tend)\nend\n\nlocal allScenarios = {\n\teverEnable = \"everEnable\",\n\tfirefox = \"firefox\",\n\tterminal = \"terminal\",\n\tjoplin = \"joplin\",\n}\n\nlocal scenarioShortcuts = {\n\t[allScenarios.everEnable] = {\n\t\ttoggleKeyboardCursor = remap(hyperKey, \"c\", keyStroke({ \"alt\", \"cmd\" }, \"c\")),\n\t},\n\t[allScenarios.firefox] = {\n\t\tnextTab = remap({ \"cmd\", \"ctrl\" }, \"l\", keyStroke({ \"ctrl\" }, \"tab\")),\n\t\tprevTab = remap({ \"cmd\", \"ctrl\" }, \"h\", keyStroke({ \"ctrl\", \"shift\" }, \"tab\")),\n\t},\n\t[allScenarios.terminal] = {\n\t\tshowAllSessionWindowPane = tmuxCmdCtrlToPrefix(\"i\", { }, \"w\"),\n\t\t-- tmux::session\n\t\tpreviousSession = tmuxCmdCtrlToPrefix(\"[\", { \"shift\" }, \"9\"),\n\t\tnextSession = tmuxCmdCtrlToPrefix(\"]\", { \"shift\" }, \"0\"),\n\t\t-- tmux::pane\n\t\tpaneRight = tmuxCmdCtrlToPrefix(\"l\"),\n\t\tpaneLeft = tmuxCmdCtrlToPrefix(\"h\"),\n\t\tpaneUp = tmuxCmdCtrlToPrefix(\"k\"),\n\t\tpaneDown = tmuxCmdCtrlToPrefix(\"j\"),\n\t\tswitchToNextPane = tmuxCmdCtrlToPrefix(\"o\", {}, \"z\"),\n\t\tmaximizePane = tmuxCmdCtrlToPrefix(\"o\", {}, \"z\"),\n\n\t\tswitchToWindow1 = tmuxHyperToPrefix(\"1\"),\n\t\tswitchToWindow2 = tmuxHyperToPrefix(\"2\"),\n\t\tswitchToWindow3 = tmuxHyperToPrefix(\"3\"),\n\t\tswitchToWindow4 = tmuxHyperToPrefix(\"4\"),\n\t\tclosePane = tmuxHyperToPrefix(\"x\"),\n\t},\n\t[allScenarios.joplin] = {},\n}\n\nlocal function enableScenarioShortcuts(scenario)\n\tfor _, value in pairs(scenarioShortcuts[scenario]) do\n\t\tvalue:enable()\n\tend\nend\n\nlocal function disableScenarioShortcuts(scenario)\n\tfor _, value in pairs(scenarioShortcuts[scenario]) do\n\t\tvalue:disable()\n\tend\nend\n\nlocal function isInTable(table, value)\n\tfor k, v in pairs(table) do\n\t\tif v == value then\n\t\t\treturn true\n\t\tend\n\tend\n\treturn false\nend\n\nlocal function enableAndDisableScenarios(scenarios)\n\tscenarios = scenarios or {}\n\tfor _, value in pairs(allScenarios) do\n\t\tif isInTable(scenarios, value) then\n\t\t\tenableScenarioShortcuts(value)\n\t\telse\n\t\t\tdisableScenarioShortcuts(value)\n\t\tend\n\tend\nend\n\nfunction applicationWatcher(appName, eventType, appObject)\n\tif eventType == hs.application.watcher.activated then\n\t\t-- 初始化senarioShortcuts\n\t\tif appName == \"Finder\" then\n\t\t\t-- Bring all Finder windows forward when one gets activated\n\t\t\tappObject:selectMenuItem({ \"Window\", \"Bring All to Front\" })\n\t\tend\n\t\tif appName == \"Alacritty\" then\n\t\t\tshowFocusAlert(\"TERMINAL\")\n\t\t\tenableAndDisableScenarios({ allScenarios.terminal, allScenarios.everEnable })\n\t\tend\n\t\tif appName == \"IntelliJ IDEA\" then\n\t\t\tshowFocusAlert(\"IDEA\")\n\t\t\tenableAndDisableScenarios({ allScenarios.everEnable })\n\t\tend\n\t\tif appName == \"Firefox\" then\n\t\t\tshowFocusAlert(\"FIREFOX\")\n\t\t\tenableAndDisableScenarios({ allScenarios.firefox, allScenarios.everEnable })\n\t\tend\n\t\tif appName == \"Joplin\" then\n\t\t\tshowFocusAlert(\"JOPLIN\")\n\t\t\tenableAndDisableScenarios({ allScenarios.joplin, allScenarios.everEnable })\n\t\tend\n\tend\nend\n\nappWatcher = hs.application.watcher.new(applicationWatcher)\nappWatcher:start()\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/switch-app.lua",
    "content": "-- Define the keyboard shortcut to switch to Chrome\nlocal hyperKey = { \"shift\", \"alt\", \"ctrl\", \"cmd\" }\nlocal shortcuts = {\n\t[\"Google Chat.app\"] = \"g\",\n\t[\"Google Chrome.app\"] = \"f\",\n\t[\"Obsidian\"] = \"j\",\n\t[\"wezTerm\"] = \"k\",\n\t[\"Finder\"] = \"l\",\n\t[\"Intellij IDEA\"] = \"i\",\n\t[\"Arc\"] = \"o\",\n\t[\"Excalidraw.app\"] = \"n\",\n\t[\"Visual Studio Code\"] = \"m\", -- this is Visual Studio Code\n}\n\nlocal function switchTo(appName)\n\tlocal appRunning = hs.application.get(appName)\n\n\tif appRunning then\n\t\t-- If App is running, activate it\n\t\tappRunning:activate()\n\telse\n\t\t-- If App is not running, launch it\n\t\ths.application.launchOrFocus(appName)\n\tend\nend\n\nfor appName, shortcut in pairs(shortcuts) do\n\ths.hotkey\n\t\t.new(hyperKey, shortcut, function()\n\t\t\tswitchTo(appName)\n\t\tend)\n\t\t:enable()\nend\n"
  },
  {
    "path": "hammerspoon/.hammerspoon/windows.lua",
    "content": "local hyperKey = { \"shift\", \"alt\", \"ctrl\", \"cmd\" }\n\nhs.hotkey.bind(hyperKey, \"a\", function()\n\ths.window.focusedWindow():moveToUnit({ 0, 0, 0.5, 1 })\nend)\nhs.hotkey.bind(hyperKey, \"d\", function()\n\ths.window.focusedWindow():moveToUnit({ 0.5, 0, 0.5, 1 })\nend)\nhs.hotkey.bind(hyperKey, \"w\", function()\n\ths.window.focusedWindow():moveToUnit({ 0, 0, 1, 0.5 })\nend)\nhs.hotkey.bind(hyperKey, \"s\", function()\n\ths.window.focusedWindow():moveToUnit({ 0, 0.5, 1, 0.5 })\nend)\n\n-- full screen\nhs.hotkey.bind(hyperKey, \"z\", function()\n\ths.window.focusedWindow():moveToUnit({ 0, 0, 1, 1 })\nend)\n\n-- move to another screen\nhs.hotkey.bind(hyperKey, \"r\", function()\n\t-- get the focused window\n\tlocal win = hs.window.focusedWindow()\n\t-- get the screen where the focused window is displayed, a.k.a. current screen\n\tlocal screen = win:screen()\n\t-- compute the unitRect of the focused window relative to the current screen\n\t-- and move the window to the next screen setting the same unitRect\n\twin:move(win:frame():toUnitRect(screen:frame()), screen:next(), true, 0)\nend)\n\n-- Toggle a window between its normal size, and being maximized\nlocal function toggle_window_full_screen()\n\tlocal win = hs.window.focusedWindow()\n\tif win ~= nil then\n\t\twin:setFullScreen(not win:isFullScreen())\n\tend\nend\n\nhs.hotkey.bind(hyperKey, \"e\", toggle_window_full_screen)\n\n-- local switcher = hs.window.switcher.new(hs.window.filter.new():setCurrentSpace(true):setDefaultFilter({}))\n\n-- hs.hotkey.bind(hyperKey, \"m\", \"Next window\", function()\n-- \tswitcher:next()\n-- end)\n-- hs.hotkey.bind(hyperKey, \"n\", \"Previous window\", function()\n-- \tswitcher:previous()\n-- end)\n\n-- -- quarter of screen\n-- --[[\n--     u i\n--     j k\n-- --]]\n-- hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'u', function() hs.window.focusedWindow():moveToUnit({0, 0, 0.5, 0.5}) end)\n-- hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'k', function() hs.window.focusedWindow():moveToUnit({0.5, 0.5, 0.5, 0.5}) end)\n-- hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'i', function() hs.window.focusedWindow():moveToUnit({0.5, 0, 0.5, 0.5}) end)\n-- hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'j', function() hs.window.focusedWindow():moveToUnit({0, 0.5, 0.5, 0.5}) end)\n"
  },
  {
    "path": "hammerspoon/.luarc.json",
    "content": "{\n    \"$schema\": \"https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json\",\n    \"Lua.diagnostics.globals\": [\n        \"vim\",\n        \"describe\",\n        \"it\",\n        \"before_each\",\n        \"after_each\",\n        \"hs\"\n    ]\n}"
  },
  {
    "path": "ideavim/.ideavimrc",
    "content": "\" ================================================================================================\n\" = Extensions =====================================\n\" ================================================================================================\nPlug 'tpope/vim-surround'\nPlug 'preservim/nerdtree'\n\nPlug 'terryma/vim-multiple-cursors'\nmap <D-b> <A-n>\nmap mx <A-x>\nmap mv <A-p>\n\n\" ================================================================================================\n\" = Basic settings =====================================\n\" ================================================================================================\nset clipboard+=unnamed\nset ignorecase\nset scrolloff=30\nset history=200\n\nset number\nset relativenumber\n\nset incsearch\nset hlsearch\nset keep-english-in-normal\n\n\" ================================================================================================\n\" = No Leader Keymaps =====================================\n\" ================================================================================================\nnmap ge <action>(GotoNextError)\nnmap gt <action>(GotoTest)\nnmap gm <action>(MethodUp)\nnmap ga <action>(GotoImplementation)\nnmap go <action>(GotoTypeDeclaration)\n\n\" bookmark\nnmap mm <action>(ToggleBookmark)\nnmap ma mA\nnmap 'a 'A\n\nnmap L <action>(NextTab)\nnmap H <action>(PreviousTab)\n\n\n\" ================================================================================================\n\" = Leader Keymaps =====================================\n\" ================================================================================================\n\" leaderkey\nlet mapleader=\" \"\n\n\" ================================================================================================\n\" 👻👻👻 Which-Key 👻👻👻\n\" ================================================================================================\nset which-key\nset notimeout\n\n\" d: diff\nnmap <leader>dd <action>(Vcs.ShowTabbedFileHistory)\n\n\" f: Find/Format ⭐️\nlet g:WhichKeyDesc_FindOrFormat = \"<leader>f FindOrFormat\"\nlet g:WhichKeyDesc_FindOrFormat_FindFile = \"<leader>ff FindFile\"\nnmap <leader>ff <action>(GotoFile)\n\nlet g:WhichKeyDesc_FindOrFormat_FindFileLocation = \"<leader>fl FindFileLocation\"\nnmap <leader>fl <action>(SelectInProjectView)\n\nlet g:WhichKeyDesc_FindOrFormat_FindText = \"<leader>ft FindText\"\nnmap <leader>ft <action>(FindInPath)\n\nlet g:WhichKeyDesc_FindOrFormat_Commands = \"<leader>fc Commands\"\nnmap <leader>fc <action>(GotoAction)\n\nlet g:WhichKeyDesc_FindOrFormat_OpenedProject = \"<leader>fp OpenedProject\"\nnmap <leader>fp <action>(OpenProjectWindows)\n\nlet g:WhichKeyDesc_FindOrFormat_Format = \"<leader>fm Format\"\nnmap <leader>fm <action>(ReformatCode) \\| <action>(OptimizeImports)\n\n\" g: Git ⭐️\nlet g:WhichKeyDesc_Git = \"<leader>g Git\"\nlet g:WhichKeyDesc_Git_RollbackHunk = \"<leader>gr RollbackHunk\"\nnmap <leader>gr :action Vcs.RollbackChangedLines<CR>\n\n\" i: Insert ⭐️\nlet g:WhichKeyDesc_InsertAfterBrackets = \"<leader>i InsertAfterBrackets\"\nnmap <leader>i f(a\n\n\" j: add Semicolon and goto nextline⭐️\nlet g:WhichKeyDesc_InsertSemicolon = \"<leader>j InsertSemicolon\"\nnmap <leader>j A;<ESC>o\n\n\" l: lsp: Language server protocol (align with neovim)⭐️\nlet g:WhichKeyDesc_LSP = \"<leader>l LSP\"\nlet g:WhichKeyDesc_LSP_Rename = \"<leader>lr Rename\"\nnmap <leader>lr <action>(RenameElement)\n\n\n\" n: No ⭐️\nlet g:WhichKeyDesc_No_Highlight = \"<leader>nl NoHighlight\"\nnmap <leader>nl :nohlsearch<CR>\n\n\n\" s: Show ⭐️\nlet g:WhichKeyDesc_Show = \"<leader>s Show\"\nlet g:WhichKeyDesc_Show_FileStructure = \"<leader>ss ShowFileStructure\"\nnmap <leader>ss <action>(FileStructurePopup)\nlet g:WhichKeyDesc_Show_Bookmarks = \"<leader>sb ShowBookmarks\"\nnmap <leader>sb <action>(ShowBookmarks)\nlet g:WhichKeyDesc_Show_ParameterInfo = \"<leader>sb ShowParameterInfo\"\nnmap <leader>sp <action>(ParameterInfo)\n\n\" r: Run/Re ⭐️\nlet g:WhichKeyDesc_RunOrRe = \"<leader>r RunOrRe\"\nlet g:WhichKeyDesc_RunOrRe_ReRun = \"<leader>rr ReRun\"\nnmap <leader>rr <action>(Rerun)\nlet g:WhichKeyDesc_RunOrRe_ReRunTests = \"<leader>rt ReRunTests\"\nnmap <leader>rt <action>(RerunTests)\nlet g:WhichKeyDesc_RunOrRe_Rename = \"<leader>rn Rename\"\nmap <leader>rn <action>(RenameElement)\n\n\" w: Window ⭐️\nlet g:WhichKeyDesc_Windows = \"<leader>w Windows\"\nlet g:WhichKeyDesc_Windows_maximize = \"<leader>wo maximize\"\nnmap <leader>wo <action>(UnsplitAll) \\| <action>(HideAllWindows)\nlet g:WhichKeyDesc_Windows_splitWindowVertically = \"<leader>wl splitWindowVertically\"\nnmap <leader>wl <action>(Macro.SplitVertically)\nlet g:WhichKeyDesc_Windows_closeActiveWindow = \"<leader>wc closeActiveWindow\"\nnmap <leader>wc <c-w>c\n\n\" z: zip(fold) ⭐️\nlet g:WhichKeyDesc_Zip = \"<leader>z Zip\"\nlet g:WhichKeyDesc_Zip_unZipAll = \"<leader>zo unZipAll\"\nnmap <leader>zo <action>(ExpandAllRegions)\nlet g:WhichKeyDesc_Zip_ZipAll = \"<leader>zc ZipAll\"\nnmap <leader>zc <action>(CollapseAllRegions)\n\n\" c: Close ⭐️;\nlet g:WhichKeyDesc_CloseBuffer = \"<leader>c CloseBuffer\"\nnmap <leader>c :q!<CR>\n\n\" e: Toggle Explorer ⭐️\nlet g:WhichKeyDesc_ToggleExplorerOrExtract = \"<leader>e ToggleExplorer\"\nnmap <leader>e <action>(ActivateProjectToolWindow)\n\" e: Extract\n\" extract method/function\nvmap <leader>em <action>(ExtractMethod)\n\" extract constant\nvmap <leader>ec <action>(IntroduceConstant)\n\" extract field\nvmap <leader>ef <action>(IntroduceField)\n\" extract variable\nvmap <leader>ev <action>(IntroduceVariable)\n"
  },
  {
    "path": "karabiner/.config/karabiner/assets/complex_modifications/bring-back-grave-accent-and-tilde.json",
    "content": "{\n  \"title\": \"Bring back grave_accent_and_tilde back after ESC mapping\",\n  \"rules\": [\n    {\n      \"description\": \"R_Shift+ESC to Tilde\",\n      \"manipulators\": [\n        {\n          \"type\": \"basic\",\n          \"from\": {\n            \"key_code\": \"escape\",\n            \"modifiers\": {\n              \"mandatory\": \"right_shift\",\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"grave_accent_and_tilde\",\n              \"modifiers\": [\n                \"left_shift\"\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"description\": \"Super_key+ESC to grave accent\",\n      \"manipulators\": [\n        {\n          \"type\": \"basic\",\n          \"from\": {\n            \"key_code\": \"escape\",\n            \"modifiers\": {\n              \"mandatory\": [\n                \"left_shift\",\n                \"left_command\",\n                \"left_control\",\n                \"left_option\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"grave_accent_and_tilde\",\n              \"modifiers\": []\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n"
  },
  {
    "path": "karabiner/.config/karabiner/assets/complex_modifications/hyper-key.json",
    "content": "{\n  \"title\": \"RightCommand : (HYPER) SHIFT+COMMAND+OPTION+CONTROL\",\n  \"rules\": [\n    {\n      \"description\": \"RightCommand : (HYPER) SHIFT+COMMAND+OPTION+CONTROL\",\n      \"manipulators\": [\n        {\n          \"from\": {\n            \"key_code\": \"right_command\",\n            \"modifiers\": {\n              \"optional\": [\"any\"]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"left_shift\",\n              \"modifiers\": [\"left_command\", \"left_control\", \"left_option\"]\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,\",\n          \"from\": {\n            \"key_code\": \"comma\",\n            \"modifiers\": {\n              \"mandatory\": [\"command\", \"shift\", \"option\", \"control\"]\n            }\n          },\n          \"to\": [],\n          \"type\": \"basic\"\n        },\n        {\n          \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.\",\n          \"from\": {\n            \"key_code\": \"period\",\n            \"modifiers\": {\n              \"mandatory\": [\"command\", \"shift\", \"option\", \"control\"]\n            }\n          },\n          \"to\": [],\n          \"type\": \"basic\"\n        },\n        {\n          \"from\": {\n            \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/\",\n            \"key_code\": \"slash\",\n            \"modifiers\": {\n              \"mandatory\": [\"command\", \"shift\", \"option\", \"control\"]\n            }\n          },\n          \"to\": [],\n          \"type\": \"basic\"\n        }\n      ]\n    }\n  ]\n}\n"
  },
  {
    "path": "karabiner/.config/karabiner/assets/complex_modifications/switch-option-and-cmd-when-wezterm.json",
    "content": "{\n  \"title\": \"WezTerm switch option with cmd\",\n  \"rules\": [\n    {\n      \"description\": \"WezTerm Left Option to Cmd\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"bundle_identifiers\": [\"^com\\\\.github\\\\.wez\\\\.wezterm$\"],\n              \"type\": \"frontmost_application_if\"\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"left_option\",\n            \"modifiers\": {\n              \"optional\": [\"any\"]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"left_command\",\n              \"lazy\": true\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    },\n    {\n      \"description\": \"WezTerm Left Cmd to Option\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"bundle_identifiers\": [\"^com\\\\.github\\\\.wez\\\\.wezterm$\"],\n              \"type\": \"frontmost_application_if\"\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"left_command\",\n            \"modifiers\": {\n              \"optional\": [\"any\"]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"left_option\",\n              \"lazy\": true\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    }\n  ]\n}\n"
  },
  {
    "path": "karabiner/.config/karabiner/assets/complex_modifications/tab-only-keyboard-core.json",
    "content": "{\n  \"title\": \"Tab : use only keyboard core area\",\n  \"rules\": [\n    {\n      \"description\": \"Tab + number: F1 ~ F12\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"1\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f1\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"2\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f2\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"3\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f3\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"4\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f4\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"5\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f5\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"6\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f6\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"7\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f7\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"8\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f8\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"9\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f9\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"0\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f10\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"hyphen\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f11\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"equal_sign\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"f12\"\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    },\n    {\n      \"description\": \"Tab + backspace to delete\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"delete_or_backspace\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"delete_forward\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"from\": {\n            \"key_code\": \"tab\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"parameters\": {\n            \"basic.to_if_alone_timeout_milliseconds\": 250,\n            \"basic.to_if_held_down_threshold_milliseconds\": 250\n          },\n          \"to\": [\n            {\n              \"set_variable\": {\n                \"name\": \"tab pressed\",\n                \"value\": 1\n              }\n            }\n          ],\n          \"to_after_key_up\": [\n            {\n              \"set_variable\": {\n                \"name\": \"tab pressed\",\n                \"value\": 0\n              }\n            }\n          ],\n          \"to_if_alone\": [\n            {\n              \"key_code\": \"tab\"\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    },\n    {\n      \"description\": \"Tab + hjkl to arrow keys\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"j\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"down_arrow\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"k\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"up_arrow\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"h\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"left_arrow\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"l\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"right_arrow\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"from\": {\n            \"key_code\": \"tab\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"parameters\": {\n            \"basic.to_if_alone_timeout_milliseconds\": 250,\n            \"basic.to_if_held_down_threshold_milliseconds\": 250\n          },\n          \"to\": [\n            {\n              \"set_variable\": {\n                \"name\": \"tab pressed\",\n                \"value\": 1\n              }\n            }\n          ],\n          \"to_after_key_up\": [\n            {\n              \"set_variable\": {\n                \"name\": \"tab pressed\",\n                \"value\": 0\n              }\n            }\n          ],\n          \"to_if_alone\": [\n            {\n              \"key_code\": \"tab\"\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    },\n    {\n      \"description\": \"Tab + n/m --> HOME/END\",\n      \"manipulators\": [\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"n\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"home\"\n            }\n          ],\n          \"type\": \"basic\"\n        },\n        {\n          \"conditions\": [\n            {\n              \"name\": \"tab pressed\",\n              \"type\": \"variable_if\",\n              \"value\": 1\n            }\n          ],\n          \"from\": {\n            \"key_code\": \"m\",\n            \"modifiers\": {\n              \"optional\": [\n                \"any\"\n              ]\n            }\n          },\n          \"to\": [\n            {\n              \"key_code\": \"end\"\n            }\n          ],\n          \"type\": \"basic\"\n        }\n      ]\n    }\n  ]\n}\n"
  },
  {
    "path": "karabiner/.config/karabiner/automatic_backups/karabiner_20230719.json",
    "content": "{\n    \"global\": {\n        \"ask_for_confirmation_before_quitting\": true,\n        \"check_for_updates_on_startup\": true,\n        \"show_in_menu_bar\": true,\n        \"show_profile_name_in_menu_bar\": false,\n        \"unsafe_ui\": false\n    },\n    \"profiles\": [\n        {\n            \"complex_modifications\": {\n                \"parameters\": {\n                    \"basic.simultaneous_threshold_milliseconds\": 50,\n                    \"basic.to_delayed_action_delay_milliseconds\": 500,\n                    \"basic.to_if_alone_timeout_milliseconds\": 1000,\n                    \"basic.to_if_held_down_threshold_milliseconds\": 500,\n                    \"mouse_motion_to_scroll.speed\": 100\n                },\n                \"rules\": []\n            },\n            \"devices\": [\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": false,\n                        \"is_pointing_device\": true,\n                        \"product_id\": 4161,\n                        \"vendor_id\": 1008\n                    },\n                    \"ignore\": true,\n                    \"manipulate_caps_lock_led\": false,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 13330,\n                        \"vendor_id\": 14\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                }\n            ],\n            \"fn_function_keys\": [\n                {\n                    \"from\": {\n                        \"key_code\": \"f1\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f2\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_increment\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f3\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"mission_control\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f4\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"spotlight\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f5\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"dictation\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f6\"\n                    },\n                    \"to\": [\n                        {\n                            \"key_code\": \"f6\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f7\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"rewind\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f8\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"play_or_pause\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f9\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"fast_forward\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f10\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"mute\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f11\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f12\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_increment\"\n                        }\n                    ]\n                }\n            ],\n            \"name\": \"Default profile\",\n            \"parameters\": {\n                \"delay_milliseconds_before_open_device\": 1000\n            },\n            \"selected\": true,\n            \"simple_modifications\": [],\n            \"virtual_hid_keyboard\": {\n                \"country_code\": 0,\n                \"indicate_sticky_modifier_keys_state\": true,\n                \"mouse_key_xy_scale\": 100\n            }\n        }\n    ]\n}"
  },
  {
    "path": "karabiner/.config/karabiner/automatic_backups/karabiner_20230814.json",
    "content": "{\n    \"global\": {\n        \"ask_for_confirmation_before_quitting\": true,\n        \"check_for_updates_on_startup\": true,\n        \"show_in_menu_bar\": true,\n        \"show_profile_name_in_menu_bar\": false,\n        \"unsafe_ui\": false\n    },\n    \"profiles\": [\n        {\n            \"complex_modifications\": {\n                \"parameters\": {\n                    \"basic.simultaneous_threshold_milliseconds\": 50,\n                    \"basic.to_delayed_action_delay_milliseconds\": 500,\n                    \"basic.to_if_alone_timeout_milliseconds\": 1000,\n                    \"basic.to_if_held_down_threshold_milliseconds\": 500,\n                    \"mouse_motion_to_scroll.speed\": 100\n                },\n                \"rules\": [\n                    {\n                        \"description\": \"R_Shift+ESC to Tilde\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": \"right_shift\",\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": [\n                                            \"left_shift\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Super_key+ESC to grave accent\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"left_shift\",\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": []\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"RightCommand : (HYPER) SHIFT+COMMAND+OPTION+CONTROL\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"right_command\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_shift\",\n                                        \"modifiers\": [\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,\",\n                                \"from\": {\n                                    \"key_code\": \"comma\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.\",\n                                \"from\": {\n                                    \"key_code\": \"period\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/\",\n                                    \"key_code\": \"slash\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + number: F1 ~ F12\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"1\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f1\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"2\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f2\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"3\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f3\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"4\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f4\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"5\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f5\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"6\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f6\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"7\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f7\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"8\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f8\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"9\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f9\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"0\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f10\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"hyphen\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f11\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"equal_sign\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f12\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + backspace to delete\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"delete_or_backspace\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"delete_forward\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + hjkl to arrow keys\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"j\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"down_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"k\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"up_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"h\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"l\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"right_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    }\n                ]\n            },\n            \"devices\": [\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": false,\n                        \"is_pointing_device\": true,\n                        \"product_id\": 4161,\n                        \"vendor_id\": 1008\n                    },\n                    \"ignore\": true,\n                    \"manipulate_caps_lock_led\": false,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 13330,\n                        \"vendor_id\": 14\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                }\n            ],\n            \"fn_function_keys\": [\n                {\n                    \"from\": {\n                        \"key_code\": \"f1\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f2\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_increment\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f3\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"mission_control\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f4\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"spotlight\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f5\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"dictation\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f6\"\n                    },\n                    \"to\": [\n                        {\n                            \"key_code\": \"f6\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f7\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"rewind\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f8\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"play_or_pause\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f9\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"fast_forward\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f10\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"mute\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f11\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f12\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_increment\"\n                        }\n                    ]\n                }\n            ],\n            \"name\": \"Default profile\",\n            \"parameters\": {\n                \"delay_milliseconds_before_open_device\": 1000\n            },\n            \"selected\": true,\n            \"simple_modifications\": [],\n            \"virtual_hid_keyboard\": {\n                \"country_code\": 0,\n                \"indicate_sticky_modifier_keys_state\": true,\n                \"mouse_key_xy_scale\": 100\n            }\n        }\n    ]\n}"
  },
  {
    "path": "karabiner/.config/karabiner/automatic_backups/karabiner_20231011.json",
    "content": "{\n    \"global\": {\n        \"ask_for_confirmation_before_quitting\": true,\n        \"check_for_updates_on_startup\": true,\n        \"show_in_menu_bar\": true,\n        \"show_profile_name_in_menu_bar\": false,\n        \"unsafe_ui\": false\n    },\n    \"profiles\": [\n        {\n            \"complex_modifications\": {\n                \"parameters\": {\n                    \"basic.simultaneous_threshold_milliseconds\": 50,\n                    \"basic.to_delayed_action_delay_milliseconds\": 500,\n                    \"basic.to_if_alone_timeout_milliseconds\": 1000,\n                    \"basic.to_if_held_down_threshold_milliseconds\": 500,\n                    \"mouse_motion_to_scroll.speed\": 100\n                },\n                \"rules\": [\n                    {\n                        \"description\": \"R_Shift+ESC to Tilde\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": \"right_shift\",\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": [\n                                            \"left_shift\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Super_key+ESC to grave accent\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"left_shift\",\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": []\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"RightCommand : (HYPER) SHIFT+COMMAND+OPTION+CONTROL\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"right_command\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_shift\",\n                                        \"modifiers\": [\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,\",\n                                \"from\": {\n                                    \"key_code\": \"comma\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.\",\n                                \"from\": {\n                                    \"key_code\": \"period\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/\",\n                                    \"key_code\": \"slash\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + number: F1 ~ F12\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"1\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f1\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"2\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f2\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"3\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f3\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"4\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f4\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"5\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f5\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"6\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f6\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"7\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f7\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"8\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f8\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"9\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f9\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"0\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f10\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"hyphen\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f11\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"equal_sign\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f12\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + backspace to delete\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"delete_or_backspace\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"delete_forward\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + hjkl to arrow keys\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"j\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"down_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"k\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"up_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"h\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"l\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"right_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    }\n                ]\n            },\n            \"devices\": [\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": false,\n                        \"is_pointing_device\": true,\n                        \"product_id\": 4161,\n                        \"vendor_id\": 1008\n                    },\n                    \"ignore\": true,\n                    \"manipulate_caps_lock_led\": false,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 13330,\n                        \"vendor_id\": 14\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 8249,\n                        \"vendor_id\": 6785\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"grave_accent_and_tilde\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"escape\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_control\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"caps_lock\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                }\n            ],\n            \"fn_function_keys\": [\n                {\n                    \"from\": {\n                        \"key_code\": \"f1\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f2\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_increment\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f3\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"mission_control\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f4\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"spotlight\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f5\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"dictation\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f6\"\n                    },\n                    \"to\": [\n                        {\n                            \"key_code\": \"f6\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f7\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"rewind\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f8\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"play_or_pause\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f9\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"fast_forward\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f10\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"mute\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f11\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f12\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_increment\"\n                        }\n                    ]\n                }\n            ],\n            \"name\": \"Default profile\",\n            \"parameters\": {\n                \"delay_milliseconds_before_open_device\": 1000\n            },\n            \"selected\": true,\n            \"simple_modifications\": [],\n            \"virtual_hid_keyboard\": {\n                \"country_code\": 0,\n                \"indicate_sticky_modifier_keys_state\": true,\n                \"mouse_key_xy_scale\": 100\n            }\n        }\n    ]\n}"
  },
  {
    "path": "karabiner/.config/karabiner/karabiner.json",
    "content": "{\n    \"global\": {\n        \"ask_for_confirmation_before_quitting\": true,\n        \"check_for_updates_on_startup\": true,\n        \"show_in_menu_bar\": true,\n        \"show_profile_name_in_menu_bar\": false,\n        \"unsafe_ui\": false\n    },\n    \"profiles\": [\n        {\n            \"complex_modifications\": {\n                \"parameters\": {\n                    \"basic.simultaneous_threshold_milliseconds\": 50,\n                    \"basic.to_delayed_action_delay_milliseconds\": 500,\n                    \"basic.to_if_alone_timeout_milliseconds\": 1000,\n                    \"basic.to_if_held_down_threshold_milliseconds\": 500,\n                    \"mouse_motion_to_scroll.speed\": 100\n                },\n                \"rules\": [\n                    {\n                        \"description\": \"R_Shift+ESC to Tilde\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": \"right_shift\",\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": [\n                                            \"left_shift\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Super_key+ESC to grave accent\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"escape\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"left_shift\",\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"grave_accent_and_tilde\",\n                                        \"modifiers\": []\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"RightCommand : (HYPER) SHIFT+COMMAND+OPTION+CONTROL\",\n                        \"manipulators\": [\n                            {\n                                \"from\": {\n                                    \"key_code\": \"right_command\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_shift\",\n                                        \"modifiers\": [\n                                            \"left_command\",\n                                            \"left_control\",\n                                            \"left_option\"\n                                        ]\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+,\",\n                                \"from\": {\n                                    \"key_code\": \"comma\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+.\",\n                                \"from\": {\n                                    \"key_code\": \"period\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"description\": \"Avoid starting sysdiagnose with the built-in macOS shortcut cmd+shift+option+ctrl+/\",\n                                    \"key_code\": \"slash\",\n                                    \"modifiers\": {\n                                        \"mandatory\": [\n                                            \"command\",\n                                            \"shift\",\n                                            \"option\",\n                                            \"control\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + number: F1 ~ F12\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"1\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f1\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"2\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f2\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"3\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f3\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"4\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f4\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"5\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f5\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"6\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f6\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"7\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f7\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"8\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f8\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"9\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f9\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"0\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f10\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"hyphen\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f11\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"equal_sign\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"f12\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + backspace to delete\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"delete_or_backspace\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"delete_forward\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    },\n                    {\n                        \"description\": \"Tab + hjkl to arrow keys\",\n                        \"manipulators\": [\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"j\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"down_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"k\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"up_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"h\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"left_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"conditions\": [\n                                    {\n                                        \"name\": \"tab pressed\",\n                                        \"type\": \"variable_if\",\n                                        \"value\": 1\n                                    }\n                                ],\n                                \"from\": {\n                                    \"key_code\": \"l\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"to\": [\n                                    {\n                                        \"key_code\": \"right_arrow\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            },\n                            {\n                                \"from\": {\n                                    \"key_code\": \"tab\",\n                                    \"modifiers\": {\n                                        \"optional\": [\n                                            \"any\"\n                                        ]\n                                    }\n                                },\n                                \"parameters\": {\n                                    \"basic.to_if_alone_timeout_milliseconds\": 250,\n                                    \"basic.to_if_held_down_threshold_milliseconds\": 250\n                                },\n                                \"to\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 1\n                                        }\n                                    }\n                                ],\n                                \"to_after_key_up\": [\n                                    {\n                                        \"set_variable\": {\n                                            \"name\": \"tab pressed\",\n                                            \"value\": 0\n                                        }\n                                    }\n                                ],\n                                \"to_if_alone\": [\n                                    {\n                                        \"key_code\": \"tab\"\n                                    }\n                                ],\n                                \"type\": \"basic\"\n                            }\n                        ]\n                    }\n                ]\n            },\n            \"devices\": [\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": false,\n                        \"is_pointing_device\": true,\n                        \"product_id\": 4161,\n                        \"vendor_id\": 1008\n                    },\n                    \"ignore\": true,\n                    \"manipulate_caps_lock_led\": false,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 13330,\n                        \"vendor_id\": 14\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 8249,\n                        \"vendor_id\": 6785\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"grave_accent_and_tilde\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"escape\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_control\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"caps_lock\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": false,\n                        \"is_pointing_device\": true,\n                        \"product_id\": 33382,\n                        \"vendor_id\": 9354\n                    },\n                    \"ignore\": true,\n                    \"manipulate_caps_lock_led\": false,\n                    \"simple_modifications\": [],\n                    \"treat_as_built_in_keyboard\": false\n                },\n                {\n                    \"disable_built_in_keyboard_if_exists\": false,\n                    \"fn_function_keys\": [],\n                    \"identifiers\": {\n                        \"is_keyboard\": true,\n                        \"is_pointing_device\": false,\n                        \"product_id\": 41619,\n                        \"vendor_id\": 1241\n                    },\n                    \"ignore\": false,\n                    \"manipulate_caps_lock_led\": true,\n                    \"simple_modifications\": [\n                        {\n                            \"from\": {\n                                \"key_code\": \"caps_lock\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_control\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_command\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"left_command\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"left_option\"\n                                }\n                            ]\n                        },\n                        {\n                            \"from\": {\n                                \"key_code\": \"right_option\"\n                            },\n                            \"to\": [\n                                {\n                                    \"key_code\": \"right_command\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"treat_as_built_in_keyboard\": false\n                }\n            ],\n            \"fn_function_keys\": [\n                {\n                    \"from\": {\n                        \"key_code\": \"f1\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f2\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"display_brightness_increment\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f3\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"mission_control\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f4\"\n                    },\n                    \"to\": [\n                        {\n                            \"apple_vendor_keyboard_key_code\": \"spotlight\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f5\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"dictation\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f6\"\n                    },\n                    \"to\": [\n                        {\n                            \"key_code\": \"f6\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f7\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"rewind\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f8\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"play_or_pause\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f9\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"fast_forward\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f10\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"mute\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f11\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_decrement\"\n                        }\n                    ]\n                },\n                {\n                    \"from\": {\n                        \"key_code\": \"f12\"\n                    },\n                    \"to\": [\n                        {\n                            \"consumer_key_code\": \"volume_increment\"\n                        }\n                    ]\n                }\n            ],\n            \"name\": \"Default profile\",\n            \"parameters\": {\n                \"delay_milliseconds_before_open_device\": 1000\n            },\n            \"selected\": true,\n            \"simple_modifications\": [],\n            \"virtual_hid_keyboard\": {\n                \"country_code\": 0,\n                \"indicate_sticky_modifier_keys_state\": true,\n                \"mouse_key_xy_scale\": 100\n            }\n        }\n    ]\n}"
  },
  {
    "path": "nvim/.config/nvim/.stylua.toml",
    "content": "column_width = 100\nindent_type = \"Spaces\"\nindent_width = 2\n[sort_requires]\nenabled = true\n\n"
  },
  {
    "path": "nvim/.config/nvim/READMD.md",
    "content": "## 去 https://oatnil.top 看看我的配置解析\n\n## Go to https://oatnil.top to see my configuration explanation\n\n"
  },
  {
    "path": "nvim/.config/nvim/init.lua",
    "content": "require(\"config.options\")\nrequire(\"config.keymaps\")\n\nvim.g.config_utils = {\n  opts_ensure_installed = function(opts, new_item)\n    opts = opts or {}\n    if type(opts.ensure_installed) == \"table\" then\n      vim.list_extend(opts.ensure_installed, new_item)\n    else\n      opts.ensure_installed = new_item\n    end\n  end,\n}\n\nlocal lazypath = vim.fn.stdpath(\"data\") .. \"/lazy/lazy.nvim\"\nif not vim.loop.fs_stat(lazypath) then\n  local lazyrepo = \"https://github.com/folke/lazy.nvim.git\"\n  vim.fn.system({ \"git\", \"clone\", \"--filter=blob:none\", \"--branch=stable\", lazyrepo, lazypath })\nend ---@diagnostic disable-next-line: undefined-field\nvim.opt.rtp:prepend(lazypath)\n\n-- NOTE: Here is where you install your plugins.\nrequire(\"lazy\").setup({\n  spec = { { import = \"plugins\" } },\n  change_detection = {\n    -- automatically check for config file changes and reload the ui\n    enabled = false,\n    notify = false, -- get a notification when changes are found\n  },\n})\n"
  },
  {
    "path": "nvim/.config/nvim/lua/config/keymaps.lua",
    "content": "local command1 = \"split\"\nvim.keymap.set(\"n\", \"<leader>ws\", \"<cmd>\" .. command1 .. \"<cr>\")\nvim.api.nvim_create_user_command(\"SplitHorizotally\", command1, {})\n\nlocal command5 = \"FzfLua live_grep\"\nvim.keymap.set(\"n\", \"<leader>ff\", \"<cmd>\" .. command5 .. \"<cr>\")\nvim.api.nvim_create_user_command(\"LiveGrepInProject\", command5, {})\n\nlocal quitNvim = \"qa!\"\nvim.keymap.set(\"n\", \"<M-q>\", \"<cmd>\" .. quitNvim .. \"<cr>\")\nvim.api.nvim_create_user_command(\"QuitNvim\", quitNvim, {})\n\nlocal no_highlight = \"nohlsearch\"\nvim.keymap.set(\"n\", \"<leader>nl\", \"<cmd>\" .. no_highlight .. \"<cr>\")\n\nlocal dont_replace_register = \"P\"\nvim.keymap.set(\"v\", \"p\", dont_replace_register)\n\nlocal better_j = \"gj\"\nvim.keymap.set(\"n\", \"j\", better_j)\n\nlocal better_k = \"gk\"\nvim.keymap.set(\"n\", \"k\", better_k)\n\nlocal exit_alias = \"<ESC>\"\nvim.keymap.set(\"i\", \"jk\", exit_alias)\n\nlocal reload_buffer = \"checktime\"\nvim.api.nvim_create_user_command(\"ReloadBuffer\", reload_buffer, {})\n\n"
  },
  {
    "path": "nvim/.config/nvim/lua/config/options.lua",
    "content": "-- code is stolen from https://github.com/echasnovski/nvim/blob/master/lua/ec/settings.lua\n-- stylua: ignore start\n-- Leader key =================================================================\nvim.g.mapleader    = \" \"\nvim.g.maplocalleader  = \",\"\nvim.g.autoformat   = false\nlocal opt = vim.opt\n\n-- General ====================================================================\nopt.backup         = false    -- Don't store backup\nopt.mouse          = 'a'      -- Enable mouse\n-- https://github.com/mfussenegger/nvim-dap/blob/master/doc/dap.txt\n-- error: Stopped at line 2 but `switchbuf` setting prevented jump to location. Target buffer 55 not open in any window?\n-- opt.switchbuf      = 'usetab' -- Use already opened buffers when switching\nopt.writebackup    = false    -- Don't store backup\nopt.undofile       = true     -- Enable persistent undo\nopt.swapfile       = false\nopt.guifont        = 'FiraCode Nerd Font:h16'\nopt.cmdheight      = 0\nopt.clipboard      = \"\"\n\n-- UI =========================================================================\nopt.conceallevel = 0\nopt.breakindent      = true     -- Indent wrapped lines to match line start\nopt.cursorline       = true     -- Enable highlighting of the current line\nopt.laststatus       = 3        -- show statusline in last window\nopt.linebreak        = true     -- Wrap long lines at 'breakat' (if 'wrap' is set)\nopt.list             = true     -- Show helpful character indicators\nopt.relativenumber   = true     -- Show relative line numbers\nopt.number           = true     -- Show current line's real line number instead of 0\nopt.pumblend         = 0        -- Make builtin completion menus slightly transparent\nopt.pumheight        = 10       -- Make popup menu smaller\nopt.ruler            = false    -- Don't show cursor position\nopt.shortmess        = 'aoOWFc' -- Disable certain messages from |ins-completion-menu|\nopt.showmode         = false    -- Don't show mode in command line\nopt.signcolumn       = 'yes'    -- Always show signcolumn or it would frequently shift\nopt.splitbelow       = true     -- Horizontal splits will be below\nopt.splitright       = true     -- Vertical splits will be to the right\nopt.termguicolors    = true     -- Enable gui colors\nopt.winblend         = 0        -- Make floating windows transparent\nopt.wrap             = false    -- Display long lines as just one line\n\nvim.o.fillchars    = table.concat(\n    { 'eob: ', 'fold:╌', 'horiz:═', 'horizdown:╦', 'horizup:╩', 'vert:║', 'verthoriz:╬', 'vertleft:╣',\n        'vertright:╠' },\n    ','\n)\nvim.o.listchars    = table.concat(\n    { 'extends:…', 'nbsp:␣', 'precedes:…', 'tab:> ' },\n    ','\n)\n\nopt.shortmess:append('C')  -- Don't show \"Scanning...\" messages\nopt.splitkeep     = 'screen' -- Reduce scroll during window split\n\n-- Editing ====================================================================\nopt.autoindent    = true                                 -- Use auto indent\nopt.expandtab     = true                                 -- Convert tabs to spaces\nopt.formatoptions = 'rqnl1j'                             -- Improve comment editing\nopt.ignorecase    = true                                 -- Ignore case when searching (use `\\C` to force not doing that)\nopt.incsearch     = true                                 -- Show search results while typing\nopt.infercase     = true                                 -- Infer letter cases for a richer built-in keyword completion\nopt.shiftwidth    = 4                                    -- Use this number of spaces for indentation\nopt.smartcase     = true                                 -- Don't ignore case when searching if pattern has upper case\nopt.smartindent   = true                                 -- Make indenting smart\nopt.tabstop       = 4                                    -- Insert 4 spaces for a tab\nopt.virtualedit   = 'block'                              -- Allow going past the end of line in visual block mode\n\nopt.iskeyword:append('-')                              -- Treat dash separated words as a word text object\n\nopt.completeopt            = 'menuone,noinsert,noselect' -- Customize completions\n\n-- Define pattern for a start of 'numbered' list. This is responsible for\n-- correct formatting of lists when using `gw`. This basically reads as 'at\n-- least one special character (digit, -, +, *) possibly followed some\n-- punctuation (. or `)`) followed by at least one space is a start of list\n-- item'\nopt.formatlistpat          = [[^\\s*[0-9\\-\\+\\*]\\+[\\.\\)]*\\s\\+]]\n\n--stylua: ignore end\n--\nopt.clipboard = \"unnamedplus\"\n"
  },
  {
    "path": "nvim/.config/nvim/lua/features/readme.md",
    "content": "this folder won't be `imported` directly in `nvim-lintao/.config/nvim-lintao/init.lua:14:4`\n\nit will be use as an lib for the plugins configurations\n\nthe function here usually stands for a feature that will appear in multiple places\n"
  },
  {
    "path": "nvim/.config/nvim/lua/features/terminal-and-run.lua",
    "content": "local editor = require(\"util.editor\")\n\nlocal M = {}\n\nfunction M.run_current_line()\n  local sys = require(\"util.base.sys\")\n  local stringUtil = require(\"util.base.strings\")\n  local currentLine = editor.buf.read.get_current_line()\n  local stdout = vim.fn.system(currentLine)\n  local result = stringUtil.split_into_lines(stdout)\n  editor.buf.write.put_lines(result, \"l\", true, true)\n  pcall(sys.copy_to_system_clipboard, stringUtil.join(result, \"\\n\"))\nend\n\nreturn M\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/auto-close-pair.lua",
    "content": "return {\n  {\n    \"windwp/nvim-autopairs\",\n    event = \"InsertEnter\",\n    config = true,\n  },\n  {\n    \"windwp/nvim-ts-autotag\",\n    config = function()\n      require(\"nvim-ts-autotag\").setup({\n        opts = {\n          -- Defaults\n          enable_close = true, -- Auto close tags\n          enable_rename = true, -- Auto rename pairs of tags\n          enable_close_on_slash = false, -- Auto close on trailing </\n        },\n        -- Also override individual filetype configs, these take priority.\n        -- Empty by default, useful if one of the \"opts\" global settings\n        -- doesn't work well in a specific filetype\n        per_filetype = {\n          -- [\"html\"] = {\n          -- \tenable_close = false,\n          -- },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/autosave.lua",
    "content": "local function save()\n  local buf = vim.api.nvim_get_current_buf()\n\n  vim.api.nvim_buf_call(buf, function()\n    vim.cmd(\"silent! write\")\n  end)\nend\n\nfunction ToggleAutoSave()\n  local flag = vim.g.auto_save or false\n  if flag then\n    vim.g.auto_save = false\n    vim.api.nvim_del_augroup_by_name(\"AutoSave\")\n  else\n    vim.api.nvim_create_augroup(\"AutoSave\", {\n      clear = true,\n    })\n    vim.api.nvim_create_autocmd({ \"InsertLeave\", \"TextChanged\" }, {\n      callback = save,\n      pattern = \"*\",\n      group = \"AutoSave\",\n    })\n    vim.g.auto_save = true\n  end\nend\n\nToggleAutoSave()\nvim.api.nvim_create_user_command(\"ToggleAutoSave\", ToggleAutoSave, {})\n\nreturn {}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/context-menu.lua",
    "content": "vim.keymap.set({ \"v\", \"n\", \"t\" }, \"<M-l>\", function() -- use wezterm remapping <c-enter> to \"<M-l>\"\n  require(\"context-menu\").trigger_context_menu()\nend, {})\n\nreturn {\n  dir = \"/Volumes/t7ex/Documents/oatnil/beta/context-menu.nvim\",\n  config = function()\n    require(\"context-menu\").setup({\n      close_menu = { \"q\", \"<ESC>\", \"<M-l>\" },\n      menu_items = {\n        {\n          order = 1,\n          cmd = \"Code Action\",\n          not_ft = { \"markdown\", \"toggleterm\" },\n          action = {\n            type = \"callback\",\n            callback = function(_)\n              vim.cmd([[Lspsaga code_action]])\n            end,\n          },\n        },\n        {\n          order = 2,\n          cmd = \"Run Test\",\n          not_ft = { \"markdown\" },\n          filter_func = function(context)\n            local a = context.filename\n            if string.find(a, \".test.\") or string.find(a, \"spec.\") then\n              return true\n            else\n              return false\n            end\n          end,\n          action = {\n            type = \"callback\",\n            callback = function(_)\n              require(\"neotest\").run.run()\n            end,\n          },\n        },\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/file-navi.lua",
    "content": "local function context_dir(state)\n  -- return the directory of the current neo-tree node\n  local node = state.tree:get_node()\n  if node.type == \"directory\" then\n    return node.path\n  end\n  return node.path:gsub(\"/[^/]*$\", \"\") -- go up one level\nend\n\nlocal function open_mini_files()\n  local cmd = function()\n    require(\"mini.files\").open(vim.api.nvim_buf_get_name(0), true)\n  end\n\n  vim.keymap.set(\"n\", \"<leader>e\", cmd, { noremap = true, silent = true })\nend\nopen_mini_files()\n\nlocal function reveal_current_file()\n  local command = \"Neotree reveal reveal_force_cwd\"\n  vim.keymap.set(\"n\", \"<leader>fl\", \"<cmd>\" .. command .. \"<cr>\", { noremap = true, silent = true })\n  vim.api.nvim_create_user_command(\"LocateCurrentBuf\", command, {})\nend\nreveal_current_file()\n\nvim.keymap.set(\"n\", \"<M-1>\", \"<cmd>Neotree toggle<cr>\", { desc = \"ExplorerToggle\" })\n\nreturn {\n  {\n    -- https://github.com/linkarzu/dotfiles-latest/blob/64707e247c71a2536327e33effab57641c54d001/neovim/neobean/lua/plugins/mini-files.lua#L62\n    \"echasnovski/mini.files\",\n    version = false,\n    config = function()\n      require(\"mini.files\").setup({ -- General options\n        mappings = {\n          close = \"q\",\n          -- Use this if you want to open several files\n          -- go_in = \"l\",\n          -- This opens the file, but quits out of mini.files (default L)\n          go_in_plus = \"l\",\n          -- I swapped the following 2 (default go_out: h)\n          -- go_out_plus: when you go out, it shows you only 1 item to the right\n          -- go_out: shows you all the items to the right\n          go_out = \"H\",\n          go_out_plus = \"h\",\n          -- Default <BS>\n          reset = \",\",\n          -- Default @\n          reveal_cwd = \".\",\n          show_help = \"g?\",\n          -- Default =\n          synchronize = \"s\",\n          trim_left = \"<\",\n          trim_right = \">\",\n        },\n        windows = {\n          preview = true,\n          width_focus = 30,\n          width_preview = 80,\n        },\n        options = {\n          -- Whether to delete permanently or move into module-specific trash\n          permanent_delete = false,\n          -- Whether to use for editing directories\n          use_as_default_explorer = true,\n        },\n      })\n\n      vim.api.nvim_set_hl(0, 'MiniFilesNormal', { bg = '#111111' })\n      vim.api.nvim_set_hl(0, 'MiniFilesBorder', { bg = '#111111' })\n    end,\n  },\n  {\n    \"s1n7ax/nvim-window-picker\",\n    name = \"window-picker\",\n    event = \"VeryLazy\",\n    version = \"2.*\",\n    config = function()\n      require(\"window-picker\").setup()\n    end,\n  },\n  {\n    \"nvim-neo-tree/neo-tree.nvim\",\n    branch = \"v3.x\",\n    dependencies = {\n      \"nvim-lua/plenary.nvim\",\n      \"nvim-tree/nvim-web-devicons\", -- not strictly required, but recommended\n      \"MunifTanjim/nui.nvim\",\n    },\n    config = function()\n      require(\"neo-tree\").setup({\n        source_selector = {\n          sources = { -- table\n            {\n              source = \"filesystem\", -- string\n              display_name = \" 󰉓 Files \", -- string | nil\n            },\n            {\n              source = \"git_status\", -- string\n              display_name = \" 󰊢 Git \", -- string | nil\n            },\n          },\n        },\n        window = {\n          position = \"left\",\n          -- width = 40,\n          mapping_options = {\n            noremap = true,\n            nowait = true,\n          },\n          mappings = {\n            [\"t\"] = {\n              function(state)\n                local node = state.tree:get_node()\n                vim.fn.jobstart({ \"open\", node.path }, { detach = true })\n              end,\n              desc = \"Open the current node by system default software\",\n              nowait = true,\n            },\n            -- copy absolute path to clipboard\n            [\"Y\"] = {\n              function(state)\n                local node = state.tree:get_node()\n                local content = node.path\n                vim.fn.setreg('\"', content)\n                vim.fn.setreg(\"1\", content)\n                vim.fn.setreg(\"+\", content)\n              end,\n              desc = \"copy absolute path\",\n              nowait = true,\n            },\n            -- [\"<c-o>\"] = {\n            --   function(state)\n            --     local node = state.tree:get_node()\n            --     vim.cmd(\"tabnew\")\n            --     vim.cmd(\"DiffviewOpen -- \" .. node.path)\n            --   end,\n            --   desc = \"Open file in diffview\",\n            --   nowait = true,\n            -- },\n            -- open in telescope live grep\n            [\"<c-f>\"] = {\n              function(state)\n                require(\"telescope.builtin\").live_grep({ cwd = context_dir(state) })\n              end,\n              desc = \"live grep in current dir\",\n              nowait = true,\n            },\n            [\"<c-r>\"] = {\n              function(state)\n                local node = state.tree:get_node()\n                if node.type == \"directory\" then\n                  require(\"grug-far\").grug_far({ prefills = { paths = node.path } })\n                else\n                  require(\"grug-far\").grug_far({ prefills = { paths = context_dir(state) } })\n                end\n                -- close neo-tree\n                vim.cmd(\"Neotree close\")\n              end,\n              desc = \"replace in current dir\",\n              nowait = true,\n            },\n            [\"<space>\"] = {\n              \"toggle_node\",\n              nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use\n            },\n            [\"o\"] = \"open\",\n            [\"<esc>\"] = \"cancel\", -- close preview or floating neo-tree window\n            [\"P\"] = { \"toggle_preview\", config = { use_float = true } },\n            [\"l\"] = \"open_drop\",\n            [\"S\"] = \"open_split\",\n            [\"s\"] = \"open_vsplit\",\n            -- [\"S\"] = \"split_with_window_picker\",\n            -- [\"s\"] = \"vsplit_with_window_picker\",\n            -- [\"t\"] = \"hello\",\n            -- [\"<cr>\"] = \"open_drop\",\n            -- [\"t\"] = \"open_tab_drop\",\n            [\"w\"] = \"open_with_window_picker\",\n            --[\"P\"] = \"toggle_preview\", -- enter preview mode, which shows the current node without focusing\n            [\"x\"] = \"close_node\",\n            -- ['C'] = 'close_all_subnodes',\n            [\"z\"] = \"close_all_nodes\",\n            --[\"Z\"] = \"expand_all_nodes\",\n            [\"a\"] = {\n              \"add\",\n              -- this command supports BASH style brace expansion (\"x{a,b,c}\" -> xa,xb,xc). see `:h neo-tree-file-actions` for details\n              -- some commands may take optional config options, see `:h neo-tree-mappings` for details\n              config = {\n                show_path = \"none\", -- \"none\", \"relative\", \"absolute\"\n              },\n            },\n            -- [\"A\"] = \"add_directory\", -- also accepts the optional config.show_path option like \"add\". this also supports BASH style brace expansion.\n            [\"D\"] = \"delete\",\n            [\"r\"] = \"rename\",\n            [\"y\"] = \"copy_to_clipboard\",\n            [\"d\"] = \"cut_to_clipboard\",\n            [\"p\"] = \"paste_from_clipboard\",\n            [\"m\"] = \"move\", -- takes text input for destination, also accepts the optional config.show_path option like \"add\".\n            [\"q\"] = \"close_window\",\n            [\"R\"] = \"refresh\",\n            [\"?\"] = \"show_help\",\n            [\"<\"] = \"prev_source\",\n            [\">\"] = \"next_source\",\n          },\n        },\n        filesystem = {\n          filtered_items = {\n            visible = false, -- when true, they will just be displayed differently than normal items\n            hide_dotfiles = false,\n            hide_gitignored = false,\n            hide_by_name = {\n              --\"node_modules\"\n            },\n            hide_by_pattern = { -- uses glob style patterns\n              -- \"._*\", -- mac file info on exFat external disk\n              --\"*.meta\",\n              --\"*/src/*/tsconfig.json\",\n            },\n            always_show = { -- remains visible even if other settings would normally hide it\n              \".gitignored\",\n              \".dockerignore\",\n            },\n            never_show = { -- remains hidden even if visible is toggled to true, this overrides always_show\n              \".DS_Store\",\n              --\"thumbs.db\"\n            },\n            never_show_by_pattern = { -- uses glob style patterns\n              --\".null-ls_*\",\n            },\n          },\n          follow_current_file = {\n            enabled = false, -- This will find and focus the file in the active buffer every time\n            --               -- the current file is changed while the tree is open.\n            leave_dirs_open = false, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`\n          },\n          group_empty_dirs = true, -- when true, empty folders will be grouped together\n          hijack_netrw_behavior = \"open_default\", -- netrw disabled, opening a directory opens neo-tree\n          -- in whatever position is specified in window.position\n          -- \"open_current\",  -- netrw disabled, opening a directory opens within the\n          -- window like netrw would, regardless of window.position\n          -- \"disabled\",    -- netrw left alone, neo-tree does not handle opening dirs\n          use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes\n          -- instead of relying on nvim autocmd events.\n          window = {\n            mappings = {\n              [\"<bs>\"] = \"navigate_up\",\n              [\"h\"] = \"navigate_up\",\n              [\".\"] = \"set_root\",\n              [\"H\"] = \"toggle_hidden\",\n              [\"/\"] = \"fuzzy_finder\",\n              -- [\"f\"] = \"fuzzy_finder_directory\",\n              [\"#\"] = \"fuzzy_sorter\", -- fuzzy sorting using the fzy algorithm\n              -- [\"D\"] = \"fuzzy_sorter_directory\",\n              -- [\"ff\"] = \"filter_on_submit\",\n              [\"<c-x>\"] = \"clear_filter\",\n              [\"<c-g>\"] = function(state)\n                -- get the current node\n                local node = state.tree:get_node()\n                -- if the node is not a directory, walk up the tree until we find one\n                while node and node.type ~= \"directory\" do\n                  local parent_id = node:get_parent_id()\n                  if parent_id == nil then\n                    -- we must have reached the root node\n                    -- this should not happen because the root node is always a directory\n                    -- but just in case...\n                    node = nil\n                    break\n                  end\n                  node = state.tree:get_node(parent_id)\n                end\n                -- if we somehow didn't find a directory, just use the root node\n                local path = node and node.path or state.path\n                require(\"telescope.builtin\").live_grep({\n                  search_dirs = { path },\n                  prompt_title = string.format(\"Grep in [%s]\", vim.fs.basename(path)),\n                })\n              end,\n            },\n            fuzzy_finder_mappings = {\n              -- define keymaps for filter popup window in fuzzy_finder_mode\n              [\"<down>\"] = \"move_cursor_down\",\n              [\"<C-n>\"] = \"move_cursor_down\",\n              [\"<up>\"] = \"move_cursor_up\",\n              [\"<C-p>\"] = \"move_cursor_up\",\n            },\n          },\n          commands = {\n            hello = function()\n              print(\"Hello, neo-tree!\")\n            end,\n          }, -- Add a custom command or override a global one using the same function name\n        },\n        buffers = {\n          follow_current_file = {\n            enabled = true, -- This will find and focus the file in the active buffer every time\n            --              -- the current file is changed while the tree is open.\n            leave_dirs_open = false, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`\n          },\n          group_empty_dirs = true, -- when true, empty folders will be grouped together\n          show_unloaded = true,\n          window = {\n            mappings = {\n              [\"bd\"] = \"buffer_delete\",\n              [\"<bs>\"] = \"navigate_up\",\n              [\".\"] = \"set_root\",\n            },\n          },\n        },\n        git_status = {\n          window = {\n            position = \"float\",\n            mappings = {\n              [\"A\"] = \"git_add_all\",\n              [\"u\"] = \"git_unstage_file\",\n              [\"a\"] = \"git_add_file\",\n              [\"r\"] = \"git_revert_file\",\n              [\"c\"] = \"git_commit\",\n              [\"gp\"] = \"git_push\",\n              [\"gg\"] = \"git_commit_and_push\",\n            },\n          },\n        },\n      })\n    end,\n  },\n\n  --   {\n  --   \"Bekaboo/dropbar.nvim\",\n  --   cond = function()\n  --     return vim.fn.has(\"nvim-0.10\") == 1\n  --   end,\n  --   opts = function()\n  --     local utils = require(\"dropbar.utils\")\n  --     return {\n  --       menu = {\n  --         -- When on, preview the symbol under the cursor on CursorMoved\n  --         preview = true,\n  --         -- When on, automatically set the cursor to the closest previous/next\n  --         -- clickable component in the direction of cursor movement on CursorMoved\n  --         quick_navigation = true,\n  --         entry = {\n  --           padding = {\n  --             left = 1,\n  --             right = 1,\n  --           },\n  --         },\n  --         -- Menu scrollbar options\n  --         scrollbar = {\n  --           enable = true,\n  --           -- The background / gutter of the scrollbar\n  --           -- When false, only the scrollbar thumb is shown.\n  --           background = true,\n  --         },\n  --         ---@type table<string, string|function|table<string, string|function>>\n  --         keymaps = {\n  --           [\"q\"] = \"<C-w>q\",\n  --           [\"<Esc>\"] = \"<C-w>q\",\n  --           [\"h\"] = \"<C-w>q\",\n  --           [\"<CR>\"] = function()\n  --             local menu = utils.menu.get_current()\n  --             if not menu then\n  --               return\n  --             end\n  --             local cursor = vim.api.nvim_win_get_cursor(menu.win)\n  --             local component = menu.entries[cursor[1]]:first_clickable(cursor[2])\n  --             if component then\n  --               menu:click_on(component, nil, 1, \"l\")\n  --             end\n  --           end,\n  --           [\"l\"] = function()\n  --             local menu = utils.menu.get_current()\n  --             if not menu then\n  --               return\n  --             end\n  --             local cursor = vim.api.nvim_win_get_cursor(menu.win)\n  --             local component = menu.entries[cursor[1]]:first_clickable(cursor[2])\n  --             if component then\n  --               menu:click_on(component, nil, 1, \"l\")\n  --             end\n  --           end,\n  --           [\"i\"] = function()\n  --             local menu = utils.menu.get_current()\n  --             if not menu then\n  --               return\n  --             end\n  --             menu:fuzzy_find_open()\n  --           end,\n  --         },\n  --       },\n  --     }\n  --   end,\n  -- },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/fuzzy-finders.lua",
    "content": "return {\n  {\n    \"ibhagwan/fzf-lua\",\n    -- optional for icon support\n    dependencies = { \"nvim-tree/nvim-web-devicons\" },\n    config = function()\n      -- calling `setup` is optional for customization\n      require(\"fzf-lua\").setup({})\n    end,\n  },\n  { -- Fuzzy Finder (files, lsp, etc)\n    \"nvim-telescope/telescope.nvim\",\n    event = \"VimEnter\",\n    branch = \"0.1.x\",\n    dependencies = {\n      \"nvim-lua/plenary.nvim\",\n      { -- If encountering errors, see telescope-fzf-native README for installation instructions\n        \"nvim-telescope/telescope-fzf-native.nvim\",\n\n        -- `build` is used to run some command when the plugin is installed/updated.\n        -- This is only run then, not every time Neovim starts up.\n        build = \"make\",\n\n        -- `cond` is a condition used to determine whether this plugin should be\n        -- installed and loaded.\n        cond = function()\n          return vim.fn.executable(\"make\") == 1\n        end,\n      },\n      { \"nvim-telescope/telescope-ui-select.nvim\" },\n\n      -- Useful for getting pretty icons, but requires a Nerd Font.\n      { \"nvim-tree/nvim-web-devicons\", enabled = vim.g.have_nerd_font },\n    },\n    config = function()\n      -- Two important keymaps to use while in Telescope are:\n      --  - Insert mode: <c-/>\n      --  - Normal mode: ?\n      require(\"telescope\").setup({\n        -- You can put your default mappings / updates / etc. in here\n        --  All the info you're looking for is in `:help telescope.setup()`\n        --\n        -- defaults = {\n        --   mappings = {\n        --     i = { ['<c-enter>'] = 'to_fuzzy_refine' },\n        --   },\n        -- },\n        -- pickers = {}\n        defaults = {\n          mappings = {\n            i = {\n              [\"<m-w>\"] = require(\"telescope.actions\").close,\n            },\n            n = {\n              [\"<m-w>\"] = require(\"telescope.actions\").close,\n            },\n          },\n          layout_strategy = \"horizontal\",\n          layout_config = { prompt_position = \"top\" },\n          sorting_strategy = \"ascending\",\n          winblend = 0,\n        },\n\n        extensions = {\n          [\"ui-select\"] = {\n            require(\"telescope.themes\").get_dropdown(),\n          },\n        },\n      })\n\n      -- Enable Telescope extensions if they are installed\n      pcall(require(\"telescope\").load_extension, \"fzf\")\n      pcall(require(\"telescope\").load_extension, \"ui-select\")\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/window-tab-management/tab.lua",
    "content": "local tabNext = \"tabnext\"\nvim.keymap.set(\"n\", \"tl\", \"<cmd>\" .. tabNext .. \"<cr>\")\n\nlocal tabPrevious = \"tabprevious\"\nvim.keymap.set(\"n\", \"th\", \"<cmd>\" .. tabPrevious .. \"<cr>\")\n\nlocal tabClose = \"tabclose\"\nvim.keymap.set(\"n\", \"tt\", \"<cmd>\" .. tabClose .. \"<cr>\")\n\nlocal find_tab = \"FzfLua tabs\"\nvim.keymap.set(\"n\", \"tk\", \":\" .. find_tab .. \"<cr>\")\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/window-tab-management/window.lua",
    "content": "local function split_vertically()\n  local cmd = function()\n    if vim.bo.buftype == \"terminal\" then\n      local Terminal = require(\"toggleterm.terminal\").Terminal\n      Terminal:new({}):toggle()\n    else\n      vim.cmd(\"rightbelow vsplit\")\n    end\n  end\n  vim.keymap.set(\"n\", \"<leader>wl\", cmd)\n  vim.api.nvim_create_user_command(\"SplitVertically\", cmd, {})\nend\nsplit_vertically()\n\nlocal function split_horizontally()\n  local cmd = \"split\"\n  vim.api.nvim_create_user_command(\"SplitHorizontally\", cmd, {})\nend\nsplit_horizontally()\n\nlocal function close_window_or_buffer()\n  local closeWindowOrBuffer = function()\n    local isOk, _ = pcall(vim.cmd, \"close\")\n\n    if not isOk then\n      vim.cmd(\"bd\")\n    end\n  end\n  vim.keymap.set(\"n\", \"<M-w>\", closeWindowOrBuffer)\nend\nclose_window_or_buffer()\n\nlocal maxmise_windows = function()\n  require(\"util.editor\").window.close_all_other_windows({\n    \"filesystem\", -- neo-tree\n    \"Trouble\",\n    \"term\",\n  })\nend\nvim.keymap.set(\"n\", \"<leader>wo\", maxmise_windows)\n\nlocal function maxmise_windows_all()\n  local cmd = function()\n    require(\"util.editor\").window.close_all_other_windows({})\n  end\n  vim.keymap.set(\"n\", \"<leader>wO\", cmd)\nend\nmaxmise_windows_all()\n\nlocal popup_window = {\n  cmd = function()\n    local api = vim.api\n\n    local buf = api.nvim_create_buf(false, true)\n\n    local opts = {\n      style = \"minimal\",\n      relative = \"editor\",\n      height = api.nvim_get_option(\"lines\") - 2,\n      width = api.nvim_get_option(\"columns\") - 3,\n      title = \"Popup\",\n      row = 2,\n      col = 3,\n      border = \"rounded\",\n      zindex = 20,\n    }\n\n    -- Create the floating window with the current buffer\n    api.nvim_open_win(buf, true, opts)\n\n    -- Set the buffer's modifiable option to true\n    api.nvim_buf_set_option(buf, \"modifiable\", true)\n  end,\n  actions = function(cmd)\n    vim.api.nvim_create_user_command(\"PopupWindow\", cmd, {})\n  end,\n}\npopup_window.actions(popup_window.cmd)\n\nlocal open_in_popup_window = {\n  cmd = function()\n    popup_window.cmd()\n    require(\"telescope\").extensions.smart_open.smart_open({\n      cwd_only = true,\n      filename_first = false,\n    })\n  end,\n  actions = function(cmd)\n    vim.api.nvim_create_user_command(\"OpenInPopupWindow\", cmd, {})\n  end,\n}\nopen_in_popup_window.actions(open_in_popup_window.cmd)\n\nlocal function maxmise_windows_as_popup()\n  local cmd = function()\n    local api = vim.api\n\n    -- Get the current buffer\n    local current_buf = api.nvim_get_current_buf()\n\n    -- Get the editor's dimensions\n    local win_width = api.nvim_get_option(\"columns\")\n    local win_height = api.nvim_get_option(\"lines\")\n\n    -- Define the floating window options\n    local opts = {\n      style = \"minimal\",\n      relative = \"editor\",\n      height = win_height - 2,\n      width = win_width - 3,\n      row = 2,\n      col = 3,\n      border = \"rounded\",\n    }\n\n    -- Create the floating window with the current buffer\n    api.nvim_open_win(current_buf, true, opts)\n\n    -- Set the buffer's modifiable option to true\n    api.nvim_buf_set_option(current_buf, \"modifiable\", true)\n  end\n  vim.keymap.set(\"n\", \"<leader>wp\", cmd)\n  vim.api.nvim_create_user_command(\"MaxmiseWindowsAsPopup\", cmd, {})\nend\nmaxmise_windows_as_popup()\n\n  --stylua: ignore start\n  vim.keymap.set(\"n\", \"<C-h>\", \"<cmd>\" .. \"TmuxNavigateLeft\" .. \"<cr>\")\n  vim.keymap.set(\"n\", \"<C-l>\", \"<cmd>\" .. \"TmuxNavigateRight\" .. \"<cr>\")\n  vim.keymap.set(\"n\", \"<C-j>\", \"<cmd>\" .. \"TmuxNavigateDown\" .. \"<cr>\")\n  vim.keymap.set(\"n\", \"<C-k>\", \"<cmd>\" .. \"TmuxNavigateUp\" .. \"<cr>\")\n\n  local function resize_window()\n    vim.keymap.set( \"n\", \"<C-M-l>\", \"<cmd>vertical resize +5<cr>\", { desc = \"Increase window width\" })\n    vim.keymap.set( \"n\", \"<C-M-h>\", \"<cmd>vertical resize -5<cr>\", { desc = \"Decrease window width\" })\n    vim.keymap.set(\"n\", \"<C-M-j>\", \"<cmd>resize -5<cr>\", { desc = \"Increase window height\" })\n    vim.keymap.set(\"n\", \"<C-M-k>\", \"<cmd>resize +5<cr>\", { desc = \"Decrease window height\" })\n  end\n  resize_window()\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-core/window-tab-management.lua",
    "content": "require(\"plugins.editor-core.window-tab-management.window\")\nrequire(\"plugins.editor-core.window-tab-management.tab\")\n\nreturn {\n  \"christoomey/vim-tmux-navigator\",\n  event = \"VeryLazy\",\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/aerial.lua",
    "content": "(function()\n  local command = \"AerialToggle\"\n  vim.keymap.set(\"n\", \"<leader>ss\", \"<cmd>\" .. command .. \"<cr>\")\n  vim.api.nvim_create_user_command(\"ToggleOutline\", command, {})\nend)()\n\nreturn {\n  \"stevearc/aerial.nvim\",\n  event = \"VeryLazy\",\n  config = function()\n    require(\"aerial\").setup()\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/ai/avante.lua",
    "content": "return {\n  \"yetone/avante.nvim\",\n  -- enabled = false,\n  event = \"VeryLazy\",\n  build = \"make\",\n  opts = {\n    -- provider = \"openai\", -- Only recommend using Claude\n    claude = {\n      endpoint = \"your_endpoint\",\n      model = \"claude-3-5-sonnet-20240620\",\n      temperature = 0,\n      max_tokens = 4096,\n    },\n    mappings = {\n      ask = \"<leader>aa\",\n      edit = \"<leader>ae\",\n      refresh = \"<leader>ar\",\n      --- @class AvanteConflictMappings\n      diff = {\n        ours = \"co\",\n        theirs = \"ct\",\n        none = \"c0\",\n        both = \"cb\",\n        next = \"]x\",\n        prev = \"[x\",\n      },\n      jump = {\n        next = \"]]\",\n        prev = \"[[\",\n      },\n      submit = {\n        normal = \"<CR>\",\n        insert = \"<C-s>\",\n      },\n      toggle = {\n        debug = \"<leader>ad\",\n        hint = \"<leader>ah\",\n      },\n    },\n  },\n  dependencies = {\n    \"nvim-tree/nvim-web-devicons\", -- or echasnovski/mini.icons\n    \"stevearc/dressing.nvim\",\n    \"nvim-lua/plenary.nvim\",\n    \"MunifTanjim/nui.nvim\",\n    --- The below is optional, make sure to setup it properly if you have lazy=true\n    {\n      \"MeanderingProgrammer/render-markdown.nvim\",\n      opts = {\n        file_types = { \"markdown\", \"Avante\" },\n      },\n      ft = { \"markdown\", \"Avante\" },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/ai/code-companion.lua",
    "content": "opts = { noremap = true, silent = true }\nvim.keymap.set({ \"n\", \"v\" }, \"<Leader>ac\", \"<cmd>CodeCompanionChat<cr>\", opts)\nvim.keymap.set({ \"n\", \"v\" }, \"<Leader>ak\", \"<cmd>CodeCompanionActions<cr>\", opts)\nvim.keymap.set({ \"n\", \"v\" }, \"<Leader>aj\", \"<cmd>CodeCompanion<cr>\", opts)\n\nreturn {\n  \"olimorris/codecompanion.nvim\",\n  -- dir =\"/Volumes/t7ex/Documents/Github/codecompanion.nvim\",\n  dependencies = {\n    \"nvim-lua/plenary.nvim\",\n    \"nvim-treesitter/nvim-treesitter\",\n    \"hrsh7th/nvim-cmp\", -- Optional: For using slash commands and variables in the chat buffer\n    \"nvim-telescope/telescope.nvim\", -- Optional: For using slash commands\n    { \"stevearc/dressing.nvim\", opts = {} }, -- Optional: Improves the default Neovim UI\n  },\n  config = function()\n    require(\"codecompanion\").setup({\n      adapters = {\n        anthropic = function()\n          return require(\"codecompanion.adapters\").extend(\"anthropic\", {\n            url = \"your_url\",\n          })\n        end,\n      },\n      strategies = {\n        chat = {\n          adapter = \"anthropic\",\n        },\n        inline = {\n          adapter = \"anthropic\",\n        },\n        agent = {\n          adapter = \"anthropic\",\n        },\n      },\n      prompt_library = {\n        [\"Commit Message for Staged Files\"] = {\n          strategy = \"chat\",\n          description = \"staged file commit messages\",\n          opts = {\n            index = 9,\n            default_prompt = true,\n            mapping = \"<LocalLeader>gm\",\n            slash_cmd = \"commit-stage\",\n            auto_submit = true,\n          },\n          prompts = {\n            {\n              role = \"system\",\n              content = \"You are an expert at following the Conventional Commit specification.\",\n            },\n            {\n              role = \"user\",\n              contains_code = true,\n              content = function()\n                return \"Given the git diff listed below, please generate a commit message and put it inside a commit command for me:\\n\\n\"\n                  .. \"```\\n\"\n                  .. vim.fn.system(\"git diff --staged\")\n                  .. \"\\n```\"\n              end,\n            },\n          },\n        },\n      },\n      keymaps = {\n        send = {\n          modes = {\n            n = { \"<CR>\", \"<C-s>\" },\n            i = \"<C-s>\",\n          },\n          index = 1,\n          callback = \"keymaps.send\",\n          description = \"Send\",\n        },\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/ai/gp.lua",
    "content": "return {\n  \"robitx/gp.nvim\",\n  config = function()\n    local conf = {\n      -- For customization, refer to Install > Configuration in the Documentation/Readme\n      providers = {\n        anthropic = {\n          endpoint = \"your_endpoint\",\n          secret = os.getenv(\"ANTHROPIC_API_KEY\"),\n        },\n      },\n      agents = {\n        {\n          provider = \"anthropic\",\n          name = \"ChatClaude-3-Haiku\",\n          chat = true,\n          command = false,\n          -- string with model name or table with model name and parameters\n          model = { model = \"claude-3-haiku-20240307\", temperature = 0.8, top_p = 1 },\n          -- system prompt (use this to specify the persona/role of the AI)\n          system_prompt = require(\"gp.defaults\").chat_system_prompt,\n        },\n      },\n      hooks = {},\n    }\n    require(\"gp\").setup(conf)\n\n    -- Setup shortcuts here (see Usage > Shortcuts in the Documentation/Readme)\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/ai/supermaven-nvim.lua",
    "content": "return {\n  \"supermaven-inc/supermaven-nvim\",\n  config = function()\n    require(\"supermaven-nvim\").setup({\n      disable_keymaps = true,\n      log_level = \"error\",\n    })\n\n    local completion_preview = require(\"supermaven-nvim.completion_preview\")\n    vim.keymap.set(\n      \"i\",\n      \"<c-a>\",\n      completion_preview.on_accept_suggestion,\n      { noremap = true, silent = true }\n    )\n    vim.keymap.set(\n      \"i\",\n      \"<c-j>\",\n      completion_preview.on_accept_suggestion_word,\n      { noremap = true, silent = true }\n    )\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/ai.lua",
    "content": "return {\n  { import = \"plugins.editor-enhance.ai\" },\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function()\n      require(\"context-menu\").setup({\n        close_menu = { \"q\", \"<ESC>\", \"<M-l>\" },\n        menu_items = {\n          {\n            order = 1,\n            cmd = \"AI\",\n            keymap = \"a\",\n            action = {\n              type = \"sub_cmds\",\n              sub_cmds = {\n                {\n                  order = 1,\n                  keymap = \"a\",\n                  cmd = \"New\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      vim.cmd([[GpChatNew]])\n                    end,\n                  },\n                },\n                {\n                  order = 3,\n                  keymap = \"p\",\n                  cmd = \"Append\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      vim.cmd([[GpAppend]])\n                    end,\n                  },\n                },\n                {\n                  order = 2,\n                  cmd = \"Find\",\n                  keymap = \"f\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      vim.cmd([[GpChatFinder]])\n                    end,\n                  },\n                },\n              },\n            },\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/bookmarks.lua",
    "content": "vim.keymap.set(\"n\", \"mg\", \"<cmd>\" .. \"BookmarksGotoRecent\" .. \"<cr>\")\nvim.keymap.set(\"n\", \"mm\", \"<cmd>\" .. \"BookmarksMark\" .. \"<cr>\")\nvim.keymap.set(\"n\", \"ma\", \"<cmd>\" .. \"BookmarksCommands\" .. \"<cr>\")\nvim.keymap.set(\"n\", \"mo\", \"<cmd>\" .. \"BookmarksGoto\" .. \"<cr>\")\n\nreturn {\n  {\n    \"LintaoAmons/bookmarks.nvim\",\n    -- branch = \"dev\",\n    event = \"VeryLazy\",\n    -- dir = \"/Volumes/t7ex/Documents/oatnil/beta/bookmarks.nvim\",\n    dependencies = {\n      { \"nvim-neo-tree/neo-tree.nvim\" },\n      { \"ibhagwan/fzf-lua\" },\n    },\n    config = function()\n      require(\"bookmarks\").setup({\n        json_db_path = vim.fn.stdpath(\"data\") .. \"/bookmarks.db.json\",\n        signs = {\n          mark = { icon = \"󰃁\", color = \"red\", line_bg = \"#572626\" },\n          desc_format = function(desc)\n            return desc\n          end,\n        },\n        picker = {\n          -- choose built-in sort logic by name: string, find all the sort logics in `bookmarks.adapter.sort-logic`\n          -- or custom sort logic: function(bookmarks: Bookmarks.Bookmark[]): nil\n          sort_by = \"created_at\",\n        },\n        treeview = {\n          win_cmd = \"left\", -- \"left\", \"right\", \"bottom\"\n          keymap = {\n            quit = { \"q\", \"<ESC>\" },\n            refresh = \"R\",\n            create_folder = \"a\",\n            tree_cut = \"x\",\n            tree_paste = \"p\",\n            collapse = \"o\",\n            delete = \"d\",\n            active = \"s\",\n            copy = \"c\",\n          },\n        },\n        hooks = {\n          {\n            callback = function(bookmark, projects)\n              local project_path\n\n              for _, p in ipairs(projects) do\n                if p.name == bookmark.location.project_name then\n                  project_path = p.path\n                end\n              end\n              if project_path then\n                vim.cmd(\"cd \" .. project_path)\n              end\n            end,\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/comment.lua",
    "content": "return {\n  {\n    \"folke/ts-comments.nvim\",\n    opts = {},\n    event = \"VeryLazy\",\n  },\n  { \"echasnovski/mini.comment\", version = \"*\", opts = {} },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/copy.lua",
    "content": "--- Returns the absolute path of the current file relative to the project root, and the current line and column.\n--- @return string|nil\nlocal function copy_line_ref()\n  local current_file_dir = vim.fn.expand(\"%:p:h\") -- '%:p:h' expands to the directory of the current file\n\n  -- Find the .git directory starting from the current file's directory and moving upwards\n  local git_dir = vim.fn.finddir(\".git\", current_file_dir .. \";\")\n\n  -- If a .git directory is found, get the project root\n  if git_dir ~= \"\" then\n    local project_root = vim.fn.fnamemodify(git_dir, \":p:h:h\") -- Get the project root directory\n    -- Get the absolute path of the current file\n    local current_file_absolute = vim.fn.expand(\"%:p\") -- Calculate the relative path from the project root to the current file\n    local relative_path = string.sub(current_file_absolute, string.len(project_root) + 2)\n\n    -- Get the current line and column in the same line by unpacking the cursor position\n    local line, col = unpack(vim.api.nvim_win_get_cursor(0))\n\n    local line_ref = relative_path .. \":\" .. line .. \":\" .. col\n\n    vim.fn.setreg(\"+\", line_ref)\n    -- Return the reference path, line, and column\n    return line_ref\n  else\n    return nil -- Return nil if no .git directory is found\n  end\nend\nvim.api.nvim_create_user_command(\"CopyLineRef\", copy_line_ref, {})\n\nlocal function copy_buf_name()\n  local buf_name = vim.fn.expand(\"%:p:t\")\n  vim.print(buf_name)\n  vim.fn.setreg(\"+\", buf_name)\n  return buf_name\nend\nvim.api.nvim_create_user_command(\"CopyBufName\", copy_buf_name, {})\n\nlocal function copy_buf_abs_path()\n  local abs_path = require(\"util.editor\").buf.read.get_buf_abs_path()\n  vim.print(abs_path)\n  vim.fn.setreg(\"+\", abs_path)\n  return abs_path\nend\nvim.api.nvim_create_user_command(\"CopyBufAbsPath\", copy_buf_abs_path, {})\n\nlocal function copy_buf_abs_dir_path()\n  local result = require(\"util.editor\").buf.read.get_buf_abs_dir_path()\n  vim.print(result)\n  vim.fn.setreg(\"+\", result)\n  return result\nend\nvim.api.nvim_create_user_command(\"CopyBufAbsDirPath\", copy_buf_abs_dir_path, {})\n\nlocal function copy_buf_relative_dir_path()\n  local result = require(\"util.editor\").buf.read.get_buf_relative_dir_path()\n  vim.print(result)\n  vim.fn.setreg(\"+\", result)\n  return result\nend\nvim.api.nvim_create_user_command(\"CopyBufRelativeDirPath\", copy_buf_relative_dir_path, {})\n\nreturn {\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function(_)\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"Copy\",\n            keymap = \"c\",\n            action = {\n              type = \"sub_cmds\",\n              sub_cmds = {\n                {\n                  cmd = \"Copy Line Ref\",\n                  order = 91,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      copy_line_ref()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Copy Buf Name\",\n                  order = 92,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      copy_buf_name()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Copy Buf Abs Path\",\n                  order = 92,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      copy_buf_abs_path()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Copy Buf Abs Dir Path\",\n                  order = 92,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      copy_buf_abs_dir_path()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Copy Buf Relative Dir Path\",\n                  order = 92,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      copy_buf_relative_dir_path()\n                    end,\n                  },\n                },\n              },\n            },\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/duplicate.lua",
    "content": "vim.keymap.set(\"v\", \"<C-M-j>\", \"<CMD>VisualDuplicate +1<CR>\", { desc = \"Duplication\" })\nvim.keymap.set(\"v\", \"<C-M-k>\", \"<CMD>VisualDuplicate -1<CR>\", { desc = \"Duplication\" })\n\nreturn {\n  \"hinell/duplicate.nvim\",\n  event = \"VeryLazy\",\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/encode-decode.lua",
    "content": "--- Function to increment each character in the selected text, except blank characters (encode)\nlocal function encode_selected_chars()\n  local start_pos = vim.fn.getpos(\"'<\")\n  local end_pos = vim.fn.getpos(\"'>\")\n\n  local start_line = start_pos[2]\n  local start_col = start_pos[3]\n  local end_line = end_pos[2]\n  local end_col = end_pos[3]\n\n  -- Iterate through each line in the selected region\n  for line_num = start_line, end_line do\n    local line = vim.fn.getline(line_num)\n\n    local col_start = (line_num == start_line) and start_col or 1\n    local col_end = (line_num == end_line) and end_col or #line\n\n    local new_line = line:sub(1, col_start - 1)\n\n    -- Increment each character in the current line\n    for col = col_start, col_end do\n      local char = line:sub(col, col)\n      if char and char ~= \" \" and char ~= \"\\t\" then\n        local new_char = string.char(char:byte() + 1)\n        new_line = new_line .. new_char\n      else\n        new_line = new_line .. char\n      end\n    end\n\n    new_line = new_line .. line:sub(col_end + 1)\n\n    -- Replace the line in the buffer\n    vim.fn.setline(line_num, new_line)\n  end\nend\n\n--- Function to decrement each character in the selected text, except blank characters (decode)\nlocal function decode_selected_chars()\n  local start_pos = vim.fn.getpos(\"'<\")\n  local end_pos = vim.fn.getpos(\"'>\")\n\n  local start_line = start_pos[2]\n  local start_col = start_pos[3]\n  local end_line = end_pos[2]\n  local end_col = end_pos[3]\n\n  -- Iterate through each line in the selected region\n  for line_num = start_line, end_line do\n    local line = vim.fn.getline(line_num)\n\n    local col_start = (line_num == start_line) and start_col or 1\n    local col_end = (line_num == end_line) and end_col or #line\n\n    local new_line = line:sub(1, col_start - 1)\n\n    -- Decrement each character in the current line\n    for col = col_start, col_end do\n      local char = line:sub(col, col)\n      if char and char ~= \" \" and char ~= \"\\t\" then\n        local new_char = string.char(char:byte() - 1)\n        new_line = new_line .. new_char\n      else\n        new_line = new_line .. char\n      end\n    end\n\n    new_line = new_line .. line:sub(col_end + 1)\n\n    -- Replace the line in the buffer\n    vim.fn.setline(line_num, new_line)\n  end\nend\n\nvim.keymap.set({ \"n\", \"v\" }, \"<leader>ie\", encode_selected_chars)\nvim.keymap.set({ \"n\", \"v\" }, \"<leader>id\", decode_selected_chars)\n\n-- Revised Explanation:\n-- C-u in Keybinding:\n-- :<C-u> clears any existing command-line input. This ensures a clean state before running the Lua function.\n-- This is especially useful when mapping functions to visual mode keybindings because Vim could otherwise append the function call to any existing text on the command line, leading to errors.\n-- vim.api.nvim_set_keymap(\"v\", \"<leader>ie\", \":<c-u>lua encode_selected_chars()<cr>\", { noremap = true, silent = true })\n-- vim.api.nvim_set_keymap(\"v\", \"<leader>id\", \":<C-u>lua decode_selected_chars()<CR>\", { noremap = true, silent = true })\n\nreturn {}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/flash.lua",
    "content": "-- stylua: ignore start\n-- vim.keymap.set({ \"n\", \"x\", \"o\" }, \"ss\", function() require(\"flash\").treesitter() end, {})\n-- stylua: ignore end\nif true then\n  return {}\nend\n\nreturn {\n  \"folke/flash.nvim\",\n  event = \"VeryLazy\",\n\n  ---@type Flash.Config\n  opts = {\n    -- labels = \"abcdefghijklmnopqrstuvwxyz\",\n    labels = \"asdfghjklqwertyuiopzxcvbnm\",\n    search = {\n      -- search/jump in all windows\n      multi_window = true,\n      -- search direction\n      forward = true,\n      -- when `false`, find only matches in the given direction\n      wrap = true,\n      ---@type Flash.Pattern.Mode\n      -- Each mode will take ignorecase and smartcase into account.\n      -- * exact: exact match\n      -- * search: regular search\n      -- * fuzzy: fuzzy search\n      -- * fun(str): custom function that returns a pattern\n      --   For example, to only match at the beginning of a word:\n      --   mode = function(str)\n      --     return \"\\\\<\" .. str\n      --   end,\n      mode = \"exact\",\n      -- behave like `incsearch`\n      incremental = false,\n      -- Excluded filetypes and custom window filters\n      ---@type (string|fun(win:window))[]\n      exclude = {\n        \"notify\",\n        \"cmp_menu\",\n        \"noice\",\n        \"flash_prompt\",\n        function(win)\n          -- exclude non-focusable windows\n          return not vim.api.nvim_win_get_config(win).focusable\n        end,\n      },\n      -- Optional trigger character that needs to be typed before\n      -- a jump label can be used. It's NOT recommended to set this,\n      -- unless you know what you're doing\n      trigger = \"\",\n      -- max pattern length. If the pattern length is equal to this\n      -- labels will no longer be skipped. When it exceeds this length\n      -- it will either end in a jump or terminate the search\n      max_length = false, ---@type number|false\n    },\n    jump = {\n      -- save location in the jumplist\n      jumplist = true,\n      -- jump position\n      pos = \"start\", ---@type \"start\" | \"end\" | \"range\"\n      -- add pattern to search history\n      history = false,\n      -- add pattern to search register\n      register = false,\n      -- clear highlight after jump\n      nohlsearch = false,\n      -- automatically jump when there is only one match\n      autojump = false,\n      -- You can force inclusive/exclusive jumps by setting the\n      -- `inclusive` option. By default it will be automatically\n      -- set based on the mode.\n      inclusive = nil, ---@type boolean?\n      -- jump position offset. Not used for range jumps.\n      -- 0: default\n      -- 1: when pos == \"end\" and pos < current position\n      offset = nil, ---@type number\n    },\n    label = {\n      -- allow uppercase labels\n      uppercase = true,\n      -- add any labels with the correct case here, that you want to exclude\n      exclude = \"\",\n      -- add a label for the first match in the current window.\n      -- you can always jump to the first match with `<CR>`\n      current = true,\n      -- show the label after the match\n      after = true, ---@type boolean|number[]\n      -- show the label before the match\n      before = false, ---@type boolean|number[]\n      -- position of the label extmark\n      style = \"overlay\", ---@type \"eol\" | \"overlay\" | \"right_align\" | \"inline\"\n      -- flash tries to re-use labels that were already assigned to a position,\n      -- when typing more characters. By default only lower-case labels are re-used.\n      reuse = \"lowercase\", ---@type \"lowercase\" | \"all\" | \"none\"\n      -- for the current window, label targets closer to the cursor first\n      distance = true,\n      -- minimum pattern length to show labels\n      -- Ignored for custom labelers.\n      min_pattern_length = 0,\n      -- Enable this to use rainbow colors to highlight labels\n      -- Can be useful for visualizing Treesitter ranges.\n      rainbow = {\n        enabled = false,\n        -- number between 1 and 9\n        shade = 5,\n      },\n      -- With `format`, you can change how the label is rendered.\n      -- Should return a list of `[text, highlight]` tuples.\n      ---@class Flash.Format\n      ---@field state Flash.State\n      ---@field match Flash.Match\n      ---@field hl_group string\n      ---@field after boolean\n      ---@type fun(opts:Flash.Format): string[][]\n      format = function(opts)\n        return { { opts.match.label, opts.hl_group } }\n      end,\n    },\n    highlight = {\n      -- show a backdrop with hl FlashBackdrop\n      backdrop = true,\n      -- Highlight the search matches\n      matches = true,\n      -- extmark priority\n      priority = 5000,\n      groups = {\n        match = \"FlashMatch\",\n        current = \"FlashCurrent\",\n        backdrop = \"FlashBackdrop\",\n        label = \"FlashLabel\",\n      },\n    },\n    -- action to perform when picking a label.\n    -- defaults to the jumping logic depending on the mode.\n    ---@type fun(match:Flash.Match, state:Flash.State)|nil\n    action = nil,\n    -- initial pattern to use when opening flash\n    pattern = \"\",\n    -- When `true`, flash will try to continue the last search\n    continue = false,\n    -- Set config to a function to dynamically change the config\n    config = nil, ---@type fun(opts:Flash.Config)|nil\n    -- You can override the default options for a specific mode.\n    -- Use it with `require(\"flash\").jump({mode = \"forward\"})`\n    ---@type table<string, Flash.Config>\n    modes = {\n      -- options used when flash is activated through\n      -- a regular search with `/` or `?`\n      search = {\n        -- when `true`, flash will be activated during regular search by default.\n        -- You can always toggle when searching with `require(\"flash\").toggle()`\n        enabled = false,\n        highlight = { backdrop = false },\n        jump = { history = true, register = true, nohlsearch = true },\n        search = {\n          -- `forward` will be automatically set to the search direction\n          -- `mode` is always set to `search`\n          -- `incremental` is set to `true` when `incsearch` is enabled\n        },\n      },\n      -- options used when flash is activated through\n      -- `f`, `F`, `t`, `T`, `;` and `,` motions\n      char = {\n        enabled = true,\n        -- dynamic configuration for ftFT motions\n        config = function(opts)\n          -- autohide flash when in operator-pending mode\n          opts.autohide = opts.autohide or (vim.fn.mode(true):find(\"no\") and vim.v.operator == \"y\")\n\n          -- disable jump labels when not enabled, when using a count,\n          -- or when recording/executing registers\n          opts.jump_labels = opts.jump_labels\n            and vim.v.count == 0\n            and vim.fn.reg_executing() == \"\"\n            and vim.fn.reg_recording() == \"\"\n\n          -- Show jump labels only in operator-pending mode\n          -- opts.jump_labels = vim.v.count == 0 and vim.fn.mode(true):find(\"o\")\n        end,\n        -- hide after jump when not using jump labels\n        autohide = false,\n        -- show jump labels\n        jump_labels = false,\n        -- set to `false` to use the current line only\n        multi_line = true,\n        -- When using jump labels, don't use these keys\n        -- This allows using those keys directly after the motion\n        label = { exclude = \"hjkliardc\" },\n        -- by default all keymaps are enabled, but you can disable some of them,\n        -- by removing them from the list.\n        -- If you rather use another key, you can map them\n        -- to something else, e.g., { [\";\"] = \"L\", [\",\"] = H }\n        keys = { \"f\", \"F\", \"t\", \"T\", \";\", \",\" },\n        ---@alias Flash.CharActions table<string, \"next\" | \"prev\" | \"right\" | \"left\">\n        -- The direction for `prev` and `next` is determined by the motion.\n        -- `left` and `right` are always left and right.\n        char_actions = function(motion)\n          return {\n            [\";\"] = \"next\", -- set to `right` to always go right\n            [\",\"] = \"prev\", -- set to `left` to always go left\n            -- clever-f style\n            [motion:lower()] = \"next\",\n            [motion:upper()] = \"prev\",\n            -- jump2d style: same case goes next, opposite case goes prev\n            -- [motion] = \"next\",\n            -- [motion:match(\"%l\") and motion:upper() or motion:lower()] = \"prev\",\n          }\n        end,\n        search = { wrap = false },\n        highlight = { backdrop = true },\n        jump = {\n          register = false,\n          -- when using jump labels, set to 'true' to automatically jump\n          -- or execute a motion when there is only one match\n          autojump = false,\n        },\n      },\n      -- options used for treesitter selections\n      -- `require(\"flash\").treesitter()`\n      treesitter = {\n        labels = \"abcdefghijklmnopqrstuvwxyz\",\n        jump = { pos = \"range\", autojump = true },\n        search = { incremental = false },\n        label = { before = true, after = true, style = \"inline\" },\n        highlight = {\n          backdrop = false,\n          matches = false,\n        },\n      },\n      treesitter_search = {\n        jump = { pos = \"range\" },\n        search = { multi_window = true, wrap = true, incremental = false },\n        remote_op = { restore = true },\n        label = { before = true, after = true, style = \"inline\" },\n      },\n      -- options used for remote flash\n      remote = {\n        remote_op = { restore = true, motion = true },\n      },\n    },\n    -- options for the floating window that shows the prompt,\n    -- for regular jumps\n    -- `require(\"flash\").prompt()` is always available to get the prompt text\n    prompt = {\n      enabled = true,\n      prefix = { { \"⚡\", \"FlashPromptIcon\" } },\n      win_config = {\n        relative = \"editor\",\n        width = 1, -- when <=1 it's a percentage of the editor width\n        height = 1,\n        row = -1, -- when negative it's an offset from the bottom\n        col = 0, -- when negative it's an offset from the right\n        zindex = 1000,\n      },\n    },\n    -- options for remote operator pending mode\n    remote_op = {\n      -- restore window views and cursor position\n      -- after doing a remote operation\n      restore = false,\n      -- For `jump.pos = \"range\"`, this setting is ignored.\n      -- `true`: always enter a new motion when doing a remote operation\n      -- `false`: use the window's cursor position and jump target\n      -- `nil`: act as `true` for remote windows, `false` for the current window\n      motion = false,\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/flatten.lua",
    "content": "return {\n\n  -- Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance\n  {\n    \"willothy/flatten.nvim\",\n    config = true,\n    -- or pass configuration with\n    opts = {\n      window = {\n        -- Options:\n        -- current        -> open in current window (default)\n        -- alternate      -> open in alternate window (recommended)\n        -- tab            -> open in new tab\n        -- split          -> open in split\n        -- vsplit         -> open in vsplit\n        -- smart          -> smart open (avoids special buffers)\n        -- OpenHandler    -> allows you to handle file opening yourself (see Types)\n        --\n        open = \"alternate\",\n        -- Options:\n        -- vsplit         -> opens files in diff vsplits\n        -- split          -> opens files in diff splits\n        -- tab_vsplit     -> creates a new tabpage, and opens diff vsplits\n        -- tab_split      -> creates a new tabpage, and opens diff splits\n        -- OpenHandler    -> allows you to handle file opening yourself (see Types)\n        diff = \"tab_vsplit\",\n        -- Affects which file gets focused when opening multiple at once\n        -- Options:\n        -- \"first\"        -> open first file of new files (default)\n        -- \"last\"         -> open last file of new files\n        focus = \"first\",\n      },\n    },\n    -- Ensure that it runs first to minimize delay when opening file from terminal\n    lazy = false,\n    priority = 1001,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/fold.lua",
    "content": "return {\n  -- UFO folding\n  {\n    \"kevinhwang91/nvim-ufo\",\n    dependencies = {\n      \"kevinhwang91/promise-async\",\n      {\n        \"luukvbaal/statuscol.nvim\",\n        config = function()\n          local builtin = require(\"statuscol.builtin\")\n          require(\"statuscol\").setup({\n            relculright = true,\n            segments = {\n              { text = { builtin.foldfunc }, click = \"v:lua.ScFa\" },\n              { text = { \"%s\" }, click = \"v:lua.ScSa\" },\n              { text = { builtin.lnumfunc, \" \" }, click = \"v:lua.ScLa\" },\n            },\n          })\n        end,\n      },\n    },\n    event = \"BufReadPost\",\n    opts = {\n      provider_selector = function()\n        return { \"treesitter\", \"indent\" }\n      end,\n    },\n\n    init = function()\n      -- UFO folding\n      vim.o.foldcolumn = \"1\" -- '0' is not bad\n      vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value\n      vim.o.foldlevelstart = 99\n      vim.o.foldenable = true\n      vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]\n\n      vim.keymap.set(\"n\", \"<leader>zo\", require(\"ufo\").openAllFolds)\n      vim.keymap.set(\"n\", \"<leader>zc\", require(\"ufo\").closeAllFolds)\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/lazydev.lua",
    "content": "vim.api.nvim_create_user_command(\"PutMessage\", function()\n  vim.cmd([[put =execute('messages')]])\nend, {})\n\nreturn {\n  {\n    \"folke/lazydev.nvim\",\n    ft = \"lua\", -- only load on lua files\n    opts = {\n      library = {\n        -- Library items can be absolute paths\n        -- \"~/projects/my-awesome-lib\",\n        -- Or relative, which means they will be resolved as a plugin\n        -- \"LazyVim\",\n        -- When relative, you can also provide a path to the library in the plugin dir\n        \"luvit-meta/library\", -- see below\n      },\n    },\n  },\n  { \"Bilal2453/luvit-meta\", lazy = true }, -- optional `vim.uv` typings\n  { -- optional completion source for require statements and module annotations\n    \"hrsh7th/nvim-cmp\",\n    opts = function(_, opts)\n      opts.sources = opts.sources or {}\n      table.insert(opts.sources, {\n        name = \"lazydev\",\n        group_index = 0, -- set group index to 0 to skip loading LuaLS completions\n      })\n    end,\n  },\n  -- { \"folke/neodev.nvim\", enabled = false }, -- make sure to uninstall or disable neodev.nvim\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/leap.lua",
    "content": "return {\n  \"ggandor/leap.nvim\",\n  config = function()\n    -- Disable auto-jumping to the first match\n    require(\"leap\").opts.safe_labels = {}\n\n    -- The below settings make Leap's highlighting closer to what you've been\n    -- used to in Lightspeed.\n\n    vim.api.nvim_set_hl(0, \"LeapBackdrop\", { link = \"Comment\" }) -- or some grey\n    vim.api.nvim_set_hl(0, \"LeapMatch\", {\n      -- For light themes, set to 'black' or similar.\n      fg = \"white\",\n      bold = true,\n      nocombine = true,\n    })\n    -- Deprecated option. Try it without this setting first, you might find\n    -- you don't even miss it.\n    require(\"leap\").opts.highlight_unlabeled_phase_one_targets = true\n\n    vim.keymap.set(\"n\", \"s\", function()\n      require(\"leap\").leap({\n        target_windows = require(\"leap.user\").get_focusable_windows(),\n      })\n    end)\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/multi-cursor.lua",
    "content": "return { -- Multi Cursor\n  -- https://github.com/chrisgrieser/.config/blob/106d4eb2f039f1b9506fd5cfeed7e7d09f832e87/nvim/lua/plugins/bulk-processing.lua#L3C12-L3C12\n  \"mg979/vim-visual-multi\",\n  event = \"VeryLazy\",\n  init = function()\n    -- Multi-Cursor https://github.com/mg979/vim-visual-multi/blob/master/doc/vm-mappings.txt\n    -- vim.g.VM_leader = \"\\\\\"\n    vim.g.VM_theme = \"purplegray\"\n\n    vim.g.VM_maps = {\n      -- TODO: fix mappings <C-q> already been used to check project\n      -- permanent mappings\n      [\"Find Under\"] = \"<M-b>\",\n      [\"Find Subword Under\"] = \"<M-b>\", -- select some text firstly , then <M-b>\n\n      -- [\"Select Cursor Down\"] = \"<C-S-j>\", -- switch upper and lower window with <C-w>jk\n      -- [\"Select Cursor Up\"] = \"<C-S-k>\",\n      [\"Select Cursor Down\"] = \"<C-S-j>\",\n\n      -- [\"Start Regex Search\"] = \"<C-q>/\",\n      [\"Visual All\"] = \"\\\\A\", --  1. selected some text in visual mode 2. press <C-q>j to select all\n\n      -- buffer mappings\n      [\"Switch Mode\"] = \"v\",\n      [\"Skip Region\"] = \"q\",\n      [\"Remove Region\"] = \"Q\",\n      [\"Goto Next\"] = \"}\",\n      [\"Goto Prev\"] = \"{\",\n\n      -- [\"Duplicate\"] = \"<C-q>d\",\n\n      [\"Tools Menu\"] = \"\\\\t\",\n      [\"Case Conversion Menu\"] = \"C\",\n      [\"Align\"] = \"\\\\a\",\n    }\n\n    -- https://github.com/mg979/vim-visual-multi/wiki/Mappings#full-mappings-list\n    vim.g.VM_set_statusline = 0 -- already set via lualine component\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/preview-plantuml.lua",
    "content": "return {\n  \"https://gitlab.com/itaranto/plantuml.nvim\",\n  version = \"*\",\n  config = function()\n    require(\"plantuml\").setup()\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/project.lua",
    "content": "vim.keymap.set({ \"n\", \"v\" }, \"<C-q>\", \"<cmd>CdProject<cr>\")\n\nreturn {\n  {\n    -- \"LintaoAmons/cd-project.nvim\",\n    dir = \"/Volumes/t7ex/Documents/oatnil/release/cd-project.nvim\",\n    init = function()\n      require(\"cd-project\").setup({\n        projects_config_filepath = vim.fn.stdpath(\"data\") .. \"/cd-project.nvim.json\",\n        project_dir_pattern = { \".git\", \".gitignore\", \"Cargo.toml\", \"package.json\", \"go.mod\" },\n        projects_picker = \"telescope\", -- optional, you can switch to `telescope`\n        auto_register_project = true,\n        format_json = true,\n        hooks = {\n          {\n            trigger_point = \"BEFORE_CD\",\n            callback = function(_)\n              vim.print(\"before cd project\")\n              require(\"bookmarks\").api.mark({name = \"before cd project\"})\n            end,\n          },\n          {\n            callback = function(_)\n              require(\"telescope\").extensions.smart_open.smart_open({\n                cwd_only = true,\n                filename_first = false,\n              })\n            end,\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/scratch.lua",
    "content": "vim.keymap.set({ \"n\", \"v\", \"i\" }, \"<M-C-n>\", \"<cmd>Scratch<cr>\")\nvim.keymap.set({ \"n\", \"v\", \"i\" }, \"<M-C-o>\", \"<cmd>ScratchOpen<cr>\")\n\nreturn {\n  \"LintaoAmons/scratch.nvim\",\n  -- branch = \"dev\",\n  -- dir = \"/Volumes/t7ex/Documents/oatnil/release/scratch.nvim\",\n  config = function()\n    require(\"scratch\").setup({\n      scratch_file_dir = vim.fn.stdpath(\"cache\") .. \"/scratch.nvim\", -- where your scratch files will be put\n      filetypes = { \"lua\", \"js\", \"sh\", \"ts\", \"md\", \"txt\", \"http\", \"html\", \"puml\", \"py\" }, -- you can simply put filetype here\n      hooks = {\n        {\n          callback = function()\n            vim.print(\"hello\")\n            vim.api.nvim_buf_set_lines(0, 0, -1, false, { \"hello\", \"world\" })\n          end,\n        },\n      },\n      filetype_details = { -- or, you can have more control here\n        json = {}, -- empty table is fine\n        [\"project-name.md\"] = {\n          subdir = \"project-name\", -- group scratch files under specific sub folder\n        },\n        [\"yaml\"] = {},\n        go = {\n          requireDir = true, -- true if each scratch file requires a new directory\n          filename = \"main\", -- the filename of the scratch file in the new directory\n          content = { \"package main\", \"\", \"func main() {\", \"  \", \"}\" },\n          cursor = {\n            location = { 4, 2 },\n            insert_mode = true,\n          },\n        },\n      },\n      window_cmd = \"edit\", -- 'vsplit' | 'split' | 'edit' | 'tabedit' | 'rightbelow vsplit'\n      file_picker = \"fzflua\",\n      localKeys = {\n        {\n          filenameContains = { \"sh\" },\n          LocalKeys = {\n            {\n              cmd = \"<CMD>RunShellCurrentLine<CR>\",\n              key = \"<C-r>\",\n              modes = { \"n\", \"i\", \"v\" },\n            },\n          },\n        },\n      },\n    })\n  end,\n  event = \"VeryLazy\",\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/show-color.lua",
    "content": "return {\n  {\n    \"brenoprata10/nvim-highlight-colors\",\n    config = function()\n      -- Ensure termguicolors is enabled if not already\n      vim.opt.termguicolors = true\n\n      require(\"nvim-highlight-colors\").setup({})\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/smart-open.lua",
    "content": "local smart_open_cmd = function()\n  require(\"telescope\").extensions.smart_open.smart_open({\n    cwd_only = true,\n    filename_first = false,\n  })\nend\nvim.keymap.set(\"n\", \"<C-p>\", smart_open_cmd, { silent = true })\n\nlocal smart_open_all = function()\n  require(\"telescope\").extensions.smart_open.smart_open({\n    cwd_only = false,\n    filename_first = false,\n  })\nend\nvim.keymap.set(\"n\", \"<leader>fp\", smart_open_all)\nvim.api.nvim_create_user_command(\"SmartOpenAll\", smart_open_all, {})\n\nreturn {\n  {\n    \"danielfalk/smart-open.nvim\",\n    branch = \"0.2.x\",\n    config = function()\n      require(\"telescope\").load_extension(\"smart_open\")\n    end,\n    dependencies = {\n      \"kkharji/sqlite.lua\",\n      -- Only required if using match_algorithm fzf\n      { \"nvim-telescope/telescope-fzf-native.nvim\", build = \"make\" },\n      -- Optional.  If installed, native fzy will be used when match_algorithm is fzy\n      { \"nvim-telescope/telescope-fzy-native.nvim\" },\n    },\n  },\n\n  {\n    \"LintaoAmons/context-menu.nvim\",\n    opts = function()\n      require(\"context-menu\").setup({\n        close_menu = { \"q\", \"<ESC>\", \"<M-l>\" },\n        menu_items = {\n          {\n            order = 1,\n            keymap = \"o\",\n            cmd = \"OpenFileInAllPlace\",\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                vim.cmd([[SmartOpenAll]])\n              end,\n            },\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/surround.lua",
    "content": "return {\n  -- {\n  --   \"NStefan002/visual-surround.nvim\",\n  --   opts = {\n  --     surround_chars = { \"[\", \"]\", \"(\", \")\", \"'\", '\"', \"`\" },\n  --   },\n  -- },\n  {\n    \"kylechui/nvim-surround\",\n    event = \"VeryLazy\",\n    config = function()\n      require(\"nvim-surround\").setup({})\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/switch-case.lua",
    "content": "vim.keymap.set({ \"n\", \"x\" }, \"<leader>sc\", \"<cmd>TextCaseOpenTelescope<CR>\")\n\nreturn {\n  {\n    \"johmsalas/text-case.nvim\",\n    dependencies = { \"nvim-telescope/telescope.nvim\" },\n    config = function()\n      require(\"textcase\").setup({})\n      require(\"telescope\").load_extension(\"textcase\")\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/terminal-and-run.lua",
    "content": "local log = require(\"util.log\")\n\nlocal run_current_line = require(\"features.terminal-and-run\").run_current_line\nvim.keymap.set({ \"n\", \"v\" }, \"<leader>rl\", run_current_line)\nvim.api.nvim_create_user_command(\"RunCurrentLine\", run_current_line, {})\n\nlocal run_selected = function()\n  local editor = require(\"util.editor\")\n  local sys = require(\"util.base.sys\")\n  local stringUtil = require(\"util.base.strings\")\n  local selected = editor.buf.read.get_selected()\n  local stdout, _, stderr = sys.run_sync(stringUtil.split_cmd_string(selected), \".\")\n  local result = stdout or stderr\n  editor.buf.write.put_lines(result, \"l\", true, true)\n  pcall(sys.copy_to_system_clipboard, stringUtil.join(result, \"\\n\"))\nend\nvim.keymap.set({ \"n\", \"v\" }, \"<leader>rk\", run_selected)\nvim.api.nvim_create_user_command(\"RunSelected\", run_selected, {})\n\nlocal function cd_to_buffer_location()\n  local editor = require(\"util.editor\")\n  local cmd = \"cd \" .. editor.buf.read.get_buf_abs_dir_path()\n  local terminal = editor.get_first_visible_terminal()\n  if not terminal then\n    return log.error(\"No visible terminal found\")\n  end\n  editor.buf.write.send_to_terminal_buf(terminal.id, cmd)\n  vim.cmd([[TmuxNavigateDown]])\n  vim.cmd([[norm! i]])\nend\nvim.keymap.set({ \"n\", \"v\" }, \"<leader>si\", cd_to_buffer_location)\n\nlocal function run_current_file()\n  local cmd = function()\n    if vim.bo.ft == \"javascript\" then\n      vim.cmd([[!node %]])\n    elseif vim.bo.ft == \"html\" then\n      vim.cmd([[!open %]])\n    end\n  end\n\n  vim.keymap.set({ \"n\", \"v\" }, \"<M-r>\", cmd)\n  vim.api.nvim_create_user_command(\"RunFile\", cmd, {})\nend\nrun_current_file()\n\n-- local function popup_terminal()\n--   require(\"toggleterm.terminal\").Terminal\n--     :new({\n--       dir = \"git_dir\",\n--       direction = \"float\",\n--       float_opts = {\n--         border = \"double\",\n--       },\n--       -- function to run on opening the terminal\n--       on_open = function(term)\n--         vim.cmd(\"startinsert!\")\n--         vim.api.nvim_buf_set_keymap(\n--           term.bufnr,\n--           \"n\",\n--           \"q\",\n--           \"<cmd>close<CR>\",\n--           { noremap = true, silent = true }\n--         )\n--         vim.keymap.set({ \"n\", \"v\" }, \"<M-w>\", function()\n--           term:shutdown()\n--         end, { noremap = true, silent = true, buffer = term.bufnr })\n--       end,\n--       -- function to run on closing the terminal\n--       on_close = function(term)\n--         vim.api.nvim_buf_delete(term.bufnr, { force = true })\n--         vim.cmd(\"startinsert!\")\n--       end,\n--     })\n--     :toggle()\n-- end\n--\n-- REF: https://github.com/AstroNvim/astrocommunity/blob/d64d788e163f6d759e8a1adf4281dd5dd2841a78/lua/astrocommunity/terminal-integration/toggleterm-manager-nvim/init.lua\n-- if you only want these mappings for toggle term use term://*toggleterm#* instead\nfunction _G.set_terminal_keymaps()\n  local opts = { buffer = 0 }\n  vim.keymap.set(\"t\", \"<ESC>\", [[<C-\\><C-n>]], opts)\n  vim.keymap.set(\"t\", \"<C-h>\", [[<Cmd>wincmd h<CR>]], opts)\n  vim.keymap.set(\"t\", \"<C-j>\", [[<Cmd>wincmd j<CR>]], opts)\n  vim.keymap.set(\"t\", \"<C-k>\", [[<Cmd>wincmd k<CR>]], opts)\n  vim.keymap.set(\"t\", \"<C-l>\", [[<Cmd>wincmd l<CR>]], opts)\n  vim.keymap.set(\"t\", \"<C-t>\", [[<C-\\><C-n><C-t>]], opts)\n  vim.keymap.set(\"t\", \"<M-w>\", [[<Cmd>wincmd c<CR>]], opts)\n  vim.keymap.set(\"t\", \"<M-3>\", [[<C-\\><C-n><M-3>]], opts) -- toggle disposable terminal\nend\nvim.cmd(\"autocmd! TermOpen term://* lua set_terminal_keymaps()\")\n\nreturn {\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function()\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"Run File\",\n            order = 1,\n            not_ft = { \"markdown\", \"toggleterm\" },\n            action = {\n              type = \"callback\",\n              callback = function(context)\n                if context.ft == \"lua\" then\n                  return vim.cmd([[source %]])\n                elseif context.ft == \"javascript\" then\n                  local stdout = vim.fn.system(\"node \" .. vim.fn.expand(\"%:p\"))\n                  local result = require(\"util.base.strings\").split_into_lines(stdout)\n                  require(\"util.editor\").split_and_write(result, {})\n                elseif context.ft == \"typescript\" then\n                  local stdout = vim.fn.system(\"ts-node \" .. vim.fn.expand(\"%:p\"))\n                  local result = require(\"util.base.strings\").split_into_lines(stdout)\n                  require(\"util.editor\").split_and_write(result, {})\n                end\n              end,\n            },\n          },\n          {\n            cmd = \"Close Terminal\",\n            order = 1,\n            ft = { \"toggleterm\" },\n            action = {\n              type = \"callback\",\n              callback = function(context)\n                vim.cmd(\"bd!\")\n              end,\n            },\n          },\n          {\n            cmd = \"Terminal\",\n            keymap = \"t\",\n            action = {\n              type = \"sub_cmds\",\n              sub_cmds = {\n                {\n                  cmd = \"Select Terminal\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      vim.cmd(\"TermSelect\")\n                    end,\n                  },\n                },\n                {\n                  cmd = \"New Terminal :: Tab\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require(\"toggleterm.terminal\").Terminal\n                        :new({\n                          display_name = \"Tab\",\n                          direction = \"tab\",\n                          dir = vim.fn.expand(\"%:p:h\"),\n                          auto_scroll = true, -- automatically scroll to the bottom on terminal output\n                        })\n                        :toggle()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Close Terminal\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      vim.cmd(\"bd!\")\n                    end,\n                  },\n                },\n              },\n            },\n          },\n          -- {\n          --   cmd = \"Popup Terminal\",\n          --   order = 1,\n          --   not_ft = { \"markdown\" },\n          --   action = {\n          --     type = \"callback\",\n          --     callback = function(_)\n          --       popup_terminal()\n          --     end,\n          --   },\n          -- },\n        },\n      })\n    end,\n  },\n\n  {\n    \"akinsho/toggleterm.nvim\",\n    version = \"*\",\n    config = function()\n      require(\"toggleterm\").setup({\n        size = 20,\n      })\n      -- init base terminal\n      local new_base_term = function()\n        return require(\"toggleterm.terminal\").Terminal:new({\n          display_name = \"Base\",\n          count = 1,\n          direction = \"horizontal\",\n          dir = vim.fn.expand(\"%:p:h\"),\n          auto_scroll = true, -- automatically scroll to the bottom on terminal output\n        })\n      end\n      new_base_term():spawn()\n\n      local function toggle_term()\n        local all = require(\"toggleterm.terminal\").get_all(true)\n        if #all == 0 then\n          new_base_term():toggle()\n        else\n          vim.cmd(\"ToggleTermToggleAll\")\n        end\n      end\n      vim.keymap.set(\"n\", \"<M-3>\", toggle_term)\n\n      vim.keymap.set(\"n\", \"<leader>sl\", \":ToggleTermSendCurrentLine<cr>\")\n      vim.keymap.set(\"v\", \"<leader>sk\", \":ToggleTermSendVisualSelection<cr>\")\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/text-objects.lua",
    "content": "return {\n  \"echasnovski/mini.ai\",\n  version = \"*\",\n  config = function()\n    require(\"mini.ai\").setup()\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/editor-enhance/trouble.lua",
    "content": "return {\n  \"folke/trouble.nvim\",\n  opts = {}, -- for default options, refer to the configuration section for custom setup.\n  cmd = \"Trouble\",\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/git/context-menu.lua",
    "content": "return {\n  \"LintaoAmons/context-menu.nvim\",\n  dependencies = {\n    { \"sindrets/diffview.nvim\" },\n    { \"lewis6991/gitsigns.nvim\" },\n    { \"isakbm/gitgraph.nvim\" },\n  },\n  opts = function()\n    require(\"context-menu\").setup({\n      menu_items = {\n        {\n          cmd = \"Git\",\n          keymap = \"g\",\n          order = 85,\n          action = {\n            type = \"sub_cmds\",\n            sub_cmds = {\n              {\n                cmd = \"Git Status\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[DiffviewOpen]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Branch History\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[DiffviewFileHistory]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Current File Commit History\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[DiffviewFileHistory %]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Commit Log Diagram\",\n                order = 86,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"gitgraph\").draw({}, { all = true, max_count = 5000 })\n                  end,\n                },\n              },\n              {\n                cmd = \"Git :: Blame\",\n                order = 85,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[Gitsigns blame]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Git :: Peek\",\n                order = 80,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[Gitsigns preview_hunk]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Git :: Reset Hunk\",\n                order = 81,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[Gitsigns reset_hunk]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Git :: Reset Buffer\",\n                order = 82,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    vim.cmd([[Gitsigns reset_buffer]])\n                  end,\n                },\n              },\n              {\n                cmd = \"Git :: Diff Current Buffer\",\n                order = 83,\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"gitsigns\").diffthis()\n                  end,\n                },\n              },\n            },\n          },\n        },\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/git/diffview.lua",
    "content": "local gitStatus = \"DiffviewOpen\"\nvim.keymap.set(\"n\", \"<M-0>\", \"<cmd>\" .. gitStatus .. \"<cr>\")\nvim.api.nvim_create_user_command(\"GitStatus\", gitStatus, {})\n\nreturn {\n  \n  {\n    \"sindrets/diffview.nvim\",\n    event = \"VeryLazy\",\n    dependencies = \"nvim-lua/plenary.nvim\",\n    config = function()\n      local action = require(\"diffview.actions\")\n      require(\"diffview\").setup({\n        keymaps = {\n          view = {\n            [\"r\"] = function()\n              vim.cmd(\"GitResetHunk\")\n              vim.notify(\"Reset hunk\")\n              vim.cmd(\"DiffviewRefresh\")\n            end,\n            [\"gf\"] = function()\n              local diffview_tab = vim.api.nvim_get_current_tabpage()\n              action.goto_file_edit()\n              vim.api.nvim_command(\"tabclose \" .. diffview_tab)\n            end,\n          },\n          file_history_panel = {\n            { \"n\", \"fa\", \"g!=a\", { remap = true } },\n            { \"n\", \"ff\", \"g!--\", { remap = true } },\n          },\n          file_panel = {\n            -- stash staged changes\n            -- TODO: Add context menu\n            -- [\"<M-k>S\"] = function()\n            --   vim.ui.input({ prompt = \"Stash msg: \" }, function(msg)\n            --     local Job = require(\"plenary.job\")\n            --     local stderr = {}\n            --     Job:new({\n            --       command = \"git\",\n            --       args = { \"stash\", \"-m\", msg },\n            --       cwd = \".\",\n            --       on_stderr = function(_, data)\n            --         table.insert(stderr, data)\n            --       end,\n            --     }):sync()\n            --   end)\n            -- end,\n\n            [\"c\"] = function()\n              vim.ui.input({ prompt = \"Commit msg: \" }, function(msg)\n                local Job = require(\"plenary.job\")\n                local stderr = {}\n                Job:new({\n                  command = \"git\",\n                  args = { \"commit\", \"-m\", msg },\n                  cwd = \".\",\n                  on_stderr = function(_, data)\n                    table.insert(stderr, data)\n                  end,\n                }):sync()\n              end)\n            end,\n\n            [\"p\"] = function()\n              vim.notify(\"Start to push\")\n              local Job = require(\"plenary.job\")\n              local stderr = {}\n              Job:new({\n                command = \"git\",\n                args = { \"push\" },\n                cwd = \".\",\n                on_stdout = function(_, data)\n                  vim.notify(\"Pushed to remote\")\n                end,\n                on_stderr = function(_, data)\n                  table.insert(stderr, data)\n                end,\n              }):start()\n            end,\n          },\n        },\n        view = {\n          default = {\n            winbar_info = true,\n          },\n          file_history = {\n            winbar_info = true,\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/git/gitgraph.lua",
    "content": "local function gitgraph()\n  local cmd = function()\n    require(\"gitgraph\").draw({}, { all = true, max_count = 5000 })\n  end\n  vim.keymap.set(\"n\", \"<leader>gl\", cmd, { desc = \"new git graph\" })\nend\ngitgraph()\n\nreturn {\n  \"isakbm/gitgraph.nvim\",\n  dependencies = { \"sindrets/diffview.nvim\" },\n  ---@type I.GGConfig\n  opts = {\n    symbols = {\n      merge_commit = \"M\",\n      commit = \"*\",\n    },\n    format = {\n      timestamp = \"%H:%M:%S %d-%m-%Y\",\n      fields = { \"hash\", \"timestamp\", \"author\", \"branch_name\", \"tag\" },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/git/gitsign.lua",
    "content": "local prev_hunk = function()\n  require(\"gitsigns\").prev_hunk({ navigation_message = false })\n  vim.cmd([[normal! zz]])\nend\nvim.keymap.set(\"n\", \"gk\", prev_hunk)\n\nlocal next_hunk = function()\n  require(\"gitsigns\").next_hunk({ navigation_message = false })\n  vim.cmd([[normal! zz]])\nend\nvim.keymap.set(\"n\", \"gj\", next_hunk)\n\nreturn {\n  -- git signs highlights text that has changed since the list\n  -- git commit, and also lets you interactively stage & unstage\n  -- hunks in a commit.\n  {\n    \"lewis6991/gitsigns.nvim\",\n    opts = {\n      signs = {\n        add = { text = \"▎\" },\n        change = { text = \"▎\" },\n        delete = { text = \"\" },\n        topdelete = { text = \"\" },\n        changedelete = { text = \"▎\" },\n        untracked = { text = \"▎\" },\n      },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/git/neogit.lua",
    "content": "\nreturn {\n  \"NeogitOrg/neogit\",\n  dependencies = {\n    \"nvim-lua/plenary.nvim\",         -- required\n    \"sindrets/diffview.nvim\",        -- optional - Diff integration\n\n    -- Only one of these is needed.\n    \"nvim-telescope/telescope.nvim\", -- optional\n    \"ibhagwan/fzf-lua\",              -- optional\n    \"echasnovski/mini.pick\",         -- optional\n  },\n  config = true\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/init.lua",
    "content": "return {\n  { import = \"plugins.editor-core\" },\n  { import = \"plugins.lang-core\" },\n  { import = \"plugins.git\" },\n\n  { import = \"plugins.editor-enhance\" },\n  { import = \"plugins.lang\" },\n  { import = \"plugins.ui\" },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/css.lua",
    "content": "return {\n  \"luckasRanarison/tailwind-tools.nvim\",\n  name = \"tailwind-tools\",\n  build = \":UpdateRemotePlugins\",\n  dependencies = {\n    \"nvim-treesitter/nvim-treesitter\",\n    \"nvim-telescope/telescope.nvim\", -- optional\n  },\n  opts = {}, -- your configuration\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/go.lua",
    "content": "return {\n  -- # Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    -- use opts to extend the ensure_installed table\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, { \"go\", \"gomod\", \"gowork\", \"gosum\" })\n    end,\n  },\n\n  -- # LSP\n  -- ## ensure_install lang specfic LSP\n  {\n    \"williamboman/mason.nvim\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, { \"gopls\" })\n    end,\n  },\n  {\n    \"williamboman/mason-lspconfig.nvim\",\n    opts = function(_, opts)\n      -- ## extend the servers table\n      opts.servers = opts.servers or {}\n      opts.servers.lua_ls = {\n          settings = {\n            gopls = {\n              gofumpt = true,\n              codelenses = {\n                gc_details = false,\n                generate = true,\n                regenerate_cgo = true,\n                run_govulncheck = true,\n                test = true,\n                tidy = true,\n                upgrade_dependency = true,\n                vendor = true,\n              },\n              hints = {\n                assignVariableTypes = true,\n                compositeLiteralFields = true,\n                compositeLiteralTypes = true,\n                constantValues = true,\n                functionTypeParameters = true,\n                parameterNames = true,\n                rangeVariableTypes = true,\n              },\n              analyses = {\n                fieldalignment = true,\n                nilness = true,\n                unusedparams = true,\n                unusedwrite = true,\n                useany = true,\n              },\n              usePlaceholders = true,\n              completeUnimported = true,\n              staticcheck = true,\n              directoryFilters = { \"-.git\", \"-.vscode\", \"-.idea\", \"-.vscode-test\", \"-node_modules\" },\n              semanticTokens = true,\n            },\n          },\n        }\n    end,\n  },\n\n  -- Debug\n  {\n    \"williamboman/mason.nvim\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, { \"delve\" })\n    end,\n  },\n\n  {\n    \"nvimtools/none-ls.nvim\",\n    optional = true,\n    dependencies = {\n      {\n        \"williamboman/mason.nvim\",\n        opts = { ensure_installed = { \"gomodifytags\", \"impl\" } },\n      },\n    },\n    opts = function(_, opts)\n      local nls = require(\"null-ls\")\n      opts.sources = vim.list_extend(opts.sources or {}, {\n        nls.builtins.code_actions.gomodifytags,\n        nls.builtins.code_actions.impl,\n        nls.builtins.formatting.goimports,\n        nls.builtins.formatting.gofumpt,\n      })\n    end,\n  },\n  {\n    \"stevearc/conform.nvim\",\n    optional = true,\n    opts = {\n      formatters_by_ft = {\n        go = { \"goimports\", \"gofumpt\" },\n      },\n    },\n  },\n  {\n    \"mfussenegger/nvim-dap\",\n    optional = true,\n    dependencies = {\n      {\n        \"leoluz/nvim-dap-go\",\n        opts = {},\n      },\n    },\n  },\n  {\n    \"nvim-neotest/neotest\",\n    optional = true,\n    dependencies = {\n      \"fredrikaverpil/neotest-golang\",\n    },\n    opts = {\n      adapters = {\n        [\"neotest-golang\"] = {\n          -- Here we can set options for neotest-golang, e.g.\n          -- go_test_args = { \"-v\", \"-race\", \"-count=1\", \"-timeout=60s\" },\n          dap_go_enabled = true, -- requires leoluz/nvim-dap-go\n        },\n      },\n    },\n  },\n\n  -- Filetype icons\n  {\n    \"echasnovski/mini.icons\",\n    opts = {\n      file = {\n        [\".go-version\"] = { glyph = \"\", hl = \"MiniIconsBlue\" },\n      },\n      filetype = {\n        gotmpl = { glyph = \"󰟓\", hl = \"MiniIconsGrey\" },\n      },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/helm.lua",
    "content": "return {\n  { \"towolf/vim-helm\", ft = \"helm\" },\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, { \"helm\" })\n    end,\n  },\n\n  {\n    \"neovim/nvim-lspconfig\",\n    opts = {\n      servers = {\n        helm_ls = {},\n      },\n      setup = {\n        yamlls = function()\n          vim.api.nvim_create_autocmd(\"LspAttach\", {\n            pattern = \"*.helm\",\n            callback = function(args)\n              local buffer = args.buf\n              local client = vim.lsp.get_client_by_id(args.data.client_id)\n              if client and client.name == \"yamlls\" then\n                if vim.bo[buffer].filetype == \"helm\" then\n                  vim.schedule(function()\n                    vim.cmd(\"LspStop ++force yamlls\")\n                  end)\n                end\n              end\n            end,\n          })\n        end,\n      },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/http.lua",
    "content": "local group_name = \"langHttp\"\nvim.api.nvim_create_augroup(group_name, { clear = true })\n\n-- Set indentation to 2 spaces\nvim.api.nvim_create_autocmd({ \"BufRead\", \"BufNewFile\" }, {\n  group = group_name,\n  pattern = {\n    \"*.http\",\n  },\n  command = \"setlocal ft=http\",\n})\n\nreturn {\n  {\n    \"LintaoAmons/context-menu.nvim\",\n    dependencies = {\n      \"mistweaverco/kulala.nvim\",\n    },\n    opts = function()\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"Send HTTP Request\",\n            fix = 1,\n            ft = { \"http\" },\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                require(\"kulala\").run()\n              end,\n            },\n          },\n          {\n            cmd = \"HTTP\",\n            fix = 2,\n            ft = { \"http\" },\n            action = {\n              type = \"sub_cmds\",\n              sub_cmds = {\n                {\n                  cmd = \"Re Run\",\n                  fix = 1,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require(\"kulala\").replay()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Copy Curl\",\n                  fix = 1,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require(\"kulala\").copy()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"From Curl\",\n                  fix = 1,\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require(\"kulala\").from_curl()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Set Env\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require('kulala').set_selected_env()\n                    end,\n                  },\n                },\n                {\n                  cmd = \"Get Current Env\",\n                  action = {\n                    type = \"callback\",\n                    callback = function(_)\n                      require('kulala').get_selected_env()\n                    end,\n                  },\n                },\n              },\n            },\n          },\n        },\n      })\n    end,\n  },\n\n  -- HTTP REST-Client Interface\n  {\n    \"mistweaverco/kulala.nvim\",\n    config = function()\n      -- -- Setup is required, even if you don't pass any options\n      require(\"kulala\").setup({\n        default_view = \"headers_body\",\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/json.lua",
    "content": "local jq_query = function()\n  local sys = require(\"util.base.sys\")\n  local editor = require(\"util.editor\")\n\n  vim.ui.input({ prompt = 'Query pattern, e.g. `.[] | .[\"@message\"].message` ' }, function(pattern)\n    local absPath = editor.buf.read.get_buf_abs_path()\n    local stdout, _, stderr = sys.run_sync({ \"jq\", pattern, absPath }, \".\")\n    local result = stdout or stderr\n    editor.split_and_write(result, { vertical = true, ft = \"json\" })\n  end)\nend\nvim.keymap.set({ \"n\", \"v\" }, \"rq\", jq_query)\n\nreturn {\n  -- # Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      -- ## use opts to extend the ensure_installed table\n      vim.g.config_utils.opts_ensure_installed(opts, { \"json\", \"jsonc\" })\n    end,\n  },\n\n  -- # Format\n  {\n    \"stevearc/conform.nvim\",\n    opts = {\n      formatters_by_ft = {\n        json = { \"jq\", \"prettierd\", stop_after_first = true },\n        json5 = { \"prettierd\" },\n        jsonc = { \"prettierd\" },\n      },\n    },\n  },\n\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function(_, opts)\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"Jq Query\",\n            ft = { \"json\" },\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                jq_query()\n              end,\n            },\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/jsts.lua",
    "content": "local group_name = \"langJsTs\"\nvim.api.nvim_create_augroup(group_name, { clear = true })\n\n-- use as example to show how to automatically set the indentation of a specific filetype\n-- Set indentation to 2 spaces\nvim.api.nvim_create_autocmd({ \"BufRead\", \"BufNewFile\" }, {\n  group = group_name,\n  pattern = {\n    \"*.js\",\n    \"*.ts\",\n  },\n  command = \"setlocal shiftwidth=2 tabstop=2\",\n})\n\nreturn {\n  -- # Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, {\n        \"javascript\",\n        \"typescript\",\n        \"tsx\",\n        \"jsdoc\",\n        \"prisma\",\n      })\n    end,\n  },\n\n  -- # LSP\n  {\n    \"williamboman/mason-lspconfig.nvim\",\n    dependencies = {\n      {\n        -- NOTE: use vtsls instead of typescript-language-server\n        \"yioneko/nvim-vtsls\",\n        lazy = true,\n        opts = {},\n        config = function()\n          require(\"vtsls\").config({})\n        end,\n      },\n    },\n    opts = function(_, opts)\n      -- ## ensure install lang specfic LSP\n      vim.g.config_utils.opts_ensure_installed(opts, { \"lua_ls\" })\n\n      -- ## extend the servers table\n      opts.servers = opts.servers or {}\n\n      opts.servers.tsserver = {\n        enabled = false,\n      }\n      opts.servers.vtsls = {\n        -- explicitly add default filetypes, so that we can extend\n        -- them in related extras\n        filetypes = {\n          \"javascript\",\n          \"javascriptreact\",\n          \"javascript.jsx\",\n          \"typescript\",\n          \"typescriptreact\",\n          \"typescript.tsx\",\n        },\n        settings = {\n          complete_function_calls = true,\n          vtsls = {\n            enableMoveToFileCodeAction = true,\n            autoUseWorkspaceTsdk = true,\n            experimental = {\n              completion = {\n                enableServerSideFuzzyMatch = true,\n              },\n            },\n          },\n          typescript = {\n            updateImportsOnFileMove = { enabled = \"always\" },\n            suggest = {\n              completeFunctionCalls = true,\n            },\n            inlayHints = {\n              enumMemberValues = { enabled = true },\n              functionLikeReturnTypes = { enabled = true },\n              parameterNames = { enabled = \"literals\" },\n              parameterTypes = { enabled = true },\n              propertyDeclarationTypes = { enabled = true },\n              variableTypes = { enabled = false },\n            },\n          },\n        },\n      }\n    end,\n  },\n\n  -- # Format\n  {\n    \"stevearc/conform.nvim\",\n    -- use opts to extend the formatters_by_ft table\n    opts = function(_, opts)\n      opts.formatters_by_ft[\"javascript\"] = { \"prettier\" }\n      opts.formatters_by_ft[\"typescript\"] = { \"prettier\" }\n      opts.formatters_by_ft[\"tsx\"] = { \"prettier\" }\n      opts.formatters_by_ft[\"jsx\"] = { \"prettier\" }\n      opts.formatters_by_ft[\"jsdoc\"] = { \"prettier\" }\n    end,\n  },\n\n  -- # Debug\n  {\n    \"microsoft/vscode-js-debug\",\n    build = \"npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out\",\n  },\n  {\n    \"mxsdev/nvim-dap-vscode-js\",\n    config = function()\n      require(\"dap-vscode-js\").setup({\n        debugger_path = vim.fn.resolve(vim.fn.stdpath(\"data\") .. \"/lazy/vscode-js-debug\"),\n        adapters = { \"chrome\", \"pwa-node\", \"pwa-chrome\", \"pwa-msedge\", \"pwa-extensionHost\" },\n      })\n    end,\n  },\n  -- ## Parse launch.json\n  { \"Joakker/lua-json5\", build = \"./install.sh\" },\n  {\n    \"mfussenegger/nvim-dap\",\n    optional = true,\n    opts = function()\n      local dap = require(\"dap\")\n      if not dap.adapters[\"pwa-node\"] then\n        require(\"dap\").adapters[\"pwa-node\"] = {\n          type = \"server\",\n          host = \"localhost\",\n          port = \"${port}\",\n          executable = {\n            command = \"node\",\n            -- 💀 Make sure to update this path to point to your installation\n            args = {\n              require(\"mason-registry\").get_package(\"js-debug-adapter\"):get_install_path()\n                .. \"/js-debug/src/dapDebugServer.js\",\n              \"${port}\",\n            },\n          },\n        }\n      end\n      for _, language in ipairs({ \"typescript\", \"javascript\", \"typescriptreact\", \"javascriptreact\" }) do\n        dap.configurations[language] = {\n          {\n            type = \"pwa-node\",\n            request = \"launch\",\n            name = \"Launch file\",\n            program = \"${file}\",\n            cwd = \"${workspaceFolder}\",\n          },\n          {\n            type = \"pwa-node\",\n            request = \"launch\",\n            name = \"Launch Current File (pwa-node with ts-node)\",\n            -- cwd = vim.fn.getcwd(),\n            cwd = \"${workspaceFolder}\",\n            -- runtimeArgs = { \"--loader\", \"ts-node/esm\" },\n            runtimeExecutable = \"ts-node\",\n            args = { \"${file}\" },\n            sourceMaps = true,\n            protocol = \"inspector\",\n            skipFiles = { \"<node_internals>/**\", \"node_modules/**\" },\n            resolveSourceMapLocations = {\n              \"${workspaceFolder}/**\",\n              \"!**/node_modules/**\",\n            },\n          },\n          {\n            type = \"pwa-node\",\n            request = \"attach\",\n            name = \"Attach\",\n            processId = require(\"dap.utils\").pick_process,\n            cwd = \"${workspaceFolder}\",\n          },\n        }\n      end\n    end,\n  },\n}\n\n-- REFs:\n-- - https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/lang/typescript.lua\n-- - https://github.com/AstroNvim/astrocommunity/blob/f219659b67b246584c421074d73db0a941af5cbd/lua/astrocommunity/pack/typescript/init.lua\n-- - https://github.com/anasrar/.dotfiles/blob/4c444c3ab2986db6ca7e2a47068222e47fd232e2/neovim/.config/nvim/lua/rin/DAP/languages/typescript.lua\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/lua-and-example.lua",
    "content": "vim.api.nvim_create_augroup(\"langLua\", { clear = true })\n\n-- Set indentation to 2 spaces\nvim.api.nvim_create_autocmd({ \"BufRead\", \"BufNewFile\" }, {\n  group = \"langLua\",\n  pattern = {\n    \"*.lua\",\n  },\n  command = \"setlocal shiftwidth=2 tabstop=2 expandtab\",\n})\n\nreturn {\n  -- # Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      -- ## use opts to extend the ensure_installed table\n      vim.g.config_utils.opts_ensure_installed(opts, {\n        \"lua\",\n        \"luadoc\",\n      })\n    end,\n  },\n\n  -- # LSP\n  {\n    \"williamboman/mason-lspconfig.nvim\",\n    opts = function(_, opts)\n      -- ## ensure_install lang specfic LSP\n      vim.g.config_utils.opts_ensure_installed(opts, { \"lua_ls\" })\n\n      -- ## extend the servers table\n      opts.servers = opts.servers or {}\n      opts.servers.lua_ls = {\n        -- cmd = {...},\n        -- filetypes = { ...},\n        -- capabilities = {},\n        settings = {\n          Lua = {\n            completion = {\n              callSnippet = \"Replace\",\n            },\n            -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings\n            -- diagnostics = { disable = { 'missing-fields' } },\n          },\n        },\n      }\n    end,\n  },\n\n  -- # Format\n  {\n    \"stevearc/conform.nvim\",\n    -- use opts to extend the formatters_by_ft table\n    opts = function(_, opts)\n      opts.formatters_by_ft[\"lua\"] = { \"stylua\" }\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/markdown.lua",
    "content": "return {\n\n  -- # Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      -- ## use opts to extend the ensure_installed table\n      vim.g.config_utils.opts_ensure_installed(opts, {\n        \"markdown\",\n        \"markdown_inline\",\n      })\n    end,\n  },\n\n  -- # LSP\n  -- ## ensure_install lang specfic LSP\n  {\n    \"williamboman/mason.nvim\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, { \"marksman\" })\n    end,\n  },\n  {\n    \"williamboman/mason-lspconfig.nvim\",\n    opts = function(_, opts)\n      -- ## use opts to extend the ensure_installed table\n      vim.g.config_utils.opts_ensure_installed(opts, { \"marksman\" })\n    end,\n  },\n\n  -- # Format\n  {\n    \"stevearc/conform.nvim\",\n    -- use opts to extend the formatters_by_ft table\n    opts = function(_, opts)\n      opts.formatters_by_ft[\"markdown\"] = { \"prettierd\" }\n    end,\n  },\n\n  {\n    -- dir = \"/Volumes/t7ex/Documents/Github/markdown-toc.nvim\",\n    \"LintaoAmons/markdown-toc.nvim\",\n    ft = \"markdown\", -- Lazy load on markdown filetype\n    cmd = { \"Mtoc\" }, -- Or, lazy load on \"Mtoc\" command\n    opts = {\n      headings = {\n        -- Include headings before the ToC (or current line for `:Mtoc insert`)\n        before_toc = false,\n        -- Either list of lua patterns,\n        -- or a function that returns boolean (true means to EXCLUDE heading)\n        exclude = {},\n        pattern = \"^(#+)%s+(.+)$\",\n      },\n    },\n  },\n  {\n    \"MeanderingProgrammer/render-markdown.nvim\",\n    opts = {\n      file_types = { \"markdown\", \"Avante\" },\n    },\n    ft = { \"markdown\", \"Avante\" },\n  },\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function()\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"Toggle Markdown View\",\n            order = 1,\n            ft = { \"markdown\" },\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                if vim.opt.conceallevel ~= 0 then\n                  vim.opt.conceallevel = 0\n                else\n                  vim.opt.conceallevel = 2\n                end\n                vim.cmd([[Markview]])\n              end,\n            },\n          },\n          {\n            fix = 1,\n            cmd = \"Markdown Preview\",\n            ft = { \"markdown\" },\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                vim.cmd([[MarkdownPreview]])\n              end,\n            },\n          },\n          {\n            fix = 1,\n            cmd = \"Markdown TOC generation\",\n            ft = { \"markdown\" },\n            action = {\n              type = \"callback\",\n              callback = function(_)\n                vim.cmd([[Mtoc]])\n              end,\n            },\n          },\n        },\n      })\n    end,\n  },\n\n  {\n    \"mzlogin/vim-markdown-toc\",\n    ft = { \"markdown\" },\n    -- GenTocGitLab, GenTocMarded\n  },\n  {\n    \"HakonHarnes/img-clip.nvim\",\n    event = \"BufEnter\",\n    branch = \"fix/insert-base64-markup\",\n    opts = {\n      filetypes = {\n        markdown = {\n          relative_to_current_file = true,\n          dir_path = function()\n            return \"asset_\" .. vim.fn.expand(\"%:t:r\")\n          end,\n        },\n      },\n      default = {\n        dir_path = \"relative\", -- directory path to save images to, can be relative (cwd or current file) or absolute\n        file_name = \"%Y-%m-%d-%H-%M-%S\", -- file name format (see lua.org/pil/22.1.html)\n        url_encode_path = false, -- encode spaces and special characters in file path\n        use_absolute_path = false, -- expands dir_path to an absolute path\n        relative_to_current_file = false, -- make dir_path relative to current file rather than the cwd\n        relative_template_path = true, -- make file path in the template relative to current file rather than the cwd\n        prompt_for_file_name = true, -- ask user for file name before saving, leave empty to use default\n        show_dir_path_in_prompt = false, -- show dir_path in prompt when prompting for file name\n        use_cursor_in_template = true, -- jump to cursor position in template after pasting\n        insert_mode_after_paste = true, -- enter insert mode after pasting the markup code\n        embed_image_as_base64 = true, -- paste image as base64 string instead of saving to file\n        -- process_cmd = \"convert -quality 25 - -\",\n        max_base64_size = 200, -- max size of base64 string in KB\n        template = \"$FILE_PATH\", -- default template\n\n        drag_and_drop = {\n          enabled = true, -- enable drag and drop mode\n          insert_mode = false, -- enable drag and drop in insert mode\n          copy_images = false, -- copy images instead of using the original file\n          download_images = true, -- download images and save them to dir_path instead of using the URL\n        },\n      },\n    },\n  },\n  {\n    \"iamcco/markdown-preview.nvim\",\n    cmd = { \"MarkdownPreviewToggle\", \"MarkdownPreview\", \"MarkdownPreviewStop\" },\n    ft = { \"markdown\" },\n    build = function()\n      vim.fn[\"mkdp#util#install\"]()\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/prisma.lua",
    "content": "vim.api.nvim_create_augroup(\"langPrisma\", { clear = true })\n\nvim.api.nvim_create_autocmd({ \"BufRead\", \"BufNewFile\" }, {\n  group = \"langPrisma\",\n  pattern = {\n    \"*.prisma\",\n  },\n  command = \"setlocal shiftwidth=2 tabstop=2\",\n})\n\nreturn {}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/python.lua",
    "content": "return {\n  {\n    \"stevearc/conform.nvim\",\n    opts = function(_, opts)\n      opts.formatters_by_ft[\"python\"] = { \"ruff_format\" }\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/sh.lua",
    "content": "return {\n  -- # Format\n  {\n    \"stevearc/conform.nvim\",\n    opts = function(_, opts)\n      opts.formatters_by_ft[\"sh\"] = { \"shfmt\" }\n      opts.formatters_by_ft[\"zsh\"] = { \"shfmt\" }\n    end,\n  },\n  {\n\"LintaoAmons/context-menu.nvim\",\n    opts = function(_, opts)\n      require(\"context-menu\").setup({\n        menu_items = {\n          {\n            cmd = \"RunCurrentLine\",\n            fix = 1,\n            ft = { \"sh\" },\n            action = {\n              type = \"callback\",\n              callback = function(context)\n                local stdout = vim.fn.system(context.line)\n                local lines = require(\"util.base.strings\").split_into_lines(stdout)\n                vim.api.nvim_set_current_buf(context.buffer)\n                vim.api.nvim_put(lines, \"l\", true, true)\n              end,\n            },\n          },\n        },\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/terraform.lua",
    "content": "-- lang-core.formatting.lua conform.nvim\n-- lang-core.lint.lua nvim-lint.nvim\n-- lang-core.tresitter nvim-treesitter\n\nreturn {\n  {\n    \"stevearc/conform.nvim\",\n    opts = {\n      formatters_by_ft = {\n        tf = { \"terraform_fmt\" },\n        terraform = { \"terraform_fmt\" },\n        [\"terraform-vars\"] = { \"terraform_fmt\" },\n      },\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/test-menu.lua",
    "content": "return {\n  \"LintaoAmons/context-menu.nvim\",\n  dependencies = {\n    { \"sindrets/diffview.nvim\" },\n    { \"lewis6991/gitsigns.nvim\" },\n    { \"isakbm/gitgraph.nvim\" },\n  },\n  opts = function()\n    require(\"context-menu\").setup({\n      menu_items = {\n        {\n          cmd = \"Test\",\n          action = {\n            type = \"sub_cmds\",\n            sub_cmds = {\n              {\n                cmd = \"Run Current File\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.run(vim.fn.expand(\"%\"))\n                  end,\n                },\n              },\n              {\n                cmd = \"Run Nearest\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.run()\n                  end,\n                },\n              },\n              -- {\n              --   cmd = \"Debug Nearest\",\n              --   action = {\n              --     type = \"callback\",\n              --     callback = function(_)\n              --       require(\"neotest\").run.run({strategy = \"dap\"})\n              --     end,\n              --   },\n              -- },\n              {\n                cmd = \"Run Last\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.run_last()\n                  end,\n                },\n              },\n              {\n                cmd = \"Run Suite\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.run({ suite = true })\n                  end,\n                },\n              },\n              {\n                cmd = \"Stop Nearest\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.stop()\n                  end,\n                },\n              },\n              {\n                cmd = \"Attach Nearest\",\n                action = {\n                  type = \"callback\",\n                  callback = function(_)\n                    require(\"neotest\").run.attach()\n                  end,\n                },\n              },\n              {\n                cmd = \"Output Panel\",\n                action = {\n                  type = \"sub_cmds\",\n                  sub_cmds = {\n                    {\n                      cmd = \"Open\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").output_panel.open()\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Close\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").output_panel.close()\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Toggle\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").output_panel.toggle()\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Clear\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").output_panel.clear()\n                        end,\n                      },\n                    },\n                  },\n                },\n              },\n              {\n                cmd = \"Watch\",\n                action = {\n                  type = \"sub_cmds\",\n                  sub_cmds = {\n                    {\n                      cmd = \"Toggle Current File\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").watch.toggle(vim.fn.expand(\"%\"))\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Stop All\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").watch.stop()\n                        end,\n                      },\n                    },\n                  },\n                },\n              },\n              {\n                cmd = \"Summary\",\n                action = {\n                  type = \"sub_cmds\",\n                  sub_cmds = {\n                    {\n                      cmd = \"Open\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").summary.open()\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Close\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").summary.close()\n                        end,\n                      },\n                    },\n                    {\n                      cmd = \"Toggle\",\n                      action = {\n                        type = \"callback\",\n                        callback = function(_)\n                          require(\"neotest\").summary.toggle()\n                        end,\n                      },\n                    },\n                  },\n                },\n              },\n            },\n          },\n        },\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang/vim.lua",
    "content": "return {\n  -- Syntax hightlight\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    opts = function(_, opts)\n      vim.g.config_utils.opts_ensure_installed(opts, {\n        \"vim\",\n        \"vimdoc\",\n      })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/cmp.lua",
    "content": "return {\n  -- use CmpStatus to check the running cmp sources\n  -- auto completion\n  {\n    \"onsails/lspkind-nvim\",\n    event = \"InsertEnter\",\n    config = function()\n      local lspkind = require(\"lspkind\")\n      local cmp = require(\"cmp\")\n      cmp.setup({\n        formatting = {\n          format = lspkind.cmp_format({\n            mode = \"symbol\", -- show only symbol annotations\n            maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)\n            -- can also be a function to dynamically calculate max width such as\n            -- maxwidth = function() return math.floor(0.45 * vim.o.columns) end,\n            ellipsis_char = \"...\", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)\n            show_labelDetails = true, -- show labelDetails in menu. Disabled by default\n            symbol_map = { Supermaven = \"\" },\n\n            -- The function below will be called before any actual modifications from lspkind\n            -- so that you can provide more controls on popup customization. (See [#30](https://github.com/onsails/lspkind-nvim/pull/30))\n          }),\n        },\n      })\n    end,\n  },\n  {\n    \"hrsh7th/nvim-cmp\",\n    version = false, -- last release is way too old\n    event = \"InsertEnter\",\n    dependencies = {\n      \"hrsh7th/cmp-nvim-lsp\",\n      \"hrsh7th/cmp-buffer\",\n      \"hrsh7th/cmp-path\",\n    },\n    opts = function()\n      vim.api.nvim_set_hl(0, \"CmpGhostText\", { link = \"Comment\", default = true })\n      local cmp = require(\"cmp\")\n      local defaults = require(\"cmp.config.default\")()\n      return {\n        completion = {\n          completeopt = \"menu,menuone,noinsert\",\n        },\n        mapping = cmp.mapping.preset.insert({\n          [\"<C-b>\"] = cmp.mapping.scroll_docs(-4),\n          [\"<C-f>\"] = cmp.mapping.scroll_docs(4),\n          [\"<C-Space>\"] = cmp.mapping.complete(),\n          [\"<CR>\"] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.\n          -- [\"<S-CR>\"] = cmp.mapping.confirm({\n          --   behavior = cmp.ConfirmBehavior.Replace,\n          --   select = true,\n          -- }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.\n          -- [\"<C-CR>\"] = function(fallback)\n          --   cmp.abort()\n          --   fallback()\n          -- end,\n        }),\n        sources = cmp.config.sources({\n          { name = \"nvim_lsp\" },\n          { name = \"path\" },\n          { name = \"supermaven\" },\n        }, {\n          { name = \"buffer\" },\n        }),\n        -- experimental = {\n        --   ghost_text = {\n        --     hl_group = \"CmpGhostText\",\n        --   },\n        -- },\n        sorting = defaults.sorting,\n      }\n    end,\n    ---@param opts cmp.ConfigSchema\n    config = function(_, opts)\n      for _, source in ipairs(opts.sources) do\n        source.group_index = source.group_index or 1\n      end\n      require(\"cmp\").setup(opts)\n    end,\n  },\n\n  {\n    \"hrsh7th/cmp-cmdline\",\n    keys = { \":\", \"/\", \"?\" }, -- lazy load cmp on more keys along with insert mode\n    dependencies = { \"hrsh7th/nvim-cmp\" },\n    opts = function()\n      local cmp = require(\"cmp\")\n      return {\n        {\n          type = \"/\",\n          mapping = cmp.mapping.preset.cmdline(),\n          sources = {\n            { name = \"buffer\" },\n          },\n        },\n        {\n          type = \":\",\n          mapping = cmp.mapping.preset.cmdline({\n\n            [\"<Down>\"] = {\n              c = function(fallback)\n                if cmp.visible() then\n                  cmp.select_next_item()\n                else\n                  fallback()\n                end\n              end,\n            },\n            [\"<Up>\"] = {\n              c = function(fallback)\n                if cmp.visible() then\n                  cmp.select_prev_item()\n                else\n                  fallback()\n                end\n              end,\n            },\n            [\"<Tab>\"] = {\n              c = function(fallback)\n                if cmp.visible() then\n                  cmp.select_next_item()\n                  cmp.select_prev_item()\n                else\n                  fallback()\n                end\n              end,\n            },\n          }),\n          sources = cmp.config.sources({\n            { name = \"path\" },\n          }, {\n            {\n              name = \"cmdline\",\n              option = {\n                ignore_cmds = { \"Man\", \"!\" },\n              },\n            },\n          }),\n        },\n      }\n    end,\n    config = function(_, opts)\n      local cmp = require(\"cmp\")\n      vim.tbl_map(function(val)\n        cmp.setup.cmdline(val.type, val)\n      end, opts)\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/debug.lua",
    "content": "local function setup_keybinding_and_commands()\n  local toggle_debug_ui = function()\n    require(\"dapui\").toggle()\n  end\n  vim.api.nvim_create_user_command(\"ToggleDebugUI\", toggle_debug_ui, {})\n\n  local eval = function()\n    require(\"dapui\").eval()\n  end\n  vim.keymap.set(\"n\", \"<M-5>\", eval)\n  vim.api.nvim_create_user_command(\"DebugEval\", eval, {})\n\n  local start_or_continue = function()\n    if vim.fn.filereadable(\"./vscode/launch.json\") then\n      local dap_vscode = require(\"dap.ext.vscode\")\n      dap_vscode.load_launchjs(nil, {})\n    end\n    require(\"dap\").continue()\n  end\n  vim.keymap.set(\"n\", \"<F5>\", start_or_continue)\n  vim.api.nvim_create_user_command(\"DebugStartOrContinue\", start_or_continue, {})\n\n  local step_over = function()\n    require(\"dap\").step_over()\n  end\n  vim.keymap.set(\"n\", \"<F8>\", step_over)\n  vim.api.nvim_create_user_command(\"DebugStepOver\", step_over, {})\n\n  local step_into = function()\n    require(\"dap\").step_into()\n  end\n  vim.keymap.set(\"n\", \"<F7>\", step_into)\n  vim.api.nvim_create_user_command(\"DebugStepInto\", step_into, {})\n\n  local terminate = function()\n    require(\"dap\").terminate()\n  end\n  vim.keymap.set(\"n\", \"<M-F2>\", terminate)\n  vim.api.nvim_create_user_command(\"DebugStop\", terminate, {})\n\n  local toggle_break_point = function()\n    require(\"dap\").toggle_breakpoint()\n  end\n  vim.keymap.set(\"n\", \"<F9>\", toggle_break_point)\n  vim.api.nvim_create_user_command(\"DebugToggleBreakpoint\", toggle_break_point, {})\nend\nsetup_keybinding_and_commands()\n\nreturn {\n  -- fancy UI for the debugger\n  {\n    \"rcarriga/nvim-dap-ui\",\n    dependencies = { \"nvim-neotest/nvim-nio\" },\n    config = function(_, opts)\n      -- setup dap config by VsCode launch.json file\n      -- require(\"dap.ext.vscode\").load_launchjs()\n      local dap = require(\"dap\")\n      local dapui = require(\"dapui\")\n      dapui.setup(opts)\n      dap.listeners.after.event_initialized[\"dapui_config\"] = function()\n        dapui.open({})\n        -- vim.g.is_debuging = true\n      end\n    end,\n  },\n\n  {\n    \"theHamsta/nvim-dap-virtual-text\",\n    config = function()\n      require(\"nvim-dap-virtual-text\").setup({\n        enabled = true, -- enable this plugin (the default)\n        enabled_commands = true, -- create commands DapVirtualTextEnable, DapVirtualTextDisable, DapVirtualTextToggle, (DapVirtualTextForceRefresh for refreshing when debug adapter did not notify its termination)\n        highlight_changed_variables = true, -- highlight changed values with NvimDapVirtualTextChanged, else always NvimDapVirtualText\n        highlight_new_as_changed = false, -- highlight new variables in the same way as changed variables (if highlight_changed_variables)\n        show_stop_reason = true, -- show stop reason when stopped for exceptions\n        commented = false, -- prefix virtual text with comment string\n        only_first_definition = true, -- only show virtual text at first definition (if there are multiple)\n        all_references = false, -- show virtual text on all all references of the variable (not only definitions)\n        clear_on_continue = false, -- clear virtual text on \"continue\" (might cause flickering when stepping)\n        --- A callback that determines how a variable is displayed or whether it should be omitted\n        --- @param variable Variable https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable\n        --- @param buf number\n        --- @param stackframe dap.StackFrame https://microsoft.github.io/debug-adapter-protocol/specification#Types_StackFrame\n        --- @param node userdata tree-sitter node identified as variable definition of reference (see `:h tsnode`)\n        --- @param options nvim_dap_virtual_text_options Current options for nvim-dap-virtual-text\n        --- @return string|nil A text how the virtual text should be displayed or nil, if this variable shouldn't be displayed\n        display_callback = function(variable, buf, stackframe, node, options)\n          -- by default, strip out new line characters\n          if options.virt_text_pos == \"inline\" then\n            return \" = \" .. variable.value:gsub(\"%s+\", \" \")\n          else\n            return variable.name .. \" = \" .. variable.value:gsub(\"%s+\", \" \")\n          end\n        end,\n        -- position of virtual text, see `:h nvim_buf_set_extmark()`, default tries to inline the virtual text. Use 'eol' to set to end of line\n        virt_text_pos = vim.fn.has(\"nvim-0.10\") == 1 and \"inline\" or \"eol\",\n\n        -- experimental features:\n        all_frames = false, -- show virtual text for all stack frames not only current. Only works for debugpy on my machine.\n        virt_lines = false, -- show virtual lines instead of virtual text (will flicker!)\n        virt_text_win_col = nil, -- position the virtual text at a fixed window column (starting from the first text column) ,\n        -- e.g. 80 to position at column 80, see `:h nvim_buf_set_extmark()`\n      })\n    end,\n  },\n\n  {\n    \"mfussenegger/nvim-dap\",\n\n    dependencies = {\n\n      -- mason.nvim integration\n      {\n        \"jay-babu/mason-nvim-dap.nvim\",\n        dependencies = \"mason.nvim\",\n        cmd = { \"DapInstall\", \"DapUninstall\" },\n        opts = {\n          -- Makes a best effort to setup the various debuggers with\n          -- reasonable debug configurations\n          automatic_installation = true,\n\n          -- You can provide additional configuration to the handlers,\n          -- see mason-nvim-dap README for more information\n          handlers = {},\n\n          -- You'll need to check that you have the required things installed\n          -- online, please don't ask me how to install them :)\n          ensure_installed = {\n            -- Update this to ensure that you have the debuggers for the langs you want\n          },\n        },\n      },\n    },\n\n    config = function()\n      -- stylua ignore\n      vim.fn.sign_define(\"DapBreakpoint\", { text = \"🔴\", linehl = \"DapBreakpoint\" })\n      vim.fn.sign_define(\"DapStopped\", { text = \"▶️\", linehl = \"DapBreakpointStopped\" })\n      vim.fn.sign_define(\"DapBreakpointCondition\", { text = \" \" })\n      vim.fn.sign_define(\"DapLogPoint\", { text = \".>\" })\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/find-and-replace.lua",
    "content": "vim.keymap.set({ \"n\", \"v\" }, \"<C-f>\", function()\n  require(\"grug-far\").grug_far()\nend)\n\nreturn {\n  \"MagicDuck/grug-far.nvim\",\n  config = function()\n    require(\"grug-far\").setup({\n      wrap = false,\n      keymaps = {\n        replace = { n = \"<localleader>r\" },\n        qflist = { n = \"<localleader>q\" },\n        syncLocations = { n = \"<localleader>s\" },\n        syncLine = { n = \"<localleader>l\" },\n        close = { n = \"<localleader>c\" },\n        historyOpen = { n = \"<localleader>t\" },\n        historyAdd = { n = \"<localleader>a\" },\n        refresh = { n = \"<localleader>f\" },\n        openLocation = { n = \"<localleader>o\" },\n        openNextLocation = { n = \"<down>\" },\n        openPrevLocation = { n = \"<up>\" },\n        gotoLocation = { n = \"<enter>\" },\n        pickHistoryEntry = { n = \"<enter>\" },\n        abort = { n = \"<localleader>b\" },\n        help = { n = \"g?\" },\n        toggleShowCommand = { n = \"<localleader>p\" },\n        swapEngine = { n = \"<localleader>e\" },\n        previewLocation = { n = \"<localleader>i\" },\n        swapReplacementInterpreter = { n = \"<localleader>x\" },\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/formatting.lua",
    "content": "(function()\n  local formatFunc = function(args)\n    local range = nil\n    if args and args.count ~= -1 then\n      local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1]\n      range = {\n        start = { args.line1, 0 },\n        [\"end\"] = { args.line2, end_line:len() },\n      }\n    end\n    require(\"conform\").format({ async = true, lsp_fallback = true, range = range })\n  end\n  vim.keymap.set(\"n\", \"<leader>fm\", formatFunc)\n  vim.api.nvim_create_user_command(\"Format\", formatFunc, { range = true })\nend)()\n\nlocal prettier_supported = {\n  \"css\",\n  \"graphql\",\n  \"handlebars\",\n  \"html\",\n  \"javascript\",\n  \"javascriptreact\",\n  \"json\",\n  \"jsonc\",\n  \"less\",\n  \"markdown\",\n  \"markdown.mdx\",\n  \"scss\",\n  \"typescript\",\n  \"typescriptreact\",\n  \"vue\",\n  \"yaml\",\n}\n\nreturn {\n  \"stevearc/conform.nvim\",\n\n  opts = {\n    formatters_by_ft = {\n      xml = { \"xmlformat\" },\n    },\n  },\n  config = function(_, opts)\n    for _, ft in ipairs(prettier_supported) do\n      opts.formatters_by_ft[ft] = { \"prettier\" }\n    end\n    require(\"conform\").setup(opts)\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/lint.lua",
    "content": "return {\n  \"mfussenegger/nvim-lint\",\n  config = function()\n    -- TODO: find a way to modulize the config\n    require(\"lint\").linters_by_ft = {\n      markdown = { \"vale\" },\n\n      tf = { \"tfsec\" },\n      terraform = { \"tfsec\" },\n      [\"terraform-vars\"] = { \"tfsec\" },\n    }\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/lsp.lua",
    "content": "local goto_definition = function()\n  vim.cmd(\"Lspsaga goto_definition\")\n  vim.cmd([[normal! zz]])\nend\nvim.keymap.set(\"n\", \"gd\", goto_definition)\nvim.api.nvim_create_user_command(\"GotoDefinition\", goto_definition, {})\n\nlocal goto_function_name = \"AerialPrev\"\nvim.keymap.set(\"n\", \"gm\", \"<cmd>\" .. goto_function_name .. \"<cr>\")\nvim.api.nvim_create_user_command(\"GoToFunctionName\", goto_function_name, {})\n\nlocal function go_to_ref()\n  local cmd = \"Lspsaga finder\"\n  vim.keymap.set(\"n\", \"gr\", \"<cmd>\" .. cmd .. \"<cr>\")\n  vim.api.nvim_create_user_command(\"GoToReference\", cmd, {})\nend\ngo_to_ref()\n\nlocal function go_to_type_def()\n  local cmd = \"Lspsaga goto_type_definition\"\n  vim.keymap.set(\"n\", \"gt\", \"<cmd>\" .. cmd .. \"<cr>\")\n  vim.api.nvim_create_user_command(\"GoToTypeDefinition\", cmd, {})\nend\ngo_to_type_def()\n\nlocal function goto_error_then_hint()\n  local pos_equal = function(p1, p2)\n    local r1, c1 = unpack(p1)\n    local r2, c2 = unpack(p2)\n    return r1 == r2 and c1 == c2\n  end\n\n  local cmd = function()\n    local pos = vim.api.nvim_win_get_cursor(0)\n    vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR, wrap = true })\n    local pos2 = vim.api.nvim_win_get_cursor(0)\n    if pos_equal(pos, pos2) then\n      vim.diagnostic.goto_next({ wrap = true })\n    end\n  end\n  vim.keymap.set(\"n\", \"]e\", cmd)\nend\ngoto_error_then_hint()\n\nlocal function rename()\n  local cmd = \"Lspsaga rename\"\n  vim.keymap.set(\"n\", \"<leader>rn\", \"<cmd>\" .. cmd .. \"<cr>\")\nend\nrename()\n\nlocal function goto_error_then_hint_prev()\n  local pos_equal = function(p1, p2)\n    local r1, c1 = unpack(p1)\n    local r2, c2 = unpack(p2)\n    return r1 == r2 and c1 == c2\n  end\n\n  local cmd = function()\n    local pos = vim.api.nvim_win_get_cursor(0)\n    vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR, wrap = true })\n    local pos2 = vim.api.nvim_win_get_cursor(0)\n    if pos_equal(pos, pos2) then\n      vim.diagnostic.goto_prev({ wrap = true })\n    end\n  end\n  vim.keymap.set(\"n\", \"[e\", cmd)\nend\ngoto_error_then_hint_prev()\n\n--  This function gets run when an LSP attaches to a particular buffer.\n--    That is to say, every time a new file is opened that is associated with\n--    an lsp (for example, opening `main.rs` is associated with `rust_analyzer`) this\n--    function will be executed to configure the current buffer\nvim.api.nvim_create_autocmd(\"LspAttach\", {\n  group = vim.api.nvim_create_augroup(\"kickstart-lsp-attach\", { clear = true }),\n  callback = function(event)\n    -- The following two autocommands are used to highlight references of the\n    -- word under your cursor when your cursor rests there for a little while.\n    --    See `:help CursorHold` for information about when this is executed\n    --\n    -- When you move your cursor, the highlights will be cleared (the second autocommand).\n    local client = vim.lsp.get_client_by_id(event.data.client_id)\n    if client and client.server_capabilities.documentHighlightProvider then\n      local highlight_augroup =\n        vim.api.nvim_create_augroup(\"kickstart-lsp-highlight\", { clear = false })\n      vim.api.nvim_create_autocmd({ \"CursorHold\", \"CursorHoldI\" }, {\n        buffer = event.buf,\n        group = highlight_augroup,\n        callback = vim.lsp.buf.document_highlight,\n      })\n\n      vim.api.nvim_create_autocmd({ \"CursorMoved\", \"CursorMovedI\" }, {\n        buffer = event.buf,\n        group = highlight_augroup,\n        callback = vim.lsp.buf.clear_references,\n      })\n\n      vim.api.nvim_create_autocmd(\"LspDetach\", {\n        group = vim.api.nvim_create_augroup(\"kickstart-lsp-detach\", { clear = true }),\n        callback = function(event2)\n          vim.lsp.buf.clear_references()\n          vim.api.nvim_clear_autocmds({\n            group = \"kickstart-lsp-highlight\",\n            buffer = event2.buf,\n          })\n        end,\n      })\n    end\n\n    if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then\n      vim.keymap.set(\"n\", \"<leader>th\", function()\n        vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())\n      end, { desc = \"[T]oggle Inlay [H]ints\" })\n    end\n  end,\n})\n\nreturn {\n  -- Mason install and manage LSP servers\n  {\n    \"williamboman/mason.nvim\",\n    config = function(_, opts)\n      require(\"mason\").setup()\n    end,\n  },\n\n  -- mason-lspconfig.nvim closes some gaps that exist between mason.nvim and lspconfig.\n  {\n    \"williamboman/mason-lspconfig.nvim\",\n    config = function(_, opts)\n      -- Enable the following language servers\n      --  Feel free to add/remove any LSPs that you want here. They will automatically be installed.\n      --\n      --  Add any additional override configuration in the following tables. Available keys are:\n      --  - cmd (table): Override the default command used to start the server\n      --  - filetypes (table): Override the default list of associated filetypes for the server\n      --  - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.\n      --  - settings (table): Override the default settings passed when initializing the server.\n      --        For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/\n      local servers = opts.servers or {}\n\n      -- you can extend the servers table inside lang specific config\n      -- for example, in ../lang/lua-and-example.lua\n      -- servers.lua_ls = {\n      --   -- cmd = {...},\n      --   -- filetypes = { ...},\n      --   -- capabilities = {},\n      --   settings = {\n      --     Lua = {\n      --       completion = {\n      --         callSnippet = \"Replace\",\n      --       },\n      --       -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings\n      --       -- diagnostics = { disable = { 'missing-fields' } },\n      --     },\n      --   },\n      -- }\n\n      -- TODO: put this in to config of `neovim/nvim-lspconfig`\n      local capabilities = vim.lsp.protocol.make_client_capabilities()\n      capabilities =\n        vim.tbl_deep_extend(\"force\", capabilities, require(\"cmp_nvim_lsp\").default_capabilities())\n      local config = {\n        ensure_installed = opts.ensure_installed,\n        handlers = {\n          function(server_name)\n            local server = servers[server_name] or {}\n            server.capabilities =\n              vim.tbl_deep_extend(\"force\", {}, capabilities, server.capabilities or {})\n            require(\"lspconfig\")[server_name].setup(server)\n          end,\n        },\n      }\n      -- vim.print(config) -- uncommant this line to see the config\n      require(\"mason-lspconfig\").setup(config)\n    end,\n  },\n\n  -- LSP Configuration & Plugins\n  {\n    \"neovim/nvim-lspconfig\",\n    dependencies = {\n      -- Useful status updates for LSP.\n      -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`\n      { \"j-hui/fidget.nvim\", opts = {} },\n    },\n    config = function(_, opts) end,\n  },\n  {\n    \"ray-x/lsp_signature.nvim\",\n    event = \"VeryLazy\",\n    opts = {},\n    config = function()\n      require(\"lsp_signature\").setup({\n        floating_window = false,\n        hint_prefix = \"\", -- Panda for parameter, NOTE: for the terminal not support emoji, might crash\n        -- or, provide a table with 3 icons\n        -- hint_prefix = {\n        --     above = \"↙ \",  -- when the hint is on the line above the current line\n        --     current = \"← \",  -- when the hint is on the same line\n        --     below = \"↖ \"  -- when the hint is on the line below the current line\n        -- }\n        hint_scheme = \"String\",\n        hint_inline = function()\n          return false\n        end,\n      })\n    end,\n  },\n\n  {\n    \"WhoIsSethDaniel/mason-tool-installer.nvim\",\n    optional = true,\n    config = function()\n      require(\"mason-tool-installer\").setup({\n\n        -- a list of all tools you want to ensure are installed upon\n        -- start\n        ensure_installed = {\n\n          -- you can pin a tool to a particular version\n          -- { \"golangci-lint\", version = \"v1.47.0\" },\n\n          -- you can turn off/on auto_update per tool\n          { \"bash-language-server\", auto_update = true },\n\n          -- frontend\n          -- frontend.tailwindcss\n          \"tailwindcss-language-server\",\n\n          -- terraform\n          \"terraform-ls\",\n          \"tflint\",\n          \"tfsec\",\n\n          \"lua-language-server\",\n          \"vim-language-server\",\n          \"stylua\",\n          \"shellcheck\",\n          \"editorconfig-checker\",\n\n          \"impl\",\n          \"json-to-struct\",\n          \"luacheck\",\n          \"misspell\",\n          \"shellcheck\",\n          \"shfmt\",\n          \"staticcheck\",\n          -- golang\n          -- \"gopls\",\n          -- \"gofumpt\",\n          -- \"golines\",\n          -- \"gomodifytags\",\n          -- \"gotests\",\n          --\n          -- \"revive\",\n          -- \"vint\",\n        },\n\n        -- if set to true this will check each tool for updates. If updates\n        -- are available the tool will be updated. This setting does not\n        -- affect :MasonToolsUpdate or :MasonToolsInstall.\n        -- Default: false\n        auto_update = false,\n\n        -- automatically install / update on startup. If set to false nothing\n        -- will happen on startup. You can use :MasonToolsInstall or\n        -- :MasonToolsUpdate to install tools and check for updates.\n        -- Default: true\n        run_on_start = true,\n\n        -- set a delay (in ms) before the installation starts. This is only\n        -- effective if run_on_start is set to true.\n        -- e.g.: 5000 = 5 second delay, 10000 = 10 second delay, etc...\n        -- Default: 0\n        start_delay = 3000, -- 3 second delay\n\n        -- Only attempt to install if 'debounce_hours' number of hours has\n        -- elapsed since the last time Neovim was started. This stores a\n        -- timestamp in a file named stdpath('data')/mason-tool-installer-debounce.\n        -- This is only relevant when you are using 'run_on_start'. It has no\n        -- effect when running manually via ':MasonToolsInstall' etc....\n        -- Default: nil\n        debounce_hours = 5, -- at least 5 hours between attempts to install/update\n\n        -- By default all integrations are enabled. If you turn on an integration\n        -- and you have the required module(s) installed this means you can use\n        -- alternative names, supplied by the modules, for the thing that you want\n        -- to install. If you turn off the integration (by setting it to false) you\n        -- cannot use these alternative names. It also suppresses loading of those\n        -- module(s) (assuming any are installed) which is sometimes wanted when\n        -- doing lazy loading.\n        integrations = {\n          [\"mason-lspconfig\"] = true,\n          [\"mason-null-ls\"] = true,\n          [\"mason-nvim-dap\"] = true,\n        },\n      })\n    end,\n  },\n\n  {\n    \"nvimdev/lspsaga.nvim\",\n    config = function()\n      require(\"lspsaga\").setup({\n        -- symbol_in_winbar = {\n        --   enable = false,\n        -- },\n        lightbulb = {\n          enable = false,\n          enable_in_insert = false,\n          -- sign = true,\n          -- sign_priority = 40,\n          -- virtual_text = false,\n        },\n        outline = {\n          auto_preview = false,\n        },\n        definition = {\n          keys = {\n            edit = \"o\",\n          },\n        },\n      })\n    end,\n    event = \"LspAttach\",\n    dependencies = {\n      \"nvim-treesitter/nvim-treesitter\", -- optional\n      \"nvim-tree/nvim-web-devicons\", -- optional\n    },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/refactor.lua",
    "content": "-- vim.keymap.set({\"n\", \"v\"}, \"<leader>ev\", \"Refactor extract_var\", {})\n\nreturn {\n  {\n    \"ThePrimeagen/refactoring.nvim\",\n    dependencies = {\n      \"nvim-lua/plenary.nvim\",\n      \"nvim-treesitter/nvim-treesitter\",\n    },\n    config = function()\n      require(\"refactoring\").setup({})\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/snippet.lua",
    "content": "return {\n  {\n    \"L3MON4D3/LuaSnip\",\n    build = (not jit.os:find(\"Windows\"))\n        and \"echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp\"\n      or nil,\n    dependencies = {\n      {\n        \"rafamadriz/friendly-snippets\",\n        config = function()\n          require(\"luasnip.loaders.from_vscode\").lazy_load()\n        end,\n      },\n      {\n        \"nvim-cmp\",\n        dependencies = {\n          \"saadparwaiz1/cmp_luasnip\",\n        },\n        opts = function(_, opts)\n          opts.snippet = {\n            expand = function(args)\n              require(\"luasnip\").lsp_expand(args.body)\n            end,\n          }\n          table.insert(opts.sources, { name = \"luasnip\" })\n        end,\n      },\n    },\n    opts = function(_, opts)\n      local ls = require(\"luasnip\")\n      local types = require(\"luasnip.util.types\")\n      ls.setup({\n        keep_roots = true,\n        link_roots = true,\n        link_children = true,\n\n        -- Update more often, :h events for more info.\n        update_events = \"TextChanged,TextChangedI\",\n        -- Snippets aren't automatically removed if their text is deleted.\n        -- `delete_check_events` determines on which events (:h events) a check for\n        -- deleted snippets is performed.\n        -- This can be especially useful when `history` is enabled.\n        delete_check_events = \"TextChanged\",\n        ext_opts = {\n          [types.choiceNode] = {\n            active = {\n              virt_text = { { \"choiceNode\", \"Comment\" } },\n            },\n          },\n        },\n        -- treesitter-hl has 100, use something higher (default is 200).\n        ext_base_prio = 300,\n        -- minimal increase in priority.\n        ext_prio_increase = 1,\n        enable_autosnippets = true,\n        -- mapping for cutting selected text so it's usable as SELECT_DEDENT,\n        -- SELECT_RAW or TM_SELECTED_TEXT (mapped via xmap).\n        store_selection_keys = \"<Tab>\",\n      })\n\n      require(\"luasnip.loaders.from_lua\").lazy_load({\n        paths = { vim.fn.stdpath(\"config\") .. \"/lua/snippets/lua_snippets\" },\n      })\n\n      require(\"luasnip.loaders.from_vscode\").lazy_load({\n        paths = { vim.fn.stdpath(\"config\") .. \"/lua/snippets\" },\n      })\n    end,\n    -- stylua: ignore\n    keys = {\n      {\n        \"<tab>\",\n        function()\n          return require(\"luasnip\").jumpable(1) and \"<Plug>luasnip-jump-next\" or \"<tab>\"\n        end,\n        expr = true, silent = true, mode = \"i\",\n      },\n      { \"<tab>\", function() require(\"luasnip\").jump(1) end, mode = \"s\" },\n      { \"<s-tab>\", function() require(\"luasnip\").jump(-1) end, mode = { \"i\", \"s\" } },\n    },\n  },\n  -- snippets\n  { \"chrisgrieser/nvim-scissors\", dependencies = {\n    \"L3MON4D3/LuaSnip\",\n  } },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/test.lua",
    "content": "local run_nearest = function()\n  require(\"neotest\").run.run()\nend\nvim.api.nvim_create_user_command(\"TestRunNearest\", run_nearest, {})\n\nlocal run_file = function()\n  require(\"neotest\").run.run(vim.fn.expand(\"%\"))\nend\nvim.api.nvim_create_user_command(\"TestRunFile\", run_file, {})\n\nlocal summary_toggle = function()\n  require(\"neotest\").summary.toggle()\nend\nvim.api.nvim_create_user_command(\"TestSummaryToggle\", summary_toggle, {})\n\nlocal function debug_nearest()\n  require(\"neotest\").run.run({ strategy = \"dap\" })\nend\nvim.api.nvim_create_user_command(\"TestDebugNearest\", debug_nearest, {})\n\nreturn {\n  {\n    \"nvim-neotest/neotest\",\n    dependencies = {\n      \"nvim-neotest/nvim-nio\",\n      \"nvim-neotest/neotest-jest\",\n    },\n    config = function()\n      local neotest_ns = vim.api.nvim_create_namespace(\"neotest\")\n      vim.diagnostic.config({\n        virtual_text = {\n          format = function(diagnostic)\n            -- Replace newline and tab characters with space for more compact diagnostics\n            local message =\n              diagnostic.message:gsub(\"\\n\", \" \"):gsub(\"\\t\", \" \"):gsub(\"%s+\", \" \"):gsub(\"^%s+\", \"\")\n            return message\n          end,\n        },\n      }, neotest_ns)\n\n      require(\"neotest\").setup({\n        adapters = {\n          require(\"neotest-jest\")({\n            jestCommand = \"jest\",\n            jestConfigFile = \"custom.jest.config.ts\",\n            env = { CI = true },\n            cwd = function(path)\n              return vim.fn.getcwd()\n            end,\n          }),\n        },\n        status = { virtual_text = true },\n        output = { open_on_run = true },\n        quickfix = {\n          open = function()\n            require(\"trouble\").open({ mode = \"quickfix\", focus = false })\n          end,\n        },\n      })\n    end,\n  },\n}\n\n-- keys = {\n--   {\"<leader>t\", \"\", desc = \"+test\"},\n--   { \"<leader>tt\", function() require(\"neotest\").run.run(vim.fn.expand(\"%\")) end, desc = \"Run File\" },\n--   { \"<leader>tT\", function() require(\"neotest\").run.run(vim.uv.cwd()) end, desc = \"Run All Test Files\" },\n--   { \"<leader>tr\", function() require(\"neotest\").run.run() end, desc = \"Run Nearest\" },\n--   { \"<leader>tl\", function() require(\"neotest\").run.run_last() end, desc = \"Run Last\" },\n--   { \"<leader>ts\", function() require(\"neotest\").summary.toggle() end, desc = \"Toggle Summary\" },\n--   { \"<leader>to\", function() require(\"neotest\").output.open({ enter = true, auto_close = true }) end, desc = \"Show Output\" },\n--   { \"<leader>tO\", function() require(\"neotest\").output_panel.toggle() end, desc = \"Toggle Output Panel\" },\n--   { \"<leader>tS\", function() require(\"neotest\").run.stop() end, desc = \"Stop\" },\n--   { \"<leader>tw\", function() require(\"neotest\").watch.toggle(vim.fn.expand(\"%\")) end, desc = \"Toggle Watch\" },\n-- },\n-- {\n--   \"mfussenegger/nvim-dap\",\n--   optional = true,\n--   -- stylua: ignore\n--   keys = {\n--     { \"<leader>td\", function() require(\"neotest\").run.run({strategy = \"dap\"}) end, desc = \"Debug Nearest\" },\n--   },\n-- },\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/lang-core/treesitter.lua",
    "content": "return {\n  {\n    \"nvim-treesitter/nvim-treesitter-context\",\n    config = function()\n      require(\"treesitter-context\").setup({\n        enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)\n        max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.\n        min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.\n        line_numbers = true,\n        multiline_threshold = 20, -- Maximum number of lines to show for a single context\n        trim_scope = \"outer\", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'\n        mode = \"cursor\", -- Line used to calculate context. Choices: 'cursor', 'topline'\n        -- Separator between context and content. Should be a single character string, like '-'.\n        -- When separator is set, the context will only show up when there are at least 2 lines above cursorline.\n        separator = nil,\n        zindex = 20, -- The Z-index of the context window\n        on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching\n      })\n    end,\n  },\n  {\n    \"nvim-treesitter/nvim-treesitter\",\n    config = function(_, opts)\n      local config = {\n        incremental_selection = {\n          enable = true,\n          keymaps = {\n            node_incremental = \"v\",\n            node_decremental = \"V\",\n          },\n        },\n\n        ensure_installed = opts.ensure_installed,\n\n        -- Install parsers synchronously (only applied to `ensure_installed`)\n        sync_install = false,\n\n        -- Automatically install missing parsers when entering buffer\n        -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally\n        auto_install = true,\n\n        -- List of parsers to ignore installing (or \"all\")\n        ignore_install = { \"javascript\" },\n\n        ---- If you need to change the installation directory of the parsers (see -> Advanced Setup)\n        -- parser_install_dir = \"/some/path/to/store/parsers\", -- Remember to run vim.opt.runtimepath:append(\"/some/path/to/store/parsers\")!\n\n        highlight = {\n          enable = true,\n\n          -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to\n          -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is\n          -- the name of the parser)\n          -- list of language that will be disabled\n          -- disable = { \"c\", \"rust\" },\n          -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files\n          disable = function(lang, buf)\n            if lang == \"help\" then\n              return true\n            end\n            local max_filesize = 100 * 1024 -- 100 KB\n            local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))\n            if ok and stats and stats.size > max_filesize then\n              return true\n            end\n          end,\n\n          -- Setting this to true will run `:h syntax` and tree-sitter at the same time.\n          -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).\n          -- Using this option may slow down your editor, and you may see some duplicate highlights.\n          -- Instead of true it can also be a list of languages\n          additional_vim_regex_highlighting = false,\n        },\n      }\n      -- vim.print(config) -- uncomment to see the final config\n      require(\"nvim-treesitter.configs\").setup(config)\n    end,\n    dependencies = {\n      { \"nvim-treesitter/nvim-treesitter-textobjects\" },\n      { \"windwp/nvim-ts-autotag\" },\n    },\n    init = function()\n      vim.cmd([[\n    set foldmethod=expr\n    set foldexpr=nvim_treesitter#foldexpr()\n    ]])\n    end,\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/beacon.lua",
    "content": "return { \"danilamihailov/beacon.nvim\" } -- lazy calls setup() by itself\n\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/cursor-word.lua",
    "content": "return {\n  \"echasnovski/mini.cursorword\",\n  version = \"*\",\n  config = function()\n    require(\"mini.cursorword\").setup()\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/dress.lua",
    "content": "return {\n  'stevearc/dressing.nvim',\n  opts = {},\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/heirline.lua",
    "content": "-- thx: https://github.com/dragove/dotfiles/blob/54cd02ab2f749d6ffbb5cc473b44bafc09913be7/nvim/.config/nvim/lua/plugins/ui/heirline.lua#L2\nreturn {\n  'rebelot/heirline.nvim',\n  lazy = false,\n  config = function()\n    local utils = require('heirline.utils')\n    local conditions = require('heirline.conditions')\n    local catppuccin = require('catppuccin.palettes').get_palette('frappe')\n    local Align = { provider = '%=' }\n    local Space = { provider = ' ' }\n    local colors = {\n      bg = catppuccin.base,\n      fg = catppuccin.text,\n      red = catppuccin.red,\n      green = catppuccin.green,\n      yellow = catppuccin.yellow,\n      blue = catppuccin.blue,\n      magenta = catppuccin.peach,\n      cyan = catppuccin.teal,\n      dark = catppuccin.mantle,\n    }\n    require('heirline').load_colors(colors)\n\n    local viMode = {\n      init = function(self)\n        self.mode = vim.fn.mode(1)\n      end,\n      static = {\n        mode_names = { -- change the strings if you like it vvvvverbose!\n          n = '󰭩 N',\n          no = '󰭩 N?',\n          nov = '󰭩 N?',\n          noV = '󰭩 N?',\n          ['no\\22'] = '󰭩 N?',\n          niI = '󰭩 Ni',\n          niR = '󰭩 Nr',\n          niV = '󰭩 Nv',\n          nt = '󰭩 Nt',\n          v = '󰉸 V',\n          vs = '󰉸 Vs',\n          V = '󰉸 V_',\n          Vs = '󰉸 Vs',\n          ['\\22'] = '󰉸 ^V',\n          ['\\22s'] = '󰉸 ^V',\n          s = '󰛔 S',\n          S = '󰛔 S_',\n          ['\\19'] = '󰛔 ^S',\n          i = ' I',\n          ic = ' Ic',\n          ix = ' Ix',\n          R = ' R',\n          Rc = ' Rc',\n          Rx = ' Rx',\n          Rv = ' Rv',\n          Rvc = ' Rv',\n          Rvx = ' Rv',\n          c = ' C',\n          cv = ' Ex',\n          r = '...',\n          rm = 'M',\n          ['r?'] = '?',\n          ['!'] = '!',\n          t = ' T',\n        },\n        mode_colors = {\n          n = 'red',\n          i = 'green',\n          v = 'cyan',\n          V = 'cyan',\n          ['\\22'] = 'cyan',\n          c = 'orange',\n          s = 'purple',\n          S = 'purple',\n          ['\\19'] = 'purple',\n          R = 'orange',\n          r = 'orange',\n          ['!'] = 'red',\n          t = 'red',\n        },\n      },\n      provider = function(self)\n        return ' %2(' .. self.mode_names[self.mode] .. '%)'\n      end,\n      hl = function(self)\n        local mode = self.mode:sub(1, 1) -- get only the first mode character\n        return { fg = self.mode_colors[mode], bold = true }\n      end,\n      update = {\n        'ModeChanged',\n        pattern = '*:*',\n        callback = vim.schedule_wrap(function()\n          vim.cmd('redrawstatus')\n        end),\n      },\n    }\n\n    local FileNameBlock = {\n      -- let's first set up some attributes needed by this component and it's children\n      init = function(self)\n        self.filename = vim.api.nvim_buf_get_name(0)\n      end,\n    }\n    -- We can now define some children separately and add them later\n\n    local FileIcon = {\n      init = function(self)\n        local filename = self.filename\n        local extension = vim.fn.fnamemodify(filename, ':e')\n        self.icon, self.icon_color =\n          require('nvim-web-devicons').get_icon_color(filename, extension, { default = true })\n      end,\n      provider = function(self)\n        return self.icon and (self.icon .. ' ')\n      end,\n      hl = function(self)\n        return { fg = self.icon_color }\n      end,\n    }\n\n    local FileName = {\n      provider = function(self)\n        local filename = vim.fn.fnamemodify(self.filename, ':.')\n        if filename == '' then\n          return '[No Name]'\n        end\n        if not conditions.width_percent_below(#filename, 0.25) then\n          filename = vim.fn.pathshorten(filename)\n        end\n        return filename\n      end,\n      hl = { fg = utils.get_highlight('Directory').fg },\n    }\n\n    local FileFlags = {\n      {\n        condition = function()\n          return vim.bo.modified\n        end,\n        provider = '[+]',\n        hl = { fg = 'green' },\n      },\n      {\n        condition = function()\n          return not vim.bo.modifiable or vim.bo.readonly\n        end,\n        provider = '',\n        hl = { fg = 'orange' },\n      },\n    }\n\n    FileNameBlock =\n      utils.insert(FileNameBlock, FileIcon, utils.insert(FileName), FileFlags, { provider = '%<' })\n\n    local MacroRec = {\n      condition = function()\n        return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0\n      end,\n      provider = ' ',\n      hl = { fg = 'orange', bold = true },\n      utils.surround({ '[', ']' }, nil, {\n        provider = function()\n          return vim.fn.reg_recording()\n        end,\n        hl = { fg = 'green', bold = true },\n      }),\n      update = {\n        'RecordingEnter',\n        'RecordingLeave',\n      },\n    }\n\n    local SearchCount = {\n      condition = function()\n        return vim.v.hlsearch ~= 0 and vim.o.cmdheight == 0\n      end,\n      init = function(self)\n        local ok, search = pcall(vim.fn.searchcount)\n        if ok and search.total then\n          self.search = search\n        end\n      end,\n      provider = function(self)\n        local search = self.search\n        return string.format('[%d/%d]', search.current, math.min(search.total, search.maxcount))\n      end,\n    }\n\n    local ShowCmd = {\n      condition = function()\n        return vim.o.cmdheight == 0\n      end,\n      provider = '%2(%S%)',\n    }\n\n    local lspProgress = require('lsp-progress')\n    local api = require('lsp-progress.api')\n    lspProgress.setup({\n      client_format = function(_, spinner, series_messages)\n        return #series_messages > 0 and (spinner .. ' ' .. table.concat(series_messages, ', '))\n          or nil\n      end,\n      format = function(client_messages)\n        local names = {}\n        local clients = api.lsp_clients()\n        for _, server in pairs(clients) do\n          table.insert(names, server.name)\n        end\n        local sign = '󰙴 '\n        if #client_messages > 0 then\n          return sign .. ' ' .. table.concat(client_messages, ' ')\n        end\n        if #clients > 0 then\n          return sign .. table.concat(names, ' ')\n        end\n        return ''\n      end,\n    })\n    local LSPActive = {\n      condition = conditions.lsp_attached,\n      update = {\n        'User',\n        pattern = 'LspProgressStatusUpdated',\n        callback = vim.schedule_wrap(function()\n          vim.cmd('redrawstatus')\n        end),\n      },\n      provider = function()\n        return lspProgress.progress()\n      end,\n      hl = { fg = 'green' },\n    }\n\n    local Ruler = {\n      provider = '%7(%l/%L%):%2c',\n    }\n\n    local Git = {\n      condition = conditions.is_git_repo,\n      init = function(self)\n        self.status_dict = vim.b.gitsigns_status_dict\n        self.has_changes = self.status_dict.added ~= 0\n          or self.status_dict.removed ~= 0\n          or self.status_dict.changed ~= 0\n      end,\n      hl = { fg = 'magenta' },\n      {\n        provider = function(self)\n          return ' ' .. self.status_dict.head\n        end,\n        hl = { bold = true },\n      },\n      {\n        condition = function(self)\n          return self.has_changes\n        end,\n        provider = '(',\n      },\n      {\n        provider = function(self)\n          local count = self.status_dict.added or 0\n          return count > 0 and ('+' .. count)\n        end,\n        hl = { fg = 'green' },\n      },\n      {\n        provider = function(self)\n          local count = self.status_dict.removed or 0\n          return count > 0 and ('-' .. count)\n        end,\n        hl = { fg = 'red' },\n      },\n      {\n        provider = function(self)\n          local count = self.status_dict.changed or 0\n          return count > 0 and ('~' .. count)\n        end,\n        hl = { fg = 'yellow' },\n      },\n      {\n        condition = function(self)\n          return self.has_changes\n        end,\n        provider = '%-3()%)',\n      },\n    }\n\n    require('heirline').setup({\n      statusline = {\n        MacroRec,\n        viMode,\n        Space,\n        FileNameBlock,\n        SearchCount,\n        ShowCmd,\n        Align,\n        LSPActive,\n        Align,\n        Ruler,\n        Space,\n        Git,\n      },\n    })\n  end,\n  dependencies = {\n    { 'nvim-tree/nvim-web-devicons' },\n    { 'lewis6991/gitsigns.nvim' },\n    { 'catppuccin' },\n    { 'linrongbin16/lsp-progress.nvim' },\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/hlchuck.lua",
    "content": "return {\n  \"shellRaining/hlchunk.nvim\",\n  event = { \"BufReadPre\", \"BufNewFile\" },\n  config = function()\n    require(\"hlchunk\").setup({\n      chunk = {\n        enable = true,\n      },\n      indent = {\n        enable = true,\n      },\n      line_num = {\n        enable = true,\n      }\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/noice.lua",
    "content": "return {\n  \"folke/noice.nvim\",\n  event = \"VeryLazy\",\n  config = function()\n    require(\"noice\").setup({\n      views = {\n        mini = {\n          win_options = {\n            winblend = 0,\n          },\n        },\n      },\n      lsp = {\n        override = {\n          [\"vim.lsp.util.convert_input_to_markdown_lines\"] = true,\n          [\"vim.lsp.util.stylize_markdown\"] = true,\n          [\"cmp.entry.get_documentation\"] = true,\n        },\n        signature = {\n          enabled = false,\n        },\n      },\n      messages = {\n        enabled = false, -- enables the Noice messages UI\n      },\n      notify = {\n        -- Noice can be used as `vim.notify` so you can route any notification like other messages\n        -- Notification messages have their level and other properties set.\n        -- event is always \"notify\" and kind can be any log level as a string\n        -- The default routes will forward notifications to nvim-notify\n        -- Benefit of using Noice for this is the routing and consistent history view\n        enabled = false,\n      },\n      routes = {\n        {\n          filter = {\n            event = \"msg_show\",\n            any = {\n              { find = \"%d+L, %d+B\" },\n              { find = \"; after #%d+\" },\n              { find = \"; before #%d+\" },\n            },\n          },\n          view = \"mini\",\n        },\n      },\n      presets = {\n        bottom_search = true,\n        command_palette = true,\n        long_message_to_split = true,\n        inc_rename = true,\n      },\n    })\n  end,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/nui-components.lua",
    "content": "return {\n  enabled = false,\n  \"grapp-dev/nui-components.nvim\",\n  dependencies = {\n    \"MunifTanjim/nui.nvim\",\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/themes.lua",
    "content": "-- vim.api.nvim_set_hl(0, \"IncSearch\", { bg = \"#c14a4a\" }) -- test color\n-- vim.api.nvim_set_hl(0, \"Visual\", { bg = \"#c14a4a\" }) -- test color\n\nreturn {\n  -- \"rktjmp/lush.nvim\",\n  -- {\n  --   \"ab-dx/ares.nvim\",\n  --   name = \"ares\",\n  --   priority = 1000,\n  --   init = function()\n  --     vim.cmd.colorscheme(\"ares\")\n  --   end,\n  -- },\n\n  {\n    \"catppuccin/nvim\",\n    name = \"catppuccin\",\n    init = function()\n      vim.cmd.colorscheme(\"catppuccin\")\n    end,\n    priority = 1000,\n    -- Thanks: https://github.com/catppuccin/nvim/discussions/323#discussioncomment-5287724\n    opts = function()\n      return {\n        background = {\n          light = \"latte\",\n          dark = \"mocha\",\n        },\n        color_overrides = {\n          latte = {\n            rosewater = \"#c14a4a\",\n            flamingo = \"#c14a4a\",\n            red = \"#c14a4a\",\n            maroon = \"#c14a4a\",\n            pink = \"#945e80\",\n            mauve = \"#945e80\",\n            peach = \"#c35e0a\",\n            yellow = \"#b47109\",\n            green = \"#6c782e\",\n            teal = \"#4c7a5d\",\n            sky = \"#4c7a5d\",\n            sapphire = \"#4c7a5d\",\n            blue = \"#45707a\",\n            lavender = \"#45707a\",\n            text = \"#654735\",\n            subtext1 = \"#73503c\",\n            subtext0 = \"#805942\",\n            overlay2 = \"#8c6249\",\n            overlay1 = \"#8c856d\",\n            overlay0 = \"#a69d81\",\n            surface2 = \"#bfb695\",\n            surface1 = \"#d1c7a3\",\n            surface0 = \"#e3dec3\",\n            base = \"#f9f5d7\",\n            mantle = \"#f0ebce\",\n            crust = \"#e8e3c8\",\n          },\n          mocha = {\n            rosewater = \"#ea6962\",\n            flamingo = \"#ea6962\",\n            red = \"#ea6962\",\n            maroon = \"#ea6962\",\n            pink = \"#d3869b\",\n            mauve = \"#d3869b\",\n            peach = \"#e78a4e\",\n            yellow = \"#d8a657\",\n            green = \"#a9b665\",\n            teal = \"#89b482\",\n            sky = \"#89b482\",\n            sapphire = \"#89b482\",\n            blue = \"#7daea3\",\n            lavender = \"#7daea3\",\n            text = \"#ebdbb2\",\n            subtext1 = \"#d5c4a1\",\n            subtext0 = \"#bdae93\",\n            overlay2 = \"#a89984\",\n            overlay1 = \"#928374\",\n            overlay0 = \"#595959\",\n            surface2 = \"#4d4d4d\",\n            surface1 = \"#404040\",\n            surface0 = \"#292929\",\n            base = \"#1d2021\",\n            mantle = \"#191b1c\",\n            crust = \"#141617\",\n          },\n        },\n        highlight_overrides = {\n          all = function(colors)\n            return {\n              CurSearch = { bg = colors.rosewater },\n              IncSearch = { bg = colors.rosewater },\n              DashboardFooter = { fg = colors.overlay0 },\n              TreesitterContextBottom = { style = {} },\n              WinSeparator = { fg = colors.overlay0, style = { \"bold\" } },\n              Visual = { bg = \"#BB4747\", fg = \"white\" },\n              DapBreakpoint = { bg = \"#552B24\" },\n              DapBreakpointStopped = { bg = \"#244C55\" },\n\n              NeotestPassed = { fg = colors.green },\n              NeotestFailed = { fg = colors.red },\n              NeotestRunning = { fg = colors.yellow },\n              NeotestSkipped = { fg = colors.blue },\n              NeotestFile = { fg = colors.peach },\n              NeotestNamespace = { fg = colors.peach },\n              NeotestDir = { fg = colors.peach },\n              NeotestFocused = { fg = colors.mauve, bold = true, underline = true },\n              NeotestAdapterName = { fg = colors.red },\n              NeotestIndent = { fg = colors.yellow },\n              NeotestExpandMarker = { fg = colors.yellow },\n              NeotestWinSelect = { fg = colors.yellow, bold = true },\n              NeotestTest = { fg = colors.subtext2 },\n\n              TreesitterContext = { bg = \"#2A1E39\" },\n              CmpItemMenu = { fg = colors.surface2 },\n              CursorLine = { bg = \"#261F1E\" },\n              CursorLineNr = { fg = colors.text },\n              FloatBorder = { bg = colors.base, fg = colors.surface0 },\n              GitSignsChange = { fg = colors.peach },\n              LineNr = { fg = colors.overlay0 },\n              LspInfoBorder = { link = \"FloatBorder\" },\n              NeoTreeDirectoryIcon = { fg = colors.subtext1 },\n              NeoTreeDirectoryName = { fg = colors.subtext1 },\n              NeoTreeFloatBorder = { link = \"TelescopeResultsBorder\" },\n              NeoTreeGitConflict = { fg = colors.red },\n              NeoTreeGitDeleted = { fg = colors.red },\n              NeoTreeGitIgnored = { fg = colors.overlay0 },\n              NeoTreeGitModified = { fg = colors.peach },\n              NeoTreeGitStaged = { fg = colors.green },\n              NeoTreeGitUnstaged = { fg = colors.red },\n              NeoTreeGitUntracked = { fg = colors.green },\n              NeoTreeIndent = { fg = colors.surface1 },\n              NeoTreeNormal = { bg = colors.mantle },\n              NeoTreeNormalNC = { bg = colors.mantle },\n              NeoTreeRootName = { fg = colors.subtext1, style = { \"bold\" } },\n              NeoTreeTabActive = { fg = colors.text, bg = colors.mantle },\n              NeoTreeTabInactive = { fg = colors.surface2, bg = colors.crust },\n              NeoTreeTabSeparatorActive = { fg = colors.mantle, bg = colors.mantle },\n              NeoTreeTabSeparatorInactive = { fg = colors.crust, bg = colors.crust },\n              NeoTreeWinSeparator = { fg = colors.base, bg = colors.base },\n              NormalFloat = { bg = colors.base },\n              Pmenu = { bg = colors.mantle, fg = \"\" },\n              PmenuSel = { bg = colors.surface0, fg = \"\" },\n              TelescopePreviewBorder = { bg = colors.crust, fg = colors.crust },\n              TelescopePreviewNormal = { bg = colors.crust },\n              TelescopePreviewTitle = { fg = colors.crust, bg = colors.crust },\n              TelescopePromptBorder = { bg = colors.surface0, fg = colors.surface0 },\n              TelescopePromptCounter = { fg = colors.mauve, style = { \"bold\" } },\n              TelescopePromptNormal = { bg = colors.surface0 },\n              TelescopePromptPrefix = { bg = colors.surface0 },\n              TelescopePromptTitle = { fg = colors.surface0, bg = colors.surface0 },\n              TelescopeResultsBorder = { bg = colors.mantle, fg = colors.mantle },\n              TelescopeResultsNormal = { bg = colors.mantle },\n              TelescopeResultsTitle = { fg = colors.mantle, bg = colors.mantle },\n              TelescopeSelection = { bg = colors.surface0 },\n              VertSplit = { bg = colors.base, fg = colors.surface0 },\n              WhichKeyFloat = { bg = colors.mantle },\n              YankHighlight = { bg = colors.surface2 },\n              FidgetTask = { fg = colors.subtext2 },\n              FidgetTitle = { fg = colors.peach },\n\n              IblIndent = { fg = colors.surface0 },\n              IblScope = { fg = colors.overlay0 },\n\n              Boolean = { fg = colors.mauve },\n              Number = { fg = colors.mauve },\n              Float = { fg = colors.mauve },\n\n              PreProc = { fg = colors.mauve },\n              PreCondit = { fg = colors.mauve },\n              Include = { fg = colors.mauve },\n              Define = { fg = colors.mauve },\n              Conditional = { fg = colors.red },\n              Repeat = { fg = colors.red },\n              Keyword = { fg = colors.red },\n              Typedef = { fg = colors.red },\n              Exception = { fg = colors.red },\n              Statement = { fg = colors.red },\n\n              Error = { fg = colors.red },\n              StorageClass = { fg = colors.peach },\n              Tag = { fg = colors.peach },\n              Label = { fg = colors.peach },\n              Structure = { fg = colors.peach },\n              Operator = { fg = colors.peach },\n              Title = { fg = colors.peach },\n              Special = { fg = colors.yellow },\n              SpecialChar = { fg = colors.yellow },\n              Type = { fg = colors.yellow, style = { \"bold\" } },\n              Function = { fg = colors.green, style = { \"bold\" } },\n              Delimiter = { fg = colors.subtext2 },\n              Ignore = { fg = colors.subtext2 },\n              Macro = { fg = colors.teal },\n\n              TSAnnotation = { fg = colors.mauve },\n              TSAttribute = { fg = colors.mauve },\n              TSBoolean = { fg = colors.mauve },\n              TSCharacter = { fg = colors.teal },\n              TSCharacterSpecial = { link = \"SpecialChar\" },\n              TSComment = { link = \"Comment\" },\n              TSConditional = { fg = colors.red },\n              TSConstBuiltin = { fg = colors.mauve },\n              TSConstMacro = { fg = colors.mauve },\n              TSConstant = { fg = colors.text },\n              TSConstructor = { fg = colors.green },\n              TSDebug = { link = \"Debug\" },\n              TSDefine = { link = \"Define\" },\n              TSEnvironment = { link = \"Macro\" },\n              TSEnvironmentName = { link = \"Type\" },\n              TSError = { link = \"Error\" },\n              TSException = { fg = colors.red },\n              TSField = { fg = colors.blue },\n              TSFloat = { fg = colors.mauve },\n              TSFuncBuiltin = { fg = colors.green },\n              TSFuncMacro = { fg = colors.green },\n              TSFunction = { fg = colors.green },\n              TSFunctionCall = { fg = colors.green },\n              TSInclude = { fg = colors.red },\n              TSKeyword = { fg = colors.red },\n              TSKeywordFunction = { fg = colors.red },\n              TSKeywordOperator = { fg = colors.peach },\n              TSKeywordReturn = { fg = colors.red },\n              TSLabel = { fg = colors.peach },\n              TSLiteral = { link = \"String\" },\n              TSMath = { fg = colors.blue },\n              TSMethod = { fg = colors.green },\n              TSMethodCall = { fg = colors.green },\n              TSNamespace = { fg = colors.yellow },\n              TSNone = { fg = colors.text },\n              TSNumber = { fg = colors.mauve },\n              TSOperator = { fg = colors.peach },\n              TSParameter = { fg = colors.text },\n              TSParameterReference = { fg = colors.text },\n              TSPreProc = { link = \"PreProc\" },\n              TSProperty = { fg = colors.blue },\n              TSPunctBracket = { fg = colors.text },\n              TSPunctDelimiter = { link = \"Delimiter\" },\n              TSPunctSpecial = { fg = colors.blue },\n              TSRepeat = { fg = colors.red },\n              TSStorageClass = { fg = colors.peach },\n              TSStorageClassLifetime = { fg = colors.peach },\n              TSStrike = { fg = colors.subtext2 },\n              TSString = { fg = colors.teal },\n              TSStringEscape = { fg = colors.green },\n              TSStringRegex = { fg = colors.green },\n              TSStringSpecial = { link = \"SpecialChar\" },\n              TSSymbol = { fg = colors.text },\n              TSTag = { fg = colors.peach },\n              TSTagAttribute = { fg = colors.green },\n              TSTagDelimiter = { fg = colors.green },\n              TSText = { fg = colors.green },\n              TSTextReference = { link = \"Constant\" },\n              TSTitle = { link = \"Title\" },\n              TSTodo = { link = \"Todo\" },\n              TSType = { fg = colors.yellow, style = { \"bold\" } },\n              TSTypeBuiltin = { fg = colors.yellow, style = { \"bold\" } },\n              TSTypeDefinition = { fg = colors.yellow, style = { \"bold\" } },\n              TSTypeQualifier = { fg = colors.peach, style = { \"bold\" } },\n              TSURI = { fg = colors.blue },\n              TSVariable = { fg = colors.text },\n              TSVariableBuiltin = { fg = colors.mauve },\n\n              [\"@annotation\"] = { link = \"TSAnnotation\" },\n              [\"@attribute\"] = { link = \"TSAttribute\" },\n              [\"@boolean\"] = { link = \"TSBoolean\" },\n              [\"@character\"] = { link = \"TSCharacter\" },\n              [\"@character.special\"] = { link = \"TSCharacterSpecial\" },\n              [\"@comment\"] = { link = \"TSComment\" },\n              [\"@conceal\"] = { link = \"Grey\" },\n              [\"@conditional\"] = { link = \"TSConditional\" },\n              [\"@constant\"] = { link = \"TSConstant\" },\n              [\"@constant.builtin\"] = { link = \"TSConstBuiltin\" },\n              [\"@constant.macro\"] = { link = \"TSConstMacro\" },\n              [\"@constructor\"] = { link = \"TSConstructor\" },\n              [\"@debug\"] = { link = \"TSDebug\" },\n              [\"@define\"] = { link = \"TSDefine\" },\n              [\"@error\"] = { link = \"TSError\" },\n              [\"@exception\"] = { link = \"TSException\" },\n              [\"@field\"] = { link = \"TSField\" },\n              [\"@float\"] = { link = \"TSFloat\" },\n              [\"@function\"] = { link = \"TSFunction\" },\n              [\"@function.builtin\"] = { link = \"TSFuncBuiltin\" },\n              [\"@function.call\"] = { link = \"TSFunctionCall\" },\n              [\"@function.macro\"] = { link = \"TSFuncMacro\" },\n              [\"@include\"] = { link = \"TSInclude\" },\n              [\"@keyword\"] = { link = \"TSKeyword\" },\n              [\"@keyword.function\"] = { link = \"TSKeywordFunction\" },\n              [\"@keyword.operator\"] = { link = \"TSKeywordOperator\" },\n              [\"@keyword.return\"] = { link = \"TSKeywordReturn\" },\n              [\"@label\"] = { link = \"TSLabel\" },\n              [\"@math\"] = { link = \"TSMath\" },\n              [\"@method\"] = { link = \"TSMethod\" },\n              [\"@method.call\"] = { link = \"TSMethodCall\" },\n              [\"@namespace\"] = { link = \"TSNamespace\" },\n              [\"@none\"] = { link = \"TSNone\" },\n              [\"@number\"] = { link = \"TSNumber\" },\n              [\"@operator\"] = { link = \"TSOperator\" },\n              [\"@parameter\"] = { link = \"TSParameter\" },\n              [\"@parameter.reference\"] = { link = \"TSParameterReference\" },\n              [\"@preproc\"] = { link = \"TSPreProc\" },\n              [\"@property\"] = { link = \"TSProperty\" },\n              [\"@punctuation.bracket\"] = { link = \"TSPunctBracket\" },\n              [\"@punctuation.delimiter\"] = { link = \"TSPunctDelimiter\" },\n              [\"@punctuation.special\"] = { link = \"TSPunctSpecial\" },\n              [\"@repeat\"] = { link = \"TSRepeat\" },\n              [\"@storageclass\"] = { link = \"TSStorageClass\" },\n              [\"@storageclass.lifetime\"] = { link = \"TSStorageClassLifetime\" },\n              [\"@strike\"] = { link = \"TSStrike\" },\n              [\"@string\"] = { link = \"TSString\" },\n              [\"@string.escape\"] = { link = \"TSStringEscape\" },\n              [\"@string.regex\"] = { link = \"TSStringRegex\" },\n              [\"@string.special\"] = { link = \"TSStringSpecial\" },\n              [\"@symbol\"] = { link = \"TSSymbol\" },\n              [\"@tag\"] = { link = \"TSTag\" },\n              [\"@tag.attribute\"] = { link = \"TSTagAttribute\" },\n              [\"@tag.delimiter\"] = { link = \"TSTagDelimiter\" },\n              [\"@text\"] = { link = \"TSText\" },\n              [\"@text.danger\"] = { link = \"TSDanger\" },\n              [\"@text.diff.add\"] = { link = \"diffAdded\" },\n              [\"@text.diff.delete\"] = { link = \"diffRemoved\" },\n              [\"@text.emphasis\"] = { link = \"TSEmphasis\" },\n              [\"@text.environment\"] = { link = \"TSEnvironment\" },\n              [\"@text.environment.name\"] = { link = \"TSEnvironmentName\" },\n              [\"@text.literal\"] = { link = \"TSLiteral\" },\n              [\"@text.math\"] = { link = \"TSMath\" },\n              [\"@text.note\"] = { link = \"TSNote\" },\n              [\"@text.reference\"] = { link = \"TSTextReference\" },\n              [\"@text.strike\"] = { link = \"TSStrike\" },\n              [\"@text.strong\"] = { link = \"TSStrong\" },\n              [\"@text.title\"] = { link = \"TSTitle\" },\n              [\"@text.todo\"] = { link = \"TSTodo\" },\n              [\"@text.todo.checked\"] = { link = \"Green\" },\n              [\"@text.todo.unchecked\"] = { link = \"Ignore\" },\n              [\"@text.underline\"] = { link = \"TSUnderline\" },\n              [\"@text.uri\"] = { link = \"TSURI\" },\n              [\"@text.warning\"] = { link = \"TSWarning\" },\n              [\"@todo\"] = { link = \"TSTodo\" },\n              [\"@type\"] = { link = \"TSType\" },\n              [\"@type.builtin\"] = { link = \"TSTypeBuiltin\" },\n              [\"@type.definition\"] = { link = \"TSTypeDefinition\" },\n              [\"@type.qualifier\"] = { link = \"TSTypeQualifier\" },\n              [\"@uri\"] = { link = \"TSURI\" },\n              [\"@variable\"] = { link = \"TSVariable\" },\n              [\"@variable.builtin\"] = { link = \"TSVariableBuiltin\" },\n\n              [\"@lsp.type.class\"] = { link = \"TSType\" },\n              [\"@lsp.type.comment\"] = { link = \"TSComment\" },\n              [\"@lsp.type.decorator\"] = { link = \"TSFunction\" },\n              [\"@lsp.type.enum\"] = { link = \"TSType\" },\n              [\"@lsp.type.enumMember\"] = { link = \"TSProperty\" },\n              [\"@lsp.type.events\"] = { link = \"TSLabel\" },\n              [\"@lsp.type.function\"] = { link = \"TSFunction\" },\n              [\"@lsp.type.interface\"] = { link = \"TSType\" },\n              [\"@lsp.type.keyword\"] = { link = \"TSKeyword\" },\n              [\"@lsp.type.macro\"] = { link = \"TSConstMacro\" },\n              [\"@lsp.type.method\"] = { link = \"TSMethod\" },\n              [\"@lsp.type.modifier\"] = { link = \"TSTypeQualifier\" },\n              [\"@lsp.type.namespace\"] = { link = \"TSNamespace\" },\n              [\"@lsp.type.number\"] = { link = \"TSNumber\" },\n              [\"@lsp.type.operator\"] = { link = \"TSOperator\" },\n              [\"@lsp.type.parameter\"] = { link = \"TSParameter\" },\n              [\"@lsp.type.property\"] = { link = \"TSProperty\" },\n              [\"@lsp.type.regexp\"] = { link = \"TSStringRegex\" },\n              [\"@lsp.type.string\"] = { link = \"TSString\" },\n              [\"@lsp.type.struct\"] = { link = \"TSType\" },\n              [\"@lsp.type.type\"] = { link = \"TSType\" },\n              [\"@lsp.type.typeParameter\"] = { link = \"TSTypeDefinition\" },\n              [\"@lsp.type.variable\"] = { link = \"TSVariable\" },\n            }\n          end,\n        },\n        integrations = {\n          telescope = {\n            enabled = true,\n            style = \"nvchad\",\n          },\n        },\n        dim_inactive = {\n          enabled = true, -- dims the background color of inactive window\n          shade = \"light\",\n          percentage = 0.5, -- percentage of the shade to apply to the inactive window\n        },\n      }\n    end,\n  },\n\n  -- {\n  --   \"AlexvZyl/nordic.nvim\",\n  --   lazy = false,\n  --   priority = 1000,\n  --   init = function()\n  --     vim.cmd.colorscheme(\"nordic\")\n  --   end,\n  --   config = function()\n  --     -- stylua ignore\n  --     require(\"nordic\").setup({\n  --       override = {\n  --         Visual = { bg = \"#BB4747\", fg = \"white\" },\n  --         DapBreakpoint = { bg = \"#552B24\" },\n  --         DapBreakpointStopped = { bg = \"#244C55\" },\n  --         TreesitterContext = { bg = \"#2A1E39\" },\n  --       },\n  --\n  --       -- original palatte: https://github.com/AlexvZyl/nordic.nvim/blob/main/lua/nordic/colors/nordic.lua\n  --       on_palette = function(palette)\n  --         local custom_palette = {\n  --           -- Blacks. Not in base Nord.\n  --           black0 = \"#30222A\", -- cursorline color\n  --           black1 = \"#1E222A\", -- telescope background color\n  --           -- Slightly darker than bg.  Very useful for certain popups\n  --           black2 = \"#222630\",\n  --           -- This color is used on their website's dark theme.\n  --           gray0 = \"#1D2026\", -- bg\n  --           -- 2B2E32 monokai\n  --           -- Polar Night.\n  --           gray1 = \"#2E3440\",\n  --           gray2 = \"#3B4252\",\n  --           gray3 = \"#434C5E\",\n  --           gray4 = \"#4C566A\",\n  --         }\n  --\n  --         return vim.tbl_deep_extend(\"force\", palette, custom_palette)\n  --       end,\n  --     })\n  --   end,\n  -- },\n  -- {\n  --   \"malbernaz/monokai.nvim\",\n  --   lazy = false,\n  --   priority = 1000, -- Make sure to load this before all the other start plugins.\n  --   init = function()\n  --     -- Load the colorscheme here.\n  --     -- Like many other themes, this one has different styles, and you could load\n  --     -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.\n  --     vim.cmd.colorscheme(\"monokai\")\n  --   end,\n  --\n  --   config = function()\n  --     require(\"monokai\").setup({\n  --       custom_hlgroups = {\n  --         FlashCurrent = { fg = \"#FF0000\", bg = \"#FF0000\" },\n  --         FlashLabel = { fg = \"#FBF3CB\", bg = \"#FF007C\" },\n  --         FlashMatch = { fg = \"#000000\", bg = \"#000000\" },\n  --       },\n  --     })\n  --   end,\n  -- },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/plugins/ui/todo-comments.lua",
    "content": "return {\n  \"folke/todo-comments.nvim\",\n  dependencies = { \"nvim-lua/plenary.nvim\" },\n  opts = {\n    -- your configuration comes here\n    -- or leave it empty to use the default settings\n    -- refer to the configuration section below\n  },\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/base/fs.lua",
    "content": "local create_file = function(abspath)\n  local open_mode = vim.loop.constants.O_CREAT\n    + vim.loop.constants.O_WRONLY\n    + vim.loop.constants.O_TRUNC\n  local fd = vim.loop.fs_open(abspath, \"w\", open_mode)\n  if not fd then\n    vim.notify(\"create file failed\")\n  else\n    vim.loop.fs_chmod(abspath, 420)\n    vim.loop.fs_close(fd)\n  end\nend\n\nlocal Fs = {\n  create_file = create_file,\n}\n\nreturn Fs\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/base/git.lua",
    "content": "---\nlocal function get_current_version()\n  local result, _ = vim.fn.system(\"git rev-parse --short HEAD\"):gsub(\"\\n\", \"\")\n  return result\nend\n\nreturn {\n  get_current_version = get_current_version,\n}\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/base/strings.lua",
    "content": "local function ReplacePattern(str, pattern, replacement)\n  return string.gsub(str, pattern, replacement)\nend\n\nlocal function trim(input)\n  return input:gsub(\"^%s*(.-)%s*$\", \"%1\")\nend\n\nlocal function contains(str, char)\n  return str:find(char, 1, true) ~= nil\nend\n\nlocal function EndsWithSuffix(str, suffix)\n  local len = #suffix\n  return str:sub(-len) == suffix\nend\n\n---@param i string\n---@return string[]\nlocal function split_into_lines(i)\n  local lines = {}\n  for line in i:gmatch(\"([^\\n]*)\\n?\") do\n    if line ~= \"\" then\n      table.insert(lines, line)\n    end\n  end\n  return lines\nend\n\n---@param stringList string[]\n---@param delimiter string\n---@return string\nlocal function join(stringList, delimiter)\n  local str = \"\"\n  for i, s in ipairs(stringList) do\n    str = str .. s\n    if i ~= #stringList then\n      str = str .. delimiter\n    end\n  end\n  return str\nend\n\nlocal function splitCmdString(cmd)\n  local t = {}\n  local inQuotes = false\n  local currentQuoteChar = nil\n  local currentWord = \"\"\n\n  for i = 1, #cmd do\n    local c = cmd:sub(i, i)\n    if c == \" \" and not inQuotes then\n      if #currentWord > 0 then\n        table.insert(t, currentWord)\n        currentWord = \"\"\n      end\n    elseif c == \"'\" or c == '\"' then\n      if inQuotes and currentQuoteChar == c then\n        inQuotes = false\n        currentQuoteChar = nil\n      elseif not inQuotes then\n        inQuotes = true\n        currentQuoteChar = c\n      else\n        currentWord = currentWord .. c\n      end\n    else\n      currentWord = currentWord .. c\n    end\n  end\n  if #currentWord > 0 then\n    table.insert(t, currentWord)\n  end\n  return t\nend\n\n---split the string by delimiter\n---@param inputStr string\n---@param delimiter string\n---@return string[]\nlocal function split(inputStr, delimiter)\n  local t = {}\n  local pattern = \"([^\" .. delimiter .. \"]+)\"\n  for str in string.gmatch(inputStr, pattern) do\n    table.insert(t, str)\n  end\n  return t\nend\n\nlocal M = {\n  replace_pattern = ReplacePattern,\n  trim = trim,\n  split = split,\n  contains = contains,\n  ends_with_suffix = EndsWithSuffix,\n  split_into_lines = split_into_lines,\n  join = join,\n  split_cmd_string = splitCmdString,\n}\n\nreturn M\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/base/sys.lua",
    "content": "local Job = require(\"plenary.job\")\n\n---@param cmd string[]\n---@param cwd string\n---@return table\n---@return unknown\n---@return table\nlocal run_sync = function(cmd, cwd)\n  if type(cmd) ~= \"table\" then\n    print(\"cmd has to be a table\")\n    return {}, nil, {}\n  end\n  local command = table.remove(cmd, 1)\n  local stderr = {}\n  local stdout, ret = Job:new({\n    command = command,\n    args = cmd,\n    cwd = cwd,\n    on_stderr = function(_, data)\n      table.insert(stderr, data)\n    end,\n  }):sync()\n  return stdout, ret, stderr\nend\n\n---@param content string\nlocal copy_to_system_clipboard = function(content)\n  local copy_cmd = \"pbcopy\"\n  -- Copy the absolute path to the clipboard\n  if vim.fn.has(\"mac\") or vim.fn.has(\"macunix\") then\n    copy_cmd = \"pbcopy\"\n  elseif vim.fn.has(\"win32\") or vim.fn.has(\"win64\") then\n    copy_cmd = \"clip\"\n  elseif vim.fn.has(\"unix\") then\n    copy_cmd = \"xclip -selection clipboard\"\n  else\n    print(\"Unsupported operating system\")\n    return\n  end\n\n  vim.fn.system(copy_cmd, content)\nend\n\n---@class runOpts\n---@field header string\n\n---run command in a job and print the output to the buffer\n---@param cmd string commands to run\n---@param buf_nr number buffer number\n---@param opts runOpts options\n---@return number returns the job id\nlocal run_async = function(cmd, buf_nr, opts)\n  -- print the prompt header\n  local header = {}\n  if opts and opts.header then\n    header = vim.split(opts.header, \"\\n\")\n    table.insert(header, \"----------------------------------------\")\n    vim.api.nvim_buf_set_lines(buf_nr, 0, -1, false, header)\n  end\n\n  vim.api.nvim_buf_set_lines(buf_nr, 0, -1, false, header)\n\n  local line = vim.tbl_count(header) + 1\n  local words = {}\n\n  -- start the async job\n  return vim.fn.jobstart(cmd, {\n    on_stdout = function(_, data, _)\n      for i, token in ipairs(data) do\n        if i > 1 then -- if returned data array has more than one element, a line break occured.\n          line = line + 1\n          words = {}\n        end\n        table.insert(words, token)\n        vim.api.nvim_buf_set_lines(buf_nr, line, line + 1, false, { table.concat(words, \"\") })\n      end\n    end,\n  })\nend\n\n---@class Sys\nlocal Sys = {\n  copy_to_system_clipboard = copy_to_system_clipboard,\n  run_sync = run_sync,\n  run_async = run_async,\n}\n\nreturn Sys\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/base/table.lua",
    "content": "local M        = {}\n\nM.table_length = function(T)\n  local count = 0\n  for _ in pairs(T) do count = count + 1 end\n  return count\nend\n\nfunction M.findIndex(tbl, element)\n  for i = 1, #tbl do\n    if tbl[i] == element then\n      return i\n    end\n  end\n  return nil\nend\n\n---@param element any\n---@param table any\n---@return boolean\nfunction M.isElementInTable(element, table)\n    for _, value in ipairs(table) do\n        if value == element then\n            return true\n        end\n    end\n    return false\nend\n\n---comment\n---@param array1 table\n---@param array2 table\n---@return table\nfunction M.getDifferenceSet(array1, array2)\n    local differenceSet = {}\n\n    for _, value in ipairs(array1) do\n        if not M.isElementInTable(value, array2) then\n            table.insert(differenceSet, value)\n        end\n    end\n\n    return differenceSet\nend\n\nreturn M\n\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/editor.lua",
    "content": "---@alias Position {row: number, col: number}\n\n---comment\n---@return Position\nlocal get_cursor_position = function()\n  local _, row, col, _ = unpack(vim.fn.getpos(\".\"))\n  return { row, col }\nend\n\n---@return {row: number, col: number}\nlocal get_visual_selection_start_position = function()\n  local _, row, col, _ = unpack(vim.fn.getpos(\"'<\"))\n  return { row, col }\nend\n\nlocal function replaceSelectedTextWithClipboard()\n  vim.cmd([[normal! gv\"_dP]])\nend\n\nlocal function exit_current_mode()\n  local esc = vim.api.nvim_replace_termcodes(\"<esc>\", true, false, true)\n  vim.api.nvim_feedkeys(esc, \"x\", false)\nend\n\n---@return Position[]\nlocal function get_selected_positions()\n  -- this will exit visual mode\n  -- use 'gv' to reselect the text\n  local _, csrow, cscol, cerow, cecol\n  local mode = vim.fn.mode()\n  if mode == \"v\" or mode == \"V\" or mode == \"\u0016\" then\n    -- if we are in visual mode use the live position\n    _, csrow, cscol, _ = unpack(vim.fn.getpos(\".\"))\n    _, cerow, cecol, _ = unpack(vim.fn.getpos(\"v\"))\n    if mode == \"V\" then\n      -- visual line doesn't provide columns\n      cscol, cecol = 0, 999\n    end\n    exit_current_mode()\n  else\n    -- otherwise, use the last known visual position\n    _, csrow, cscol, _ = unpack(vim.fn.getpos(\"'<\"))\n    _, cerow, cecol, _ = unpack(vim.fn.getpos(\"'>\"))\n  end\n  -- swap vars if needed\n  if cerow < csrow then\n    csrow, cerow = cerow, csrow\n  end\n  if cecol < cscol then\n    cscol, cecol = cecol, cscol\n  end\n\n  return {\n    { row = csrow, col = cscol },\n    { row = cerow, col = cecol },\n  }\nend\n\n-- Copy from https://github.com/ibhagwan/fzf-lua\nlocal function getSelectedText()\n  -- this will exit visual mode\n  -- use 'gv' to reselect the text\n  local _, csrow, cscol, cerow, cecol\n  local mode = vim.fn.mode()\n  if mode == \"v\" or mode == \"V\" or mode == \"\u0016\" then\n    -- if we are in visual mode use the live position\n    _, csrow, cscol, _ = unpack(vim.fn.getpos(\".\"))\n    _, cerow, cecol, _ = unpack(vim.fn.getpos(\"v\"))\n    if mode == \"V\" then\n      -- visual line doesn't provide columns\n      cscol, cecol = 0, 999\n    end\n    exit_current_mode()\n  else\n    -- otherwise, use the last known visual position\n    _, csrow, cscol, _ = unpack(vim.fn.getpos(\"'<\"))\n    _, cerow, cecol, _ = unpack(vim.fn.getpos(\"'>\"))\n  end\n  -- swap vars if needed\n  if cerow < csrow then\n    csrow, cerow = cerow, csrow\n  end\n  if cecol < cscol then\n    cscol, cecol = cecol, cscol\n  end\n  local lines = vim.fn.getline(csrow, cerow)\n  local tableUtil = require(\"util.base.table\")\n  local n = tableUtil.table_length(lines)\n  if n <= 0 then\n    return \"\"\n  end\n  lines[n] = string.sub(lines[n], 1, cecol)\n  lines[1] = string.sub(lines[1], cscol)\n  return table.concat(lines, \"\\n\")\nend\n\n---@return {row: number, col: number}\nlocal get_visual_selection_end_position = function()\n  local _, row, col, _ = unpack(vim.fn.getpos(\"'>\"))\n  return { row, col }\nend\n\nlocal ESC_FEEDKEY = vim.api.nvim_replace_termcodes(\"<ESC>\", true, false, true)\n--- @return string\nlocal get_visual_lines = function(bufnr)\n  vim.api.nvim_feedkeys(ESC_FEEDKEY, \"n\", true)\n  vim.api.nvim_feedkeys(\"gv\", \"x\", false)\n  vim.api.nvim_feedkeys(ESC_FEEDKEY, \"n\", true)\n\n  local start_row, start_col = unpack(vim.api.nvim_buf_get_mark(bufnr, \"<\"))\n  local end_row, end_col = unpack(vim.api.nvim_buf_get_mark(bufnr, \">\"))\n  local lines = vim.api.nvim_buf_get_lines(bufnr, start_row - 1, end_row, false)\n\n  if start_row == 0 then\n    lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)\n    start_row = 1\n    start_col = 0\n    end_row = #lines\n    end_col = #lines[#lines]\n  end\n\n  start_col = start_col + 1\n  end_col = math.min(end_col, #lines[#lines] - 1) + 1\n\n  lines[#lines] = lines[#lines]:sub(1, end_col)\n  lines[1] = lines[1]:sub(start_col)\n\n  return table.concat(lines, \"\\n\")\nend\n\nlocal countWindows = function()\n  -- Get the current tabpage ID\n  local tabpage_id = vim.api.nvim_get_current_tabpage()\n\n  -- Get the list of window handles for all windows in the current tabpage\n  local windows = vim.api.nvim_tabpage_list_wins(tabpage_id)\n\n  -- Return the count of windows\n  return #windows\nend\n\n---@alias SplitMode \"virtical\"  | \"horizontal\"\n---@param splitMode SplitMode\nlocal splitWindow = function(splitMode)\n  if splitMode == \"virtical\" then\n    vim.api.nvim_exec2(\"wincmd v\", { output = false })\n  elseif splitMode == \"horizontal\" then\n    vim.api.nvim_exec2(\"wincmd s\", { output = false })\n  else\n    vim.print(\"Not supported mode\")\n  end\nend\n\n---@return string\nlocal function get_current_line()\n  return vim.api.nvim_get_current_line()\nend\n\nlocal function is_homedir(path)\n  local home_dir = vim.loop.os_homedir()\n  return path == home_dir\nend\n\nlocal function contains_marker_file(path)\n  local marker_files = vim.g.easy_command_project_root_dir_marker_files or { \".git\", \".gitignore\" } -- list of marker files\n  for _, file in ipairs(marker_files) do\n    local full_path = path .. \"/\" .. file\n    if vim.fn.filereadable(full_path) == 1 or vim.fn.isdirectory(full_path) == 1 then\n      return true\n    end\n  end\n  return false\nend\n\n---@param ignore_patterns string[]|nil\nlocal function close_all_other_windows(ignore_patterns)\n  -- Get the current window ID\n  local current_win = vim.api.nvim_get_current_win()\n\n  -- Get the list of all window IDs\n  local windows = vim.api.nvim_list_wins()\n\n  -- Function to check if the buffer name matches any pattern in the list\n  local function should_ignore(buf_name)\n    for _, pattern in\n      ipairs(ignore_patterns or {\n        \"filesystem\", -- neo-tree\n        \"Trouble\",\n        \"term\",\n      })\n    do\n      if string.find(buf_name, pattern) then\n        return true\n      end\n    end\n    return false\n  end\n\n  -- Close all windows except the current one and those matching ignore patterns\n  for _, win in ipairs(windows) do\n    if win ~= current_win then\n      -- Get the buffer ID for the window\n      local buf = vim.api.nvim_win_get_buf(win)\n      -- Get the name of the buffer\n      local buf_name = vim.api.nvim_buf_get_name(buf)\n      -- Check if the buffer's name should be ignored\n      if not should_ignore(buf_name) then\n        vim.api.nvim_win_close(win, false)\n      end\n    end\n  end\nend\n\n---@return string\nlocal function get_buf_name()\n  local bufnr = vim.api.nvim_get_current_buf()\n  return vim.api.nvim_buf_get_name(bufnr)\nend\n\nlocal get_buf_filetype = function()\n  return vim.bo.ft\nend\n\n--- Get current buffer size\n---@return {width: number, height: number}\nlocal function get_buf_size()\n  local cbuf = vim.api.nvim_get_current_buf()\n  local bufinfo = vim.tbl_filter(function(buf)\n    return buf.bufnr == cbuf\n  end, vim.fn.getwininfo(vim.api.nvim_get_current_win()))[1]\n  if bufinfo == nil then\n    return { width = -1, height = -1 }\n  end\n  return { width = bufinfo.width, height = bufinfo.height }\nend\n\nlocal function get_buf_filename()\n  return vim.fn.expand(\"%:t\")\nend\n\nlocal function get_buf_abs_path()\n  return vim.fn.expand(\"%:p\")\nend\n\n---@return string\nlocal function get_buf_abs_dir_path()\n  return vim.fn.expand(\"%:p:h\")\nend\n\n---@return string|nil\nlocal function find_project_path()\n  for i = 1, 30, 1 do\n    local dir = vim.fn.expand(\"%:p\" .. string.rep(\":h\", i))\n    if contains_marker_file(dir) then\n      return dir\n    end\n    if is_homedir(dir) then\n      return nil\n    end\n  end\n  return nil\nend\n\nlocal function find_project_name()\n  local project_path = find_project_path()\n  if project_path then\n    return vim.fn.fnamemodify(project_path, \":t\")\n  end\n  return \"\"\nend\n\nlocal function get_buf_relative_path()\n  local buf_path = get_buf_abs_path()\n  local project_path = find_project_path() or \"\"\n  return string.sub(buf_path, string.len(project_path) + 2, string.len(buf_path))\nend\n\nlocal function get_buf_relative_dir_path()\n  local buf_path = get_buf_abs_path()\n  local project_path = find_project_path() or \"\"\n  return string.sub(buf_path, string.len(project_path) + 2, string.len(buf_path))\nend\n\n-- Puts text at cursor, in any mode.\n--\n-- Compare |:put| and |p| which are always linewise.\n--\n-- Attributes: ~\n--     not allowed when |textlock| is active\n--\n-- Parameters: ~\n--   • {lines}   |readfile()|-style list of lines. |channel-lines|\n--   • {type}    Edit behavior: any |getregtype()| result, or:\n--               • \"b\" |blockwise-visual| mode (may include width, e.g. \"b3\")\n--               • \"c\" |charwise| mode\n--               • \"l\" |linewise| mode\n--               • \"\" guess by contents, see |setreg()|\n--   • {after}   If true insert after cursor (like |p|), or before (like\n--               |P|).\n--   • {follow}  If true place cursor at end of inserted text.\n--- @param lines string[]\n--- @param type string\n--- @param after boolean\n--- @param follow boolean\nlocal function put_lines(lines, type, after, follow)\n  vim.api.nvim_put(lines, type, after, follow)\nend\n\n--- Create a new horizontal splitted buffer\n--- and write the content into the buffer\n---@param content string[]\n---@param opts? {vertical?: boolean, ft?: string}\nlocal function split_and_write(content, opts)\n  opts = opts or {}\n  if opts.vertical then\n    vim.cmd(\"vnew\")\n  else\n    vim.cmd(\"new\")\n  end\n\n  -- Get the current buffer\n  local buf = vim.api.nvim_get_current_buf()\n\n  -- Clear the buffer\n  vim.api.nvim_buf_set_lines(buf, 0, -1, false, {})\n\n  -- Write the content into the buffer\n  put_lines(content, \"\", true, true)\n\n  -- Set the buffer as unmodified\n  vim.cmd(\"setlocal nomodified\")\n  if opts.ft then\n    vim.bo.ft = opts.ft\n  end\nend\n\n---@param terminal_chan number\n---@param term_cmd_text string\nlocal send_to_terminal_buf = function(terminal_chan, term_cmd_text)\n  vim.api.nvim_chan_send(terminal_chan, term_cmd_text .. \"\\n\")\nend\n\n--- Get the channel of the first terminal\n--- channel structure can be find at\n--- https://neovim.io/doc/user/api.html#nvim_get_chan_info()\n---@return any?\nlocal function get_first_terminal()\n  local terminal_chans = {}\n  for _, chan in pairs(vim.api.nvim_list_chans()) do\n    if chan[\"mode\"] == \"terminal\" and chan[\"pty\"] ~= \"\" then\n      table.insert(terminal_chans, chan)\n    end\n  end\n  table.sort(terminal_chans, function(left, right)\n    return left[\"buffer\"] < right[\"buffer\"]\n  end)\n  if #terminal_chans == 0 then\n    return nil\n  end\n  return terminal_chans[1]\nend\n\n--- Check if the channel's buffer visible\n--- You can get the buffer number by `vim.api.nvim_list_chans()`\n---@param channel_buffer_number number this is the chan buffer number not chan id\n---@return boolean\nlocal function is_visible(channel_buffer_number)\n  for _, win in ipairs(vim.api.nvim_list_wins()) do\n    if vim.api.nvim_win_get_buf(win) == channel_buffer_number then\n      return true\n    end\n  end\n  return false\nend\n\n---@return any?\nlocal function get_first_visible_terminal()\n  local terminal_chans = {}\n  for _, chan in pairs(vim.api.nvim_list_chans()) do\n    if chan[\"mode\"] == \"terminal\" and chan[\"pty\"] ~= \"\" and is_visible(chan.buffer) then\n      table.insert(terminal_chans, chan)\n    end\n  end\n  table.sort(terminal_chans, function(left, right)\n    return left[\"buffer\"] < right[\"buffer\"]\n  end)\n  if #terminal_chans == 0 then\n    return nil\n  end\n  return terminal_chans[1]\nend\n\n---@param popup_content string[]\n---@return {buf: integer, win: integer}\nlocal function new_popup_window(popup_content)\n  local popup_buf = vim.api.nvim_create_buf(false, true)\n  vim.api.nvim_buf_set_lines(popup_buf, 0, -1, false, popup_content)\n  vim.api.nvim_buf_set_option(popup_buf, \"filetype\", \"sh\")\n  local width = vim.fn.strdisplaywidth(table.concat(popup_content, \"\\n\"))\n  local height = #popup_content\n\n  local opts = {\n    relative = \"cursor\",\n    row = 0,\n    col = 0,\n    width = width + 4,\n    height = height + 2,\n    style = \"minimal\",\n    border = \"single\",\n  }\n\n  local win = vim.api.nvim_open_win(popup_buf, true, opts)\n  return {\n    buf = popup_buf,\n    win = win,\n  }\nend\n\nlocal M = {\n  selections = {\n    getCursorPosition = getCursorPosition,\n    get_positions = get_selected_positions,\n    get_visual_selection_start_position = get_visual_selection_start_position,\n    get_visual_selection_end_position = get_visual_selection_end_position,\n    getVisualLines = get_visual_lines,\n    get_selected = getSelectedText,\n  },\n  tab = {\n    countWindows = countWindows,\n  },\n  window = {\n    close_all_other_windows = close_all_other_windows,\n    splitWindow = splitWindow,\n    new_popup_window = new_popup_window,\n  },\n  buf = {\n    read = {\n      get_buf_name = get_buf_name,\n      get_buf_filetype = get_buf_filetype,\n      get_buf_size = get_buf_size,\n      get_buf_filename = get_buf_filename,\n      get_buf_abs_path = get_buf_abs_path,\n      get_buf_abs_dir_path = get_buf_abs_dir_path,\n      get_buf_relative_path = get_buf_relative_path,\n      get_buf_relative_dir_path = get_buf_relative_dir_path,\n      get_cursor_position = get_cursor_position,\n      get_current_line = get_current_line,\n      get_selected = getSelectedText,\n      is_visible = is_visible,\n    },\n    write = {\n      put_lines = put_lines,\n      send_to_terminal_buf = send_to_terminal_buf,\n    },\n  },\n  get_first_terminal = get_first_terminal,\n  get_first_visible_terminal = get_first_visible_terminal,\n  split_and_write = split_and_write,\n  find_project_path = find_project_path,\n  find_project_name = find_project_name,\n  replaceSelectedTextWithClipboard = replaceSelectedTextWithClipboard,\n  -- TODO: refactor into selections group\n  getSelectedText = getSelectedText,\n  get_current_line = get_current_line,\n}\n\nreturn M\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/init.lua",
    "content": "local M = {}\n\n---@filename string\n---@return string\nfunction M.ReadFileAsString(filename)\n\treturn table.concat(vim.fn.readfile(filename), \"\\n\")\nend\n\nfunction M.ReplacePattern(str, pattern, replacement)\n\treturn string.gsub(str, pattern, replacement)\nend\n\n-- TODO: deprecated function.\nM.getFiletype = function()\n\treturn vim.bo.ft\nend\n\n---@param cmd string\n---@return string|nil\n---@deprecated use run_sync in util.base.sys module\nfunction M.Call_sys_cmd(cmd)\n\tlocal handle = io.popen(cmd)\n\tlocal result = handle:read(\"*a\")\n\thandle:close()\n\t-- TODO: get the error msg after failed to exec a command\n\treturn result\nend\n\n-- TODO: deprecated\n-- Use the function in sys\n---@param content string\nfunction M.copy_to_system_clipboard(content)\n\tlocal copy_cmd = \"pbcopy\"\n\t-- Copy the absolute path to the clipboard\n\tif vim.fn.has(\"mac\") or vim.fn.has(\"macunix\") then\n\t\tcopy_cmd = \"pbcopy\"\n\telseif vim.fn.has(\"win32\") or vim.fn.has(\"win64\") then\n\t\tcopy_cmd = \"clip\"\n\telseif vim.fn.has(\"unix\") then\n\t\tcopy_cmd = \"xclip -selection clipboard\"\n\telse\n\t\tprint(\"Unsupported operating system\")\n\t\treturn\n\tend\n\n\tvim.fn.system(copy_cmd, content)\nend\n\n-- TODO: use the utli in editor\nfunction M.ExitCurrentMode()\n\tlocal esc = vim.api.nvim_replace_termcodes(\"<esc>\", true, false, true)\n\tvim.api.nvim_feedkeys(esc, \"x\", false)\nend\n\nreturn M\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/lang.lua",
    "content": "local editor = require(\"easy-commands.impl.util.editor\")\n\n---@functionName string\nlocal call_language_specific_func = function(functionName)\n  require(\"easy-commands.impl.lang.\" .. editor.buf.read.get_buf_filetype())[functionName]()\n  -- local ok, _ = pcall(require(\"easy-commands.impl.lang.\" .. editor.getFiletype())[functionName])\n  -- if not ok then\n  --   vim.notify(\"There's some error or may not be implemented yet for [\" .. editor.getFiletype() .. \"] type\")\n  -- end\nend\n\nlocal M = {\n  call_language_specific_func = call_language_specific_func,\n}\n\nreturn M\n"
  },
  {
    "path": "nvim/.config/nvim/lua/util/log.lua",
    "content": "\n---@param msg string\nlocal function notifyErr(msg)\n  vim.notify(\"easy-comands.nvim: \\n\" .. msg, vim.log.levels.ERROR, { title = \"easy-commands.nvim\" })\nend\n\nreturn {\n  error = notifyErr,\n}\n"
  },
  {
    "path": "tmux/.tmux.conf",
    "content": "# REF: http://deanbodenham.com/learn/tmux-conf-file.html\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# General settings ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\n\n\n#set mouse off/on - if off, forces you to use keyboard with prefix-[\nset -g mouse on\n \n# start with window 1 (instead of 0)\nset -g base-index 1\n \n# start with pane 1\nset -g pane-base-index 1\n \n# allow utf8 support\nset -q -g status-utf8 on     # expect UTF-8 (tmux < 2.2)\nsetw -q -g utf8 on\n\n# Or for tmux >= 2.6\nset -sg escape-time 10\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# PANE AND WINDOW NAVIGATION/MANAGEMENT ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\n\n# splitting panes\n# use vim-like keys for splits and windows\nbind \\\\ split-window -h -c \"#{pane_current_path}\"\nbind - split-window -v -c \"#{pane_current_path}\"\n\n# Smart pane switching with awareness of Vim splits.\n# See: https://github.com/christoomey/vim-tmux-navigator\nis_vim=\"ps -o state= -o comm= -t '#{pane_tty}' \\\n    | grep -iqE '^[^TXZ ]+ +(\\\\S+\\\\/)?g?(view|l?n?vim?x?)(diff)?$'\"\nbind-key -n 'C-h' if-shell \"$is_vim\" 'send-keys C-h'  'select-pane -L'\nbind-key -n 'C-j' if-shell \"$is_vim\" 'send-keys C-j'  'select-pane -D'\nbind-key -n 'C-k' if-shell \"$is_vim\" 'send-keys C-k'  'select-pane -U'\nbind-key -n 'C-l' if-shell \"$is_vim\" 'send-keys C-l'  'select-pane -R'\ntmux_version='$(tmux -V | sed -En \"s/^tmux ([0-9]+(.[0-9]+)?).*/\\1/p\")'\nif-shell -b '[ \"$(echo \"$tmux_version < 3.0\" | bc)\" = 1 ]' \\\n    \"bind-key -n 'C-\\\\' if-shell \\\"$is_vim\\\" 'send-keys C-\\\\'  'select-pane -l'\"\nif-shell -b '[ \"$(echo \"$tmux_version >= 3.0\" | bc)\" = 1 ]' \\\n    \"bind-key -n 'C-\\\\' if-shell \\\"$is_vim\\\" 'send-keys C-\\\\\\\\'  'select-pane -l'\"\n\nbind-key -n 'C-e' display-popup -E \"bash -c /Users/lintao/dotfiles/local-bin-scripts/.local/bin/tmux-window-switcher.sh\"\n\n\nset-option repeat-time 2000\n\n# pane resizing\nbind -r H resize-pane -L 3\nbind -r J resize-pane -D 3\nbind -r K resize-pane -U 3\nbind -r L resize-pane -R 3\n\n# next/prev window by `h/l`\nbind -r h prev\nbind -r l next\n\n# default pane layouts\nbind + select-layout main-horizontal\nbind = select-layout main-vertical\n\n# Rotate panes\nbind -r o rotate-window\n\n# ====================== My configs\n\n# set history\nset -g history-limit 10000                 # boost history\n\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# Copy/Paste Vim mode ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\n\n# Enable native Mac OS X copy/paste\nset-option -g default-command \"/bin/bash -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'\"\n\n# use vi mode\nsetw -g mode-keys vi\nset -g status-keys vi\n\n# bind\nbind [ copy-mode\n\n# Setup 'v' to begin selection as in Vim\nbind -T copy-mode-vi v send -X begin-selection\nbind -T copy-mode-vi y send -X copy-pipe-and-cancel \"reattach-to-user-namespace pbcopy\"\n\n# Update default binding of `Enter` to also use copy-pipe\nunbind -T copy-mode-vi Enter\nbind -T copy-mode-vi Enter send -X copy-pipe-and-cancel \"reattach-to-user-namespace pbcopy\"\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# Shortcuts ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\n\nbind r source-file ~/.tmux.conf \\; display \"Reloaded ~/.tmux.conf\"  \n\nbind d send-keys -R C-l \\; clear-history\n\n# Toggle popup window with Alt-3\nbind-key -n -N 'Toggle popup window' M-3 if-shell -F '#{==:#{session_name},popup}' {\n    detach-client\n} {\n    display-popup -d \"#{pane_current_path}\" -xC -yC -w 100% -h 100% -E 'tmux attach-session -t popup || tmux new-session -s popup'\n}\n\n\n# bind-key -n \"M-8\" run-shell -b \"~/.tmux/plugins/tmux-fzf/scripts/pane.sh switch\"\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# NVim Requirement ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\nset-option -g focus-events on\n\n########################## 🔽 TPM 🔽 ###########################\n# List of plugins\nset -g @plugin 'tmux-plugins/tpm'\nset -g @plugin 'tmux-plugins/tmux-sensible'\n\nset -g @plugin 'sainnhe/tmux-fzf'\nTMUX_FZF_OPTIONS=\"-p -w 80% -h 76% -m\"\nTMUX_FZF_LAUNCH_KEY=\"f\"\nlMUX_FZF_ORDER=\"session|pane|command|keybinding|window\"\nTMUX_FZF_PANE_FORMAT=\"#{p15:#{b:pane_current_path}} :: #{pane_current_command}\"\n# press <prefix-I> after add/delete plugin\n# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)\nrun '~/.tmux/plugins/tpm/tpm'\n########################## 🔼 TPM 🔼 ##########################\n\n#-------------------------------------------------------#\n#-------------------------------------------------------#\n# Styles ⬇️ ⬇️ ⬇️\n#-------------------------------------------------------#\n\n#256 colours\nset -g default-terminal \"screen-256color\"\nset-option -ga terminal-overrides \",xterm-256color:Tc\"\n\n# Segguested by neovim healthcheck\nset-option -sa terminal-overrides ',screen-256color:RGB'\nset-option -sa terminal-overrides ',XXX:RGB'\n\n# set inactive/active window(pane) styles \nset-window-option -t popup window-active-style \"fg=colour250,bg=#332B28\"\n\nset -g window-style 'fg=#7E7E7E,bg=#4B4B4B'\nset -g window-active-style 'fg=colour250,bg=black'\nset -g status-interval 1\nset -g window-status-format '#I:#(pwd=\"#{pane_current_path}\"; echo ${pwd####*/})#F'\nset -g window-status-current-format '#I:#(pwd=\"#{pane_current_path}\"; echo ${pwd####*/})#F'\n\n\n########################## 🔽 GRUVBOX DARK 🔽 ###########################\nset-option -g status-interval 3\nset-option -g automatic-rename on\nset-option -g automatic-rename-format '#{b:pane_current_path} :: #{b:pane_current_command}'\n\n## COLORSCHEME: gruvbox dark (medium)\nset-option -g status \"on\"\n\n# default statusbar color\nset-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1\n\n# default window title colors\nset-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1\n\n# default window with an activity alert\nset-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3\n\n# active window title colors\nset-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1\n\n# pane border\nset -g pane-active-border-style \"bg=default fg=cyan\"\nset -g pane-border-style \"fg=#7E7E7E\"\nset -g pane-border-lines heavy\n\n# message infos\nset-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1\n\n# writing commands inactive\nset-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1\n\n# pane number display\nset-option -g display-panes-active-colour colour250 #fg2\nset-option -g display-panes-colour colour237 #bg1\n\n# clock\nset-window-option -g clock-mode-colour colour109 #blue\n\n# bell\nset-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg\n\n## Theme settings mixed with colors (unfortunately, but there is no cleaner way)\nset-option -g status-justify \"left\"\nset-option -g status-left-style none\nset-option -g status-left-length \"80\"\nset-option -g status-right-style none\nset-option -g status-right-length \"80\"\nset-window-option -g window-status-separator \"\"\n\nset-option -g status-left \"#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]\"\nset-option -g status-right \"#[bg=colour237,fg=colour239 nobold, nounderscore, noitalics]#[bg=colour239,fg=colour246] %Y-%m-%d  %H:%M #[bg=colour239,fg=colour248,nobold,noitalics,nounderscore]#[bg=colour248,fg=colour237] \"\n\nset-window-option -g window-status-current-format \"#[bg=colour214,fg=colour237,nobold,noitalics,nounderscore]#[bg=colour214,fg=colour239] #I #[bg=colour214,fg=colour239,bold] #{b:pane_current_path}#{?window_zoomed_flag,*Z,} :: #{pane_current_command} #[bg=colour237,fg=colour214,nobold,noitalics,nounderscore]\"\nset-window-option -g window-status-format \"#[bg=colour239,fg=colour237,noitalics]#[bg=colour239,fg=colour223] #I #[bg=colour239,fg=colour223] #{b:pane_current_path} #[bg=colour237,fg=colour239,noitalics]\"\n########################## 🔼 GRUVBOX DARK 🔼 ##########################\n"
  },
  {
    "path": "update.sh",
    "content": "#!/bin/bash\n\n# Change to the directory containing the script\ncd \"$(dirname \"$0\")\" || {\n    echo \"Error: Failed to change directory.\"\n    exit 1\n}\n\n# Source the paths of the configuration files\nif [[ -f .local/source-paths.sh ]]; then\n    source .local/source-paths.sh\nelse\n    echo \"Error: .local/source-paths.sh not found.\"\n    exit 1\nfi\n\n# Declare an associative array containing the tools and their configuration paths\ndeclare -A share_items=(\n  [nvim]=\"$NVIM\"\n)\n\n# Iterate through the array and synchronize each configuration file\nfor item in \"${!share_items[@]}\"; do\n    if [[ -n \"${share_items[$item]}\" ]]; then\n        rsync -avz --delete \"${share_items[$item]}\" \"./$item\"\n    else\n        echo \"Warning: Path for $item is not set or is empty. Skipping synchronization.\"\n    fi\ndone\n"
  },
  {
    "path": "vscode-jupyter-notebook/vscode-jupyter-notebook.md",
    "content": "## Vscode Jupyter Notebook with VIM\n\n- block\n\t- Insert block below: `b`\n\t- Insert block above: `a`\n\t- Copy block: `c`\n\t- Paste block: `v`\n\t- Cut block: `x`\n\t- Delete block: `dd`\n\t- Collaspes block: ???\n- Movement\n\t- `j`, `k`\n\t- Go to the bottom `G`\n\t- Go to the top: `gg`\n\t\n- Convert to Code block: `y`\n- Convert to Markdown block: `m`\n\n- revert action: `z`\n"
  },
  {
    "path": "warpd/.config/warpd/config",
    "content": "hint_activation_key: A-M-j\nactivation_key: C-M-'\nhint: f\nexit: q\ncursor_size: 13\n"
  },
  {
    "path": "wezterm/.wezterm.lua",
    "content": "local wezterm = require(\"wezterm\")\nlocal act = wezterm.action\n\n-- https://github.com/folke/zen-mode.nvim\nwezterm.on(\"user-var-changed\", function(window, pane, name, value)\n\tlocal overrides = window:get_config_overrides() or {}\n\tif name == \"ZEN_MODE\" then\n\t\tlocal incremental = value:find(\"+\")\n\t\tlocal number_value = tonumber(value)\n\t\tif incremental ~= nil then\n\t\t\twhile number_value > 0 do\n\t\t\t\twindow:perform_action(wezterm.action.IncreaseFontSize, pane)\n\t\t\t\tnumber_value = number_value - 1\n\t\t\tend\n\t\t\toverrides.enable_tab_bar = false\n\t\telseif number_value < 0 then\n\t\t\twindow:perform_action(wezterm.action.ResetFontSize, pane)\n\t\t\toverrides.font_size = nil\n\t\t\toverrides.enable_tab_bar = true\n\t\telse\n\t\t\toverrides.font_size = number_value\n\t\t\toverrides.enable_tab_bar = false\n\t\tend\n\tend\n\twindow:set_config_overrides(overrides)\nend)\n\nlocal function macCMDtoMeta()\n\tlocal keys = \"abdefghijklmnopqrstuwxyz1234567890/\" -- no c,v\n\tlocal keymappings = {}\n\n\tfor i = 1, #keys do\n\t\tlocal c = keys:sub(i, i)\n\n    -- CMD+key  -->  META+key\n\t\ttable.insert(keymappings, {\n\t\t\tkey = c,\n\t\t\tmods = \"CMD\",\n\t\t\taction = act.SendKey({\n\t\t\t\tkey = c,\n\t\t\t\tmods = \"META\",\n\t\t\t}),\n\t\t})\n\n    -- CMD+CTRL+key  -->  META+key\n\t\ttable.insert(keymappings, {\n\t\t\tkey = c,\n\t\t\tmods = \"CMD|CTRL\",\n\t\t\taction = act.SendKey({\n\t\t\t\tkey = c,\n\t\t\t\tmods = \"META|CTRL\",\n\t\t\t}),\n\t\t})\n\tend\n\treturn keymappings\nend\n\nlocal function generateKeyMappings()\n\tlocal keymappings = {\n\t\t{ key = \"n\", mods = \"SHIFT|CTRL\", action = wezterm.action.SpawnWindow },\n\t\t{\n\t\t\tkey = \"F2\",\n\t\t\tmods = \"CMD\",\n\t\t\taction = act.SendKey({\n\t\t\t\tkey = \"F2\",\n\t\t\t\tmods = \"META\",\n\t\t\t}),\n\t\t},\n\t}\n\n\tfor _, v in ipairs(macCMDtoMeta()) do\n\t\ttable.insert(keymappings, v)\n\tend\n\treturn keymappings\nend\n\nreturn {\n\tfont = wezterm.font_with_fallback({\n\t\t-- \"FiraMono Nerd Font Mono\",\n\t\t\"Hack Nerd Font Mono\",\n\t}),\n\tcolor_scheme = \"Gruvbox dark, medium (base16)\",\n\tkeys = generateKeyMappings(),\n\tfont_size = 18.0,\n\thide_tab_bar_if_only_one_tab = true,\n}\n"
  },
  {
    "path": "zsh/.zshrc",
    "content": "# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.\n# Initialization code that may require console input (password prompts, [y/n]\n# confirmations, etc.) must go above this block; everything else may go below.\nif [[ -r \"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n\n########################## 🔽 ENV 🔽 ###########################\nexport JAVA_HOME=\"/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home\"\nexport M2_HOME=\"$HOME/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3\"\nexport GOPATH=$HOME/go\nexport LANG=en_US.UTF-8\nexport EDITOR=\"nvim\"\nexport TMUX_TMPDIR=~/.tmux\nexport GRAVEYARD=\"~/.local/share/Trash.\" # for rip command\n\n# History in cache directory:\nexport HISTSIZE=10000\nexport SAVEHIST=10000\nexport HISTFILE=~/.zsh_history\nsource ~/.secrets\n########################## 🔼 ENV 🔼 ##########################\n\n########################## 🔽 PATH 🔽 ###########################\npaths=(\n/usr/local/bin\n/usr/bin\n/bin\n/usr/sbin\n/sbin\n/Library/Apple/usr/bin\n/opt/homebrew/bin\n/opt/homebrew/sbin\n/opt/local/bin\n/opt/local/sbin\n${HOME}/.local/bin\n${HOME}/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3/bin\n${HOME}/go/bin\n${HOME}/.cargo/bin\n/opt/local/lib/postgresql15/bin\n${HOME}/Library/Python/3.9/bin\n)\njoin_by() {\n    local separator=\"$1\"\n    shift\n    printf '%s' \"$1\" \"${@/#/$separator}\"\n}\npath=$(join_by \":\" \"${paths[@]}\")\nexport PATH=\"$path\"\n########################## 🔼 PATH 🔼 ##########################\n\nautoload -U colors && colors\n\n########################## 🔽 AUTO COMP 🔽 ###########################\n# Basic auto/tab complete:\nautoload bashcompinit && bashcompinit\nautoload -U compinit\nzstyle ':completion:*' menu select\nzmodload zsh/complist\ncompinit\n# put the custom completions here: /usr/local/share/zsh/site-functions\n# Addtional completions can be found in: https://github.com/zsh-users/zsh-completions\n_comp_options+=(globdots)\t\t# Include hidden files.\nfpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src\nfpath+=$HOME/.oh-my-zsh/custom/zsh-completions\n\ncomplete -C '/usr/local/bin/aws_completer' aws\nsource <(kubectl completion zsh)\n########################## 🔼 AUTO COMP 🔼 ###########################\n\n# vi mode\nbindkey -v\nexport KEYTIMEOUT=1\n\n########################## 🔽 JUMP 🔽 ###########################\neval \"$(jump shell zsh)\"\n\n__jump_chpwd() {\n  jump chdir\n}\n\njump_completion() {\n  reply=\"'$(jump hint \"$@\")'\"\n}\n\nj() {\n  local dir=\"$(jump cd $@)\"\n  test -d \"$dir\" && cd \"$dir\"\n}\n\ntypeset -gaU chpwd_functions\nchpwd_functions+=__jump_chpwd\n\ncompctl -U -K jump_completion j\n########################## 🔼 JUMP 🔼 ##########################\n\n\n########################## 🔽 OH MY ZSH 🔽 ###########################\n# Path to your oh-my-zsh installation.\nexport ZSH=\"$HOME/.oh-my-zsh\" \n# source ~/powerlevel10k/powerlevel10k.zsh-theme\nZSH_THEME=\"powerlevel10k/powerlevel10k\"\nplugins=(\n  git\n  fzf-tab\n  zsh-autosuggestions\n)\nsource $ZSH/oh-my-zsh.sh\n########################## 🔼 OH MY ZSH 🔼 ##########################\n\n########################## 🔽 LOAD OTHER CONFIGS 🔽 ###########################\n[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # this must put after oh-my-zsh plugins\n                                       # to avoid unexpected overwrite\nbindkey \"ç\" fzf-cd-widget                                       \nsource \"/opt/homebrew/Cellar/fzf/0.38.0/shell/key-bindings.zsh\"\n\n# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.\n[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh \n########################## 🔼 LOAD OTHER CONFIGS 🔼 ##########################\n\n\n########################## 🔽 NVM 🔽 ###########################\n# export NVM_DIR=\"$HOME/.nvm\"\n# export PATH=$PATH:\"$HOME/.nvm/versions/node/v14.16.0/bin\"\n# source /opt/local/share/nvm/init-nvm.sh\n# nvm() { . \"/usr/local/opt/nvm/nvm.sh\"; nvm $@; }\n########################## 🔼 NVM 🔼 ##########################\n\n########################## 🔽 ALIAS 🔽 ###########################\nalias chat=\"nvim -c 'lua require(\\\"scratch\\\").scratchByType(\\\"gp4.md\\\")'\"\nalias vim=\"nvim\"\nalias gp!=\"git push --no-verify\"\nalias v=\"lvim +\\\"Telescope oldfiles\\\"\"\nalias glog=\"git log --pretty=format:'%C(auto)%h%C(blue) %<|(19)%as%C(auto)%d %s' --graph\"\nalias kc=\"kubectl\"\nalias python=\"python3\"\nalias gitsync=\"$HOME/Documents/Git-Sync/sync.sh\"\nalias df='vim +DiffviewOpen'\nalias lm=\"limactl\"\nalias lt=\"lsgo | head -n 30\"\nalias gonew=\"source go-new\"\nalias awsprofileswither=\"source aws-profile-switcher\"\nalias kl=\"minikube kubectl --\"\n\n########################## 🔼 ALIAS 🔼 ##########################\n\n########################## 🔽 SHORTCUTS 🔽 ###########################\nlfcd () {\n    tmp=\"$(mktemp)\"\n    lf -last-dir-path=\"$tmp\" \"$@\"\n    if [ -f \"$tmp\" ]; then\n        dir=\"$(cat \"$tmp\")\"\n        rm -f \"$tmp\"\n        [ -d \"$dir\" ] && [ \"$dir\" != \"$(pwd)\" ] && cd \"$dir\"\n    fi\n}\n\nbindkey -s '^o' 'lfcd\\n'\n\n# ctrl-u toggle lazygit\nbindkey -s '^u' 'lazygit\\n'\n\n# Edit line in vim with ctrl-e:\nautoload edit-command-line; zle -N edit-command-line\nbindkey '^e' edit-command-line\n########################## 🔼 SHORTCUTS 🔼 ##########################\n\n# Load zsh-syntax-highlighting; should be last.\n# source \"$HOME/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\"\n\n# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.\n[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh\n"
  }
]