🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

coc-blade-formatter

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coc-blade-formatter

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

latest
Source
npmnpm
Version
0.5.3
Version published
Weekly downloads
41
-8.89%
Maintainers
1
Weekly downloads
 
Created
Source

[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

coc-blade-formatter-demo

Install

CocInstall:

:CocInstall coc-blade-formatter

vim-plug:

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

Note

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] (https://git-scm.com/docs/gitignore#_pattern_format)

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

Thanks

License

MIT

This extension is built with create-coc-extension

Keywords

php

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts