URI:
       nvim: add plugin to show traling whitespace etc. - dotfiles - 🍚 personal arsenal of "rice"
  HTML git clone https://git.drkhsh.at/dotfiles.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit b239b0c792c50352bdf2f4852435ce45cf2b670a
   DIR parent ebd1970c91712abf3558d86fb077897a34049ef3
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Mon,  9 Sep 2024 00:21:06 +0200
       
       nvim: add plugin to show traling whitespace etc.
       
       Diffstat:
         A vim/.config/nvim/lua/plugins/white… |      27 +++++++++++++++++++++++++++
       
       1 file changed, 27 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/vim/.config/nvim/lua/plugins/whitespace.lua b/vim/.config/nvim/lua/plugins/whitespace.lua
       @@ -0,0 +1,27 @@
       +return {
       +    'johnfrankmorgan/whitespace.nvim',
       +        event = "BufReadPost",
       +    config = function ()
       +        require('whitespace-nvim').setup({
       +            -- configuration options and their defaults
       +
       +            -- `highlight` configures which highlight is used to display
       +            -- trailing whitespace
       +            highlight = 'DiffDelete',
       +
       +            -- `ignored_filetypes` configures which filetypes to ignore when
       +            -- displaying trailing whitespace
       +            ignored_filetypes = { 'TelescopePrompt', 'Trouble', 'help', 'dashboard' },
       +
       +            -- `ignore_terminal` configures whether to ignore terminal buffers
       +            ignore_terminal = true,
       +
       +            -- `return_cursor` configures if cursor should return to previous
       +            -- position after trimming whitespace
       +            return_cursor = true,
       +        })
       +
       +        -- remove trailing whitespace with a keybinding
       +        vim.keymap.set('n', '<Leader>t', require('whitespace-nvim').trim)
       +    end
       +}