summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-09-01 21:33:55 +0300
committerKyren223 <contact@kyren.codes>2025-09-01 21:33:55 +0300
commitcf153aa6b06a7e8fe248631aa0a23fcdf4c75a65 (patch)
tree93c63268ed8f84d192f42916ed6d873dc894ee33 /.config/nvim/lua/plugins
parent20f6415230c85e4cb115b3add7b5add76cac80ef (diff)
Add Krypton language
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r--.config/nvim/lua/plugins/krypton.lua28
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,
+}