Halp: Prettier not working on lua files

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • vim-prettier

    A Vim plugin for Prettier

  • Prettier (https://github.com/prettier/vim-prettier) seems to work fine on html and javascript files. But when I run :PrettierCli on a lua file it says No parser and no file path given, couldn't infer a parser. I have treesitter installed. I used treesitter's ":TSInstall: lua" and :checkhealth shows a lua parser installed. Not sure what I'm missing or what to do to troubleshoot from here,

  • plugin-lua

    Prettier Lua Plugin (WIP)

  • this might be related https://github.com/prettier/plugin-lua

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • plugin-php

    Prettier PHP Plugin

  • You'd need a prettier plugin for Lua, similar to the ones that exist for php (https://github.com/prettier/plugin-php) and ruby (https://github.com/prettier/plugin-ruby). I'm pretty sure that there isn't one for Lua, but you can try googling it.

  • plugin-ruby

    Prettier Ruby Plugin

  • You'd need a prettier plugin for Lua, similar to the ones that exist for php (https://github.com/prettier/plugin-php) and ruby (https://github.com/prettier/plugin-ruby). I'm pretty sure that there isn't one for Lua, but you can try googling it.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts