Browse Source

Typo (#924)

Fixed : E5108: Error executing lua /home/qvieth/.config/nvim/ftplugin/cpp.lua:4: attempt to index field 'c' (a nil value)  while using Formatted for C
Huynh Viet 4 năm trước cách đây
mục cha
commit
abab0d5e82
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      ftplugin/c.lua

+ 3 - 3
ftplugin/c.lua

@@ -1,9 +1,9 @@
 O.formatters.filetype["c"] = {
   function()
     return {
-      exe = O.lang.c.formatter.exe,
-      args = O.lang.c.formatter.args,
-      stdin = not (O.lang.c.formatter.stdin ~= nil),
+      exe = O.lang.clang.formatter.exe,
+      args = O.lang.clang.formatter.args,
+      stdin = not (O.lang.clang.formatter.stdin ~= nil),
     }
   end,
 }