diff --git a/.config/nvim/lua/plugins/krypton.lua b/.config/nvim/lua/plugins/krypton.lua new file mode 100644 index 0000000..b49c00f --- /dev/null +++ b/.config/nvim/lua/plugins/krypton.lua @@ -0,0 +1,28 @@ +return { + dir = '~/projects/krypton', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + lazy = false, + init = function() end, + config = function() + vim.filetype.add({ + extension = { + kr = 'krypton', + }, + }) + require('nvim-web-devicons').set_icon({ + kr = { + icon = '', --  + color = '#07f7f7', + -- color = '#2c638a', + -- color = '#37b1ce', + name = 'Krypton', + }, + }) + + local icon, color = require('nvim-web-devicons').get_icon('main.kr', 'kr', { default = true }) + -- vim.notify('ICON: ' .. icon) + -- vim.notify('COLOR: ' .. color) + assert(icon == '') + assert(color == 'DevIconKrypton') + end, +}