diff options
| author | Kyren223 <contact@kyren.codes> | 2025-09-01 21:33:55 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2025-09-01 21:33:55 +0300 |
| commit | cf153aa6b06a7e8fe248631aa0a23fcdf4c75a65 (patch) | |
| tree | 93c63268ed8f84d192f42916ed6d873dc894ee33 | |
| parent | 20f6415230c85e4cb115b3add7b5add76cac80ef (diff) | |
Add Krypton language
| -rw-r--r-- | .config/nvim/lua/plugins/krypton.lua | 28 |
1 files changed, 28 insertions, 0 deletions
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, +} |
