Skip to content

Commit

Permalink
fix(whitespace): whitespace highlights show in dashboard
Browse files Browse the repository at this point in the history
User should reinstall plugin whitespace.nvim by self.

See johnfrankmorgan/whitespace.nvim#13
  • Loading branch information
adoyle-h committed Aug 23, 2024
1 parent ae38480 commit 5f00ee6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/one/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ return function(Plug, Load, config)
'tyru/capture.vim',
on = 'Capture',
desc = [[
":Capture <Ex-Command>" to pipe Ex command output to new buffer'.
":Capture mess" to capture messages.
":Capture lua print('hello')" to capture lua print
":Capture echo globpath(&rtp, 'doc/*.txt')".
:Capture <Ex-Command>" to pipe Ex command output to new buffer'.
:Capture mess" to capture messages.
:Capture lua print('hello')" to capture lua print
:Capture echo globpath(&rtp, 'doc/*.txt')".
]],
}

Expand Down
9 changes: 9 additions & 0 deletions lua/one/plugins/trailing.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
return {
'johnfrankmorgan/whitespace.nvim',
-- @TODO remove below line after [the issue](https://github.com/johnfrankmorgan/whitespace.nvim/issues/13) fixed.
commit = '406cd69216dd7847b0cb38486603a8ed5c4f8c77',
desc = 'highlight trailing spaces',

highlights = function(config)
Expand All @@ -23,10 +25,17 @@ return {
return {
'whitespace',
{
-- `highlight` configures which highlight is used to display trailing whitespace
highlight = 'TrailingWhitespace',

-- `ignored_filetypes` configures which filetypes to ignore when displaying trailing whitespace
ignored_filetypes = config.ignore.fileTypesForSomePlugs,

-- `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,
},
}
end,
Expand Down

0 comments on commit 5f00ee6

Please sign in to comment.