Update comments in commands.lua
This commit is contained in:
parent
7963c56fd9
commit
cd5cd3ba69
@ -1,4 +1,4 @@
|
||||
-- :RString strip white psace from right of all lines, ranges supported
|
||||
-- :RStrip strip white psace from right of all lines, ranges supported
|
||||
vim.api.nvim_create_user_command('RStrip', function(opts)
|
||||
local pos = vim.fn.getcurpos(vim.api.nvim_get_current_win())
|
||||
local range = opts.line1 .. ',' .. opts.line2
|
||||
@ -42,7 +42,7 @@ vim.api.nvim_create_user_command('Remove', function(opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Actually remove the file using the selecte callback.
|
||||
-- Actually remove the file using the selected callback.
|
||||
vim.loop.fs_unlink(path, callback)
|
||||
end, { bang = true })
|
||||
|
||||
@ -141,6 +141,7 @@ vim.api.nvim_create_user_command('Rg', function(opts)
|
||||
require('telescope.builtin').grep_string(grep_opts)
|
||||
end, { bang = true, range = true, nargs = '*' })
|
||||
|
||||
-- :PreProcIfWrap wraps the given range of lines in #if 0 / #endif.
|
||||
vim.api.nvim_create_user_command('PreProcIfWrap', function(opts)
|
||||
local buffer = vim.api.nvim_get_current_buf()
|
||||
vim.api.nvim_buf_set_lines(
|
||||
@ -151,6 +152,7 @@ vim.api.nvim_create_user_command('PreProcIfWrap', function(opts)
|
||||
vim.api.nvim_win_set_cursor(window, { opts.line1, 5 })
|
||||
end, { range = true })
|
||||
|
||||
-- :CheckboxToggle toggles GitHub Flavoured Markdown style checkboxes.
|
||||
vim.api.nvim_create_user_command('CheckboxToggle', function(opts)
|
||||
local linenr = vim.fn.line('.')
|
||||
local line = vim.fn.getline(linenr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user