This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@param types string[] Will return the first node that matches one of these types | |
---@param node TSNode|nil | |
---@return TSNode|nil | |
local function find_node_ancestor(types, node) | |
if not node then | |
return nil | |
end | |
if vim.tbl_contains(types, node:type()) then | |
return node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking in/out: | |
$ git clone [project url] - get a copy of repo in a folder | |
$ git checkout [file] - check out last committed version of a file | |
$ git add --patch [file] - Step through each section of changes in a file with option to stage or not stage | |
$ git remote rm origin - remove origin | |
$ git remote add origin [url] - add origin | |
Working with Branches: | |
$ git branch [foo] - create branch named foo |