fix(remap.lua): replace print statement with vim.notify to display error message with log level ERROR for unsupported filetypes

This commit is contained in:
David Ibia
2024-07-29 01:01:06 +01:00
parent c39c7a7556
commit e13ee7edbd

View File

@@ -97,7 +97,7 @@ vim.keymap.set("n", "<leader><leader>", function()
if string.find(allowed_extensions, file_extension) then if string.find(allowed_extensions, file_extension) then
vim.cmd("so %") vim.cmd("so %")
else else
print("Filetype not supported") vim.notify("Filetype not supported", vim.log.levels.ERROR)
end end
end, opts) end, opts)