URI:
       whitespace.lua - 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
       ---
       whitespace.lua (985B)
       ---
            1 return {
            2     'johnfrankmorgan/whitespace.nvim',
            3         event = "BufReadPost",
            4     config = function ()
            5         require('whitespace-nvim').setup({
            6             -- configuration options and their defaults
            7 
            8             -- `highlight` configures which highlight is used to display
            9             -- trailing whitespace
           10             highlight = 'DiffDelete',
           11 
           12             -- `ignored_filetypes` configures which filetypes to ignore when
           13             -- displaying trailing whitespace
           14             ignored_filetypes = { 'TelescopePrompt', 'Trouble', 'help', 'dashboard' },
           15 
           16             -- `ignore_terminal` configures whether to ignore terminal buffers
           17             ignore_terminal = true,
           18 
           19             -- `return_cursor` configures if cursor should return to previous
           20             -- position after trimming whitespace
           21             return_cursor = true,
           22         })
           23 
           24         -- remove trailing whitespace with a keybinding
           25         vim.keymap.set('n', '<Leader>t', require('whitespace-nvim').trim)
           26     end
           27 }