From e13ee7edbde7bf59c32a7ab0cef1516867b0e0aa Mon Sep 17 00:00:00 2001 From: David Ibia Date: Mon, 29 Jul 2024 01:01:06 +0100 Subject: [PATCH] fix(remap.lua): replace print statement with vim.notify to display error message with log level ERROR for unsupported filetypes --- lua/absolute/remap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/absolute/remap.lua b/lua/absolute/remap.lua index 4ec6bbf..1337355 100644 --- a/lua/absolute/remap.lua +++ b/lua/absolute/remap.lua @@ -97,7 +97,7 @@ vim.keymap.set("n", "", function() if string.find(allowed_extensions, file_extension) then vim.cmd("so %") else - print("Filetype not supported") + vim.notify("Filetype not supported", vim.log.levels.ERROR) end end, opts)