您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

25 行
581 B

  1. -- ec = require("editorconfig_core")
  2. local function GetProperties(fullpath)
  3. local file = io.popen("echo fullpath: " .. fullpath, "r")
  4. local output = file:read("*all")
  5. file:close()
  6. return output
  7. end
  8. function onViewOpen(view)
  9. -- Is this portable? (work on windows?)
  10. local pwd = os.getenv("PWD")
  11. local filename = view.Buf.Path
  12. -- prop, names = ec.parse(filepath)
  13. local fullpath = JoinPaths(pwd, filename)
  14. local out = GetProperties(fullpath)
  15. messenger:Message("view.Buf.Path: " .. out)
  16. end
  17. function onSave(view)
  18. messenger:Message("Saved!")
  19. end