Skip to content

garyhurtz/cmp_bulma.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bulma completion source for nvim-cmp

Bulma class-name completion source for nvim-cmp.

Entries updated per Bulma v0.9.4.

Installation and Setup

Using Packer:

use({
  'garyhurtz/cmp_bulma.nvim',
  config = function()
    require('cmp_bulma'):setup()
  end
})

then

require("cmp").setup({
  sources = {
        -- other sources...
        {
            name = "bulma",
            option= {
                -- insert configuration here
            }
        }
    )
})

With lazy.nvim setup is something like:

require("lazy").setup({
    {
        "hrsh7th/nvim-cmp",
        opts = {
            sources = {
                ...
                {
                    name = "bulma",
                    option = {
                        -- insert configuration here
                    },
                },
            },
        },
    },
    {
        'garyhurtz/cmp_bulma.nvim',
        init = {
            require('cmp_bulma'):setup()
        }
    }
})

Configuration

By default, this source is available for the following file types:

  • html, jinja.html

  • css, sass, scss, less

  • javascript, typescript

Additional file types can be added using option.filetypes:

option = {
    filetypes = {
        "jinja.html",
        "markdown",
        ...
    },
}

About

Bulma CSS completion source for nvim-cmp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages