make prosemode only trigger for markdown files

This commit is contained in:
andrzej 2024-05-06 14:01:03 +02:00
parent 4894eae086
commit b1934007f3
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ local function setProseModeVars(on)
end
vim.api.nvim_create_autocmd({ "Bufenter" }, {
callback = function()
if vim.bo.buftype ~= "nofile" then
if vim.bo.buftype ~= "nofile" and vim.bo.filetype == "markdown" then
vim.cmd("PencilSoft")
setProseModeVars(true)
else