Skip to content

pigoz/nvim-html-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim HTML, CSS Support

🚧 plugin is in dev mod 🚧

CSS Intellisense for HTML

About

Installation

return require("lazy").setup({
    {
        "hrsh7th/nvim-cmp",
        opts = {
            sources = {
                -- other sources
                {
                    name = "html-css",
                    option = {
                        -- your configuration here
                    },
                },
            },
        },
    },
    { "Jezda1337/html-css",
        init = function()
            require("html-css"):setup()
        end
    }
})

Configuration

option = {
    max_count = {}, -- not ready yet
    file_types = {
        "html" -- default
        ...
    },
    style_sheets = {
        -- example of remote styles
        "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
        "https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css",

        -- example of local styles that can be found inside root folder
        "./style.css",
        "index.css",
    }
}

Pretty Menu Items

local source_mapping = {
    ...
}

require("cmp").setup({
    sources = {
        {
            name = "html-css"
        },
    },
    formatting = {
        format = function(entry, vim_item)
            if entry.source.name == "html-css" do
                source_mapping["html-css"] = entry.completion_item.menu
            end
        end
    }

})

About

CSS Intellisense for HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 99.5%
  • CSS 0.5%