kickstart.nvim/lua/commands.lua
Iwaniuk Krzysztof 1bbc50e3a9 another day
2024-06-19 00:41:29 +02:00

6 lines
217 B
Lua

vim.cmd [[:command! -nargs=1 I lua inspectFn(<f-args>)]]
function inspectFn(obj)
local cmd = string.format('lua print(vim.inspect(%s))', obj)
require('noice').redirect(cmd, { view = 'messages', filter = {} })
end