You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 line
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