File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 "nvim-treesitter" : { "branch" : " main" , "commit" : " ecdae44baefeffceade8b0c752d80ececad28e76" },
2323 "nvim-treesitter-textobjects" : { "branch" : " main" , "commit" : " a0e182ae21fda68c59d1f36c9ed45600aef50311" },
2424 "oil.nvim" : { "branch" : " master" , "commit" : " f55b25e493a7df76371cfadd0ded5004cb9cd48a" },
25+ "mini.trailspace" : { "branch" : " main" , "commit" : " f8083ca969e1b2098480c10f3c3c4d2ce3586680" },
2526 "plenary.nvim" : { "branch" : " master" , "commit" : " b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
2627 "snacks.nvim" : { "branch" : " main" , "commit" : " fe7cfe9800a182274d0f868a74b7263b8c0c020b" },
2728 "vim-matchup" : { "branch" : " master" , "commit" : " 0fb1e6b7cea34e931a2af50b8ad565c5c4fd8f4d" },
Original file line number Diff line number Diff line change 1+ -- Highlight and remove trailspace.
2+ -- See https://github.com/nvim-mini/mini.trailspace'.
3+
4+ --- @type LazyPluginSpec[]
5+ return {
6+ {
7+ " echasnovski/mini.trailspace" ,
8+ event = { " BufReadPre" , " BufNewFile" },
9+ opts = {},
10+ init = function ()
11+ vim .api .nvim_create_autocmd (" BufWritePre" , {
12+ group = require (" peter.util.autocmds" ).augroup (" TrimWhitespace" ),
13+ callback = function ()
14+ require (" mini.trailspace" ).trim ()
15+ end ,
16+ })
17+ end ,
18+ },
19+ }
You can’t perform that action at this time.
0 commit comments