Просмотр исходного кода

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 лет назад
Родитель
Сommit
abab0d5e82
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      ftplugin/c.lua

+ 3 - 3
ftplugin/c.lua

@@ -1,9 +1,9 @@
 O.formatters.filetype["c"] = {
 O.formatters.filetype["c"] = {
   function()
   function()
     return {
     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,
   end,
 }
 }