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.
 
 
 
 
 
 

15 lines
371 B

  1. -- ec = require("editorconfig_core")
  2. function onViewOpen(view)
  3. -- Is this portable? (work on windows?)
  4. local pwd = os.getenv("PWD")
  5. local filename = view.Buf.Path
  6. -- prop, names = ec.parse(filepath)
  7. local fullpath = JoinPaths(pwd, filename)
  8. messenger:Message("view.Buf.Path: " .. fullpath)
  9. end
  10. function onSave(view)
  11. messenger:Message("Saved!")
  12. end