Add Krypton language
This commit is contained in:
28
.config/nvim/lua/plugins/krypton.lua
Normal file
28
.config/nvim/lua/plugins/krypton.lua
Normal file
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user