prettierd
zen-mode.nvim
prettierd | zen-mode.nvim | |
---|---|---|
5 | 24 | |
720 | 1,501 | |
- | - | |
9.0 | 5.2 | |
7 days ago | 3 months ago | |
TypeScript | Lua | |
ISC License | Apache License 2.0 |
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.
prettierd
-
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`).
zen-mode.nvim
-
IA Writer in Paper
I use this sometimes and it's pretty nice: https://github.com/folke/zen-mode.nvim
- Ensō: write now, edit later
-
UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen.
This is super cool, I've been using https://github.com/folke/zen-mode.nvim for some time but what caught my attention were the side buffers for notes. I took a look at your configuration options and was wondering if you had thought about configuring the width by a fraction of the total view width?
I went from https://github.com/junegunn/goyo.vim to https://github.com/folke/zen-mode.nvim and now this
-
How to check if a plugin is active?
You could define yourself a variable whenever :ZenMode is toggled and check for said variable (or have a look here if anything is returned by the function is_open()).
-
Got a fantastic tip to use gaffer tape last time I posted. I also recapped the keyboard. Behold, once again, the Hemingpunk.
Exactly right! I use Arch Linux with i3. My terminal emulators are alacritty and cool-retro-term, depending on the mood. For writing I use neovim with the zen-mode plugin.
- Is there a way to center the buffer content?
-
Is it possible to open nvim-tree on startup to look like a dashboard?
However, I want to style this a bit more maybe have a better-looking tree on startup. One of the solutions I could think of is to open the nvim-tree in zen-mode. This ends up looking like this.
-
My Neovim setup for React, TypeScript, Tailwind CSS, etc
folke/zen-mode.nvim - Distraction-free mode
- What are some of your favorite eye candy plugins?
What are some alternatives?
prettier-plugin-sort-imports - A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
goyo.vim - :tulip: Distraction-free writing in Vim
dotfiles
true-zen.nvim - 🦝 Clean and elegant distraction-free writing for NeoVim
prettier_d_slim
focus.nvim - Auto-Focusing and Auto-Resizing Splits/Windows for Neovim written in Lua. A full suite of window management enhancements. Vim splits on steroids!
dotfiles - All of my dotfiles are here.
ltex-ls - LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
CNvim - A lightweight Neovim config for web development
ataraxis.lua - A simple zen mode for improving code readability on neovim
gts - ☂️ TypeScript style guide, formatter, and linter.
Catppuccino.nvim - 🍨 Catppuccin theme for NeoVim [Moved to: https://github.com/catppuccin/nvim]