refactor!: rename "playground" => "dev" #23919

Problem:
"playground" is new jargon that overlaps with existing concepts:
"dev" (`:help dev`) and "view" (also "scratch" `:help scratch-buffer`) .

Solution:
We should consistently use "dev" as the namespace for where "developer
tools" live. For purposes of a "throwaway sandbox object", we can use
the name "view".
- Rename `TSPlayground` => `TSView`
- Rename `playground.lua` => `dev.lua`
This commit is contained in:
Justin M. Keyes
2023-06-06 08:23:20 -07:00
committed by GitHub
parent 175e5c8b96
commit c48b1421af
5 changed files with 27 additions and 31 deletions

View File

@ -493,7 +493,7 @@ end
--- argument and should return a string.
function M.inspect_tree(opts)
---@cast opts InspectTreeOpts
require('vim.treesitter.playground').inspect_tree(opts)
require('vim.treesitter.dev').inspect_tree(opts)
end
--- Returns the fold level for {lnum} in the current buffer. Can be set directly to 'foldexpr':