neovim icon indicating copy to clipboard operation
neovim copied to clipboard

trim: config options for blank space removal

Open practicalli-johnny opened this issue 7 months ago • 0 comments

trim.nvim plugin will remove blank space at the end of lines and extra blank lines.

trim.nvim can also highlight blank spaces, defining a specific color

Neovim filetypes can be defined to skip (block) trimming and highlighting of blank space.

  {
    "cappyzawa/trim.nvim",
    event = "User AstroFile",
    opts = {
      -- ft_blocklist = {"markdown"}, -- filetype not to trim
      -- highlight = true,
      -- highlight_bg = "purple",
    },
  },

practicalli-johnny avatar Apr 21 '25 21:04 practicalli-johnny