purescript-contrib / purescript-vim

Syntax highlighting and indentation for PureScript
BSD 2-Clause "Simplified" License
154 stars 35 forks source link

Discuss about InitPurescript #80

Open eiro opened 3 years ago

eiro commented 3 years ago

Trying to understand what InitPurescript tries to do is hard and there is no comment on it so i revamped, removed what seems useless, commented, made it optional (because i * don't want a plugin to touch my path ... it feels very intrusive to me) and documented it.

there is no mailing list to discuss about it so i left the changelog untouch for the moment and did not regen the doc.

toastal commented 1 year ago

@eiro Hey. I'm maintaining this right now and I've been going through this from newest to oldest.

I don't fully understand your changes--or what's going on in the entire code base. I did notice that this plugin is trying to set up the root and nothing is pointing to more recent tooling. That said, I've dealt with code bases where there were nested spago.dhall files and I get incorrectly rooted. Maybe it's better if it's fully stripped and suggest a different tool like vim-rooter for that task?

Currently, I've given up on tools trying to be clever and use vim-rooter with

vim.g.rooter_patterns = {
    "flake.nix",
    "shell.nix",
    ".git",
    ".hg",
    ".pijul",
    "_darcs",
    "Makefile",
}

mailing list

Created yesterday if preferable: https://lists.sr.ht/~toastal/purescript-vim