-
is there a way instead of ft being a table of filetypes to load on it is a table of filetypes to NOT load on. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Why don't you use the {
"folke/flash.nvim",
cond = function()
return not string.match(vim.fn.fnamemodify(vim.fn.bufname("%"), ":t"), ".*%.js")
end,
}, would not load |
Beta Was this translation helpful? Give feedback.
-
@dpetka2001 answer's works for me, but is there a way to make it detect on filetype rather than *.md extension? As filetype could be set by a modeline or even on an empty buffer. Why doesn't something like this work? return not string.match(vim.api.nvim_buf_get_option(0, "filetype"), "markdown") |
Beta Was this translation helpful? Give feedback.
I was able to make an autocommand: