another day

This commit is contained in:
Iwaniuk Krzysztof 2024-06-19 00:41:29 +02:00
parent feb59d91c5
commit 1bbc50e3a9
27 changed files with 419 additions and 246 deletions

5
lua/commands.lua Normal file
View 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