diff --git a/lua/markview/languages.lua b/lua/markview/languages.lua index bb53b74..11a335f 100644 --- a/lua/markview/languages.lua +++ b/lua/markview/languages.lua @@ -266,7 +266,7 @@ languages.get_name = function (name) return string.gsub(name, "^%l", string.upper); end -languages.get_fs = function (name) +languages.get_ft = function (name) if not name or name == "" then return "Unknown"; elseif languages.reverse_map[name] then diff --git a/lua/markview/renderer.lua b/lua/markview/renderer.lua index 289bfd2..3914131 100644 --- a/lua/markview/renderer.lua +++ b/lua/markview/renderer.lua @@ -1052,8 +1052,8 @@ renderer.render_code_blocks = function (buffer, content, config_table) }) end elseif config_table.style == "language" then - local language = languages.get_fs(content.language); - local icon, hl = renderer.get_icon(content.language, config_table); + local language = languages.get_ft(content.language); + local icon, hl = renderer.get_icon(language, config_table); local block_length = content.largest_line; local languageName;