diff --git a/lua/hardline/parts/whitespace.lua b/lua/hardline/parts/whitespace.lua index ad98e16..a2a0b9d 100644 --- a/lua/hardline/parts/whitespace.lua +++ b/lua/hardline/parts/whitespace.lua @@ -19,6 +19,9 @@ local function search(prefix, pattern) end local function check_trailing() + if vim.tbl_contains({'markdown'}, bo.filetype) then + return '' + end return search('trailing', [[\s$]]) end