Nanotechnology Promises Much

    coc-blade-linter

    0.2.2 • Public • Published

    [Archived] coc-blade-linter

    WARNING

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


    Laravel Blade Linter extension for coc.nvim

    Performs syntax-checks of your Blade templates. Just that.

    coc-blade-linter-demo

    Features

    Install

    CocInstall:

    :CocInstall coc-blade-linter

    vim-plug:

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

    Detects: "laravel-blade-linter" tool

    Detects the laravel-blade-linter. They are prioritized in order from the top.

    1. bladeLinter.toolPath
    2. vendor/bdelespierre/laravel-blade-linter package. (composer require --dev bdelespierre/laravel-blade-linter)
    3. laravel-blade-linter retrieved by the download feature. (:CocCommand bladeLinter.download)
      • Mac/Linux: ~/.config/coc/extensions/coc-blade-linter-data/laravel-blade-linter
      • Windows: ~/AppData/Local/coc/extensions/coc-blade-linter-data/laravel-blade-linter

    Filetype

    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).

    Configuration options

    • bladeLinter.enable: Enable coc-blade-linter extension, default: true
    • bladeLinter.toolPath: The path to the laravel-blade-linter phar file (Absolute path), default: ""
    • bladeLinter.lintOnOpen: Lint blade file on opening, default: true
    • bladeLinter.lintOnSave: Lint blade file on save, default: true

    Commands

    • bladeLinter.download: Download laravel-blade-linter

    Related coc.nvim extension

    Thanks

    License

    MIT


    This extension is built with create-coc-extension

    Install

    npm i coc-blade-linter

    DownloadsWeekly Downloads

    8

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    80.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • yaegassy