-2

neovim plugin: https://github.com/Jezda1337/nvim-html-css

idk lua but I need this plugin installed for bootstrap classes. I have neovim nvchad lazy.nvim setup. copy pasting didn't worked so I tried to cut out maybe harmful parts but it still didn't worked pls visit repository and help :(

wrong code below:


  require("lazy")
    .setup {
      {
        "hrsh7th/nvim-cmp",
        opts = {
          sources = {
            -- other sources
            {
              name = "html-css",
              option = {
                enable_on = {
                  "html",
                }, -- set the file types you want the plugin to work on
                file_extensions = { "css", "sass", "less" }, -- set the local filetypes from which you want to derive classes
                style_sheets = {
                  -- example of remote styles, only css no js for now
                  "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css",
                },
              },
            },
          },
        },
      },
      {
        "Jezda1337/nvim-html-css",
        dependencies = {
          "nvim-treesitter/nvim-treesitter",
          "nvim-lua/plenary.nvim",
        },
        config = function()
          require("html-css"):setup()
        end,
      },
    },

svlasov
  • 9,923
  • 2
  • 38
  • 39
  • There is a [vi and vim stackexchange](https://vi.stackexhange.com), I suspect you might have a better chance to get an answer over there. – Uberhumus Aug 14 '23 at 17:54

0 Answers0