Closed hasecilu closed 2 months ago
Rebased, I think now only need to update local filetypes = {}
Looking good...
Some of the darks ones are... too dark to see.
XTerm.vt100.reverseVideo: true
XTerm.termName: xterm-256color
XTerm.vt100.reverseVideo: true
XTerm.termName: xterm-direct
I encountered the same with linux and fixed them here: #408
I just poked around the website until I found another theme colour that was more dark friendly.
Fails at startup when using xterm defaults i.e. nothing in xrdb. Master is OK.
xterm -rv
is OK.
Error detected while processing VimEnter Autocommands for "*":
E5108: Error executing lua [string ":lua"]:1: VimEnter Autocommands for "*"..OptionSet Autocommands for "background": Vim(append):Error executing lua callback: vim/shared.lua:0: after the second argument: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function 'tbl_extend'
...ite/pack/packer/start/hasecilu/lua/nvim-web-devicons.lua:39: in function 'refresh_icons'
...ite/pack/packer/start/hasecilu/lua/nvim-web-devicons.lua:567: in function <...ite/pack/packer/start/hasecilu/lua/nvim-web-devicons.lua:566>
[C]: in function '__newindex'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function '__newindex'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
I was about to update local filetypes = {}
but I noticed that a lot of extensions are missing and even some don't appear in the table as "dosbatch", what's the diffenrence for filetype and file extension?
what's the diffenrence for filetype and file extension?
It's just a mapping of vim filetypes to something - extension, name, os
It's not well maintained.
- [x] fix the strange xterm error feat: add more icon asociations, mainly from font-logos #433 (comment)
This is working now. Everything is following existing patterns so not worth digging deeper...
More changes, let me know if something is missing
There are some vim filetype mappings we can add e.g. gtkrc
Can you please look through /usr/share/nvim/runtime/syntax
and find any others to map?
Sure, maybe an instruction to redirect to /usr/share/nvim/runtime/syntax
would be useful
Sure, maybe an instruction to redirect to
/usr/share/nvim/runtime/syntax
would be useful
Sorry, I mean add them to
-- Map of filetypes -> icon names
local filetypes = {
["avif"] = "avif",
What I meant it was to put an instructions for contributors that doesn't know of the existance of those files, like me :sweat_smile: I used this to find coincidences:
lua_file="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons/icons-default.lua"
ft="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons.lua"
while IFS= read -r line; do
if [[ $line =~ \[\"(.+)\"\] ]]; then
key="${BASH_REMATCH[1]}"
# Search for the key in the main file
line=$(grep -F "\"$key\"" "$ft")
if [ -n "$line" ]; then
continue
else
# echo "$key" | lolcat
[ -f "/usr/share/nvim/runtime/syntax/$key.vim" ] && echo "$key.vim"
fi
fi
done <"$lua_file"
What I meant it was to put an instructions for contributors that doesn't know of the existance of those files, like me 😅 I used this to find coincidences:
lua_file="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons/icons-default.lua" ft="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons.lua" while IFS= read -r line; do if [[ $line =~ \[\"(.+)\"\] ]]; then key="${BASH_REMATCH[1]}" # Search for the key in the main file line=$(grep -F "\"$key\"" "$ft") if [ -n "$line" ]; then continue else # echo "$key" | lolcat [ -f "/usr/share/nvim/runtime/syntax/$key.vim" ] && echo "$key.vim" fi fi done <"$lua_file"
Oh nice. Maybe drop it in scripts. There's an existing one but it doesn't seem to be very useful.
Still WIP I'm looking at more icons, I want to hear some ideas.
Also I'm waiting for new Nerd Fonts release that includes some new icons.3.2.0 ver. released, I included the KDE, posmarketOS & Qt logos that are new.https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.2.0
For example in:
Would be possible to create groups, for example create a single icon entry and use it various times for different file extensions to simplify the code? For example the open PR with music extensions, maybe a group of video, compressed files. In my case in this PR check the FreeCAD and KiCad extensions.
Something like: