Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue with file extension matching #483

Open
@sethen

Description

@sethen

Looks like nvim-web-devicons gets confused with you use more than one period for the extension in a file name. I would expect it to know that it should apply the same icon to.ts files as it does fortest.ts files, but it doesn't. You have to addtest.ts to the config or it will not apply. To make it work I have to do something like this:

return {'nvim-tree/nvim-web-devicons',dependencies= {'catppuccin/nvim',   },config=function()localicons=require('nvim-web-devicons')localpalette=require('catppuccin.palettes').get_palette('mocha')icons.setup({override= {ts= {color=palette.blue,icon='',name='Ts',            },            ['test.ts']= {color=palette.blue,icon='',name='Test.ts',            },         }      })icons.set_default_icon('')end,}

Here's what it looks like if I would take thetest.ts configuration out:
Screenshot from 2024-07-21 00-07-02

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp