iamcco / coc-tailwindcss

tailwindcss class name completion for (neo)vim
MIT License
333 stars 29 forks source link

Doesn't show classes in laravel / docker #54

Closed GiancarloAparicio closed 3 years ago

GiancarloAparicio commented 3 years ago

Description When I write to a blade or html file, tailwind hints are not displayed

To Reproduce Use new instance of laravel 8 with docker

I don't have anything installed on my computer, I do everything through docker (maybe that will have something to do with it), besides that my tailwind.config.json file is not in the root of the project (it is hidden internally between several folders)

My file to load the plugins in NeoVim is:

call plug#begin('~/.config/nvim/autoload/plugged')
    ...
    Plug 'neoclide/coc.nvim', {'branch': 'release'}     
    Plug 'wellle/tmux-complete.vim'     
    Plug 'Raimondi/delimitMate'          
    Plug 'SirVer/ultisnips'                  
    Plug 'theniceboy/vim-snippets'
    Plug 'honza/vim-snippets'         
    ...
    Plug 'neoclide/jsonc.vim'         
    Plug 'othree/html5.vim'                
    Plug 'alvan/vim-closetag'              
    Plug 'pangloss/vim-javascript'          
    Plug 'leafgarland/typescript-vim'       
    Plug 'octol/vim-cpp-enhanced-highlight'
    Plug 'mxw/vim-jsx'          
    Plug 'peitalin/vim-jsx-typescript'    
    Plug 'maxmellon/vim-jsx-pretty'     
    Plug 'arnaud-lb/vim-php-namespace'    
    Plug 'noahfrederick/vim-laravel'       
    Plug 'jwalton512/vim-blade'           
    Plug 'iamcco/coc-tailwindcss',  {'do': 'yarn install --frozen-lockfile && yarn run build'}
   ...
    Plug 'ludovicchabant/vim-gutentags'                            
    Plug 'kristijanhusak/vim-js-file-import', {'do': 'npm install'}
    Plug 'sahibalejandro/vim-php'                              

call plug#end()

Al listar los plugins con ':CocList extensions', aparece instalado correctamente imagen

My COC configuration is:

{
    "tailwindCSS.headwind.removeDuplicates": true,
    "tailwindCSS.headwind.runOnSave": true,
    "tailwindCSS.trace.server": "verbose",
    "tailwindCSS.emmetCompletions": "on",
    "tailwindCSS.cssLanguages": [
        "css",
        "less",
        "postcss",
        "sass",
        "scss",
        "stylus",
        "vue"
    ],
    "tailwindCSS.jsLanguages": [
        "javascript",
        "javascriptreact",
        "reason",
        "typescriptreact"
    ],
    "tailwindCSS.htmlLanguages": [
        "blade",
        "edge",
        "eelixir",
        "ejs",
        "elixir",
        "elm",
        "erb",
        "eruby",
        "haml",
        "handlebars",
        "htmldjango",
        "html",
        "jade",
        "leaf",
        "markdown",
        "php",
        "razor",
        "slim",
        "svelte",
        "twig",
        "vue"
    ],
}

When I run the command: 'workspace.showOutput' Returns this: imagen

Expected behavior Class autocompletion with text-sm, text-xs, etc. [LS] As shown in the documentation

Screenshots imagen

Desktop:

Maybe I was wrong in the settings, any suggestions?

GiancarloAparicio commented 3 years ago

I already solved it 😅😅😅, apparently they were problems with node, so I removed it and installed version 14. I hope someone else can use this