prettier.nvim
Prettier plugin for Neovim's built-in LSP client. (by MunifTanjim)
prettierd
prettier, as a daemon, for improved formatting speed. (by fsouza)
prettier.nvim | prettierd | |
---|---|---|
3 | 5 | |
263 | 704 | |
- | - | |
2.5 | 9.0 | |
10 months ago | 7 days ago | |
Lua | TypeScript | |
MIT License | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prettier.nvim
Posts with mentions or reviews of prettier.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-19.
-
How to Transform Vim to a Complete IDE?
There are numerous plugins available. For instance, this is a Copilot implementation: https://github.com/zbirenbaum/copilot-cmp. Or prettier: https://github.com/MunifTanjim/prettier.nvim. You might need just edit your configuration file.
-
How to set up prettier?
i tried using null-ls but it does not work, this is my configuration that i copied from prettier.nvim:
-
My Neovim setup for React, TypeScript, Tailwind CSS, etc
I heavily rely on Prettier to format TypeScript/JavaScript/CSS files. Use jose-elias-alvarez/null-ls.nvim and MunifTanjim/prettier.nvim to accomplish that.
prettierd
Posts with mentions or reviews of prettierd.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
My Neovim setup for React, TypeScript, Tailwind CSS, etc
First, you need prettierd:
-
This j/k mappings should be default (for wrap) at least in Plugins like vim-pencil
Besides remapping keys, auto-format with prettier (null-ls, ALE, etc) will wrap your code on line break. This might not be desirable for txt files, but it's transparent and fully supported by markdown. It'll also fix things like aligning your markdown tables. There's also prettierd and prettier_d_slim to keep it running as a daemon in the background, which makes the buffer reformatting really snappy.
-
I'm searching for nvim configs of react/js developers
For react you will need the one for typescript and the eslint lsp is also used in the config to auto fix errors on save. Also this relies on prettierd to be installed globally: https://github.com/fsouza/prettierd
- Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer to desk for Neovim to become responsive again.
-
Speed-up your Prettier formatting using prettierd
But today I discovered this tool: https://github.com/fsouza/prettierd. This completely solves the issue: the slowness of prettier is due to the overhead of launching the program. This package leaves prettier running as a daemon, which removes the launch overhead (kind of similar to the already famous `eslint_d`).
What are some alternatives?
When comparing prettier.nvim and prettierd you can also consider the following projects:
nvim-lua-guide - A guide to using Lua in Neovim
prettier-plugin-sort-imports - A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
nvim-lspconfig - Quickstart configs for Nvim LSP
dotfiles
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
prettier_d_slim
nvim-colorizer.lua - The fastest Neovim colorizer.
dotfiles - All of my dotfiles are here.
markdown-preview.nvim - markdown preview plugin for (neo)vim
CNvim - A lightweight Neovim config for web development
nvim-web-devicons - lua `fork` of vim-web-devicons for neovim
gts - ☂️ TypeScript style guide, formatter, and linter.
prettier.nvim vs nvim-lua-guide
prettierd vs prettier-plugin-sort-imports
prettier.nvim vs nvim-lspconfig
prettierd vs dotfiles
prettier.nvim vs nvim-treesitter
prettierd vs prettier_d_slim
prettier.nvim vs nvim-colorizer.lua
prettierd vs dotfiles
prettier.nvim vs markdown-preview.nvim
prettierd vs CNvim
prettier.nvim vs nvim-web-devicons
prettierd vs gts