make prosemode only trigger for markdown files
This commit is contained in:
parent
4894eae086
commit
b1934007f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue