Procházet zdrojové kódy

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 před 4 roky
rodič
revize
abab0d5e82
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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,
 }