0.5.3 • Published 3 years ago

coc-blade-formatter v0.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Archived coc-blade-formatter

WARNING

This project is no longer maintained. Please switch to its successor, coc-blade.


blade-formatter (Laravel Blade formatter) extension for coc.nvim

Install

CocInstall:

:CocInstall coc-blade-formatter

vim-plug:

Plug 'yaegassy/coc-blade-formatter', {'do': 'yarn install --frozen-lockfile'}

Note

Filetype related

The "filetype" must be blade for this extension to work.

Set up autocmd BufNewFile,BufRead *.blade.php set filetype=blade in .vimrc/init.vim, Or install "blade" related plugin (e.g. jwalton512/vim-blade or sheerun/vim-polyglot).

Usage

  • :call CocAction('format')
  • :CocCommand bladeFormatter.run

Configuration options

  • bladeFormatter.enable: Whether it enables format, default: true
  • bladeFormatter.path: Absolute path to blade-formatter. If there is no setting, the built-in blade-formatter will be used, default: ""
  • bladeFormatter.format.indentSize: Indent size, default: 4
  • bladeFormatter.format.wrapLineLength: The length of line wrap size, default: 120
  • bladeFormatter.format.wrapAttributes: The way to wrap attributes, valid options ["auto", "force", "force-aligned", "force-expand-multiline", "aligned-multiple", "preserve", "preserve-aligned"], default: "auto"

Commands

  • bladeFormatter.run: Run bladeFormatter.run

Ignoring Files: .bladeignore

To exclude files from formatting, create .bladeignore file in the root of your project .bladeignore uses gitignore syntax

# Ignore email templates
resources/views/email/**

Thanks

License

MIT


This extension is built with create-coc-extension

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.8

3 years ago

0.0.1

3 years ago