another day
This commit is contained in:
parent
feb59d91c5
commit
1bbc50e3a9
27 changed files with 419 additions and 246 deletions
5
lua/commands.lua
Normal file
5
lua/commands.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue