feat: vim.inspect_pos, vim.show_pos, :Inspect

This commit is contained in:
Folke Lemaitre
2022-12-14 10:46:54 +01:00
parent 04da043244
commit ef91146efc
13 changed files with 385 additions and 11 deletions

View File

@@ -56,6 +56,9 @@ setmetatable(vim, {
if vim._submodules[key] then
t[key] = require('vim.' .. key)
return t[key]
elseif key == 'inspect_pos' or key == 'show_pos' then
require('vim._inspector')
return t[key]
elseif vim.startswith(key, 'uri_') then
local val = require('vim.uri')[key]
if val ~= nil then