Skip to content
ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

css-vars.nvim

css-vars.nvim - autocompletion of CSS variables

๐Ÿ”’ Requirements

  • ripgrep (needs to be installed on your machine)

๐Ÿ“ฆ Installation

Install this plugin as a dependency to hrsh7th/nvim-cmp.

{
  "hrsh7th/nvim-cmp",
  dependencies = {
    -- other dependencies...
    {
      "jdrupal-dev/css-vars.nvim",
      opts = {},
    },
  },
  config = function()
     cmp.setup({
      -- Sources for autocompletion.
      sources = cmp.config.sources({
        { name = "nvim_lsp" },
        { name = "css_vars" },
        -- other sources...
      }),
    })
    -- more configuration...
  end
}

๐Ÿš€ Features

This plugin scans your project for css vars using ripgrep and sets up the css_vars completion source upon opening neovim.

If you add new CSS variables, you need to restart neovim for them to show in nvim-cmp.

About

Neovim plugin for css variable autocompletion

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages