From 407dc3dbfcdfd144726fabf09895eefcb1040a97 Mon Sep 17 00:00:00 2001 From: jimafisk Date: Thu, 9 May 2024 09:50:52 -0400 Subject: [PATCH] Add Svelte support (#415). --- plugin/webdevicons.vim | 1 + test/filetype.vim | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 596ec68..8833b2e 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -286,6 +286,7 @@ function! s:setDictionaries() \ 'r' : 'ﳒ', \ 'rproj' : '鉶', \ 'sol' : 'ﲹ', + \ 'svelte' : '', \ 'pem' : '' \} diff --git a/test/filetype.vim b/test/filetype.vim index 3669ad9..78b1bda 100644 --- a/test/filetype.vim +++ b/test/filetype.vim @@ -259,6 +259,10 @@ function! s:suite.OneArgument_GetSolidityIcon() call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.sol'), 'ﲹ') endfunction +function! s:suite.OneArgument_GetSvelteIcon() + call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.svelte'), '') +endfunction + function! s:suite.OneArgument_GetGoIcon() call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.go'), '') endfunction