nvim-config/lua/commands.lua
2022-10-19 23:56:02 -07:00

10 lines
314 B
Lua

-- Make it easier to run black
vim.api.nvim_create_user_command('Black', 'call Black()', {})
-- Insert IPDB statement
vim.api.nvim_create_user_command('IPDB', 'norm oimport ipdb; ipdb.set_trace() # fmt:skip', {})
-- Format the document
vim.api.nvim_create_user_command('Format', 'lua vim.lsp.buf.format()', {})