From 93bea02a489a87165c304ef74c302a7149ae86f7 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 7 Apr 2024 18:45:58 +0100 Subject: [PATCH] Cleanup command documentation comments --- lua/commands.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/commands.lua b/lua/commands.lua index 24227d5..1ef8069 100644 --- a/lua/commands.lua +++ b/lua/commands.lua @@ -1,4 +1,4 @@ --- :RString Strip white psace from right of all lines, ranges supported +-- :RString 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 @@ -7,7 +7,7 @@ vim.api.nvim_create_user_command('RStrip', function(opts) vim.fn.setpos('.', pos) end, { range = '%' }) --- :TabWidth set the tab width for the current buffer +-- :TabWidth set the tab width for the current buffer vim.api.nvim_create_user_command('TabWidth', function(opts) -- Set the tab width for the current filetype -- FIXME: Doesn't seem to cover all bases in neovim when editorconfig is @@ -103,8 +103,8 @@ end, { -- TODO: :Mkdir --- :Rg grep for the string and fuzzy find the results, bang to enable --- regex in search term +-- :Rg grep for the given string and fuzzy find the results, bang to enable +-- regex in given string vim.api.nvim_create_user_command('Rg', function(opts) local grep_opts = { search = opts.args } if opts.bang then