Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
quintin
NVCode
提交
3ca11682
N
NVCode
项目概览
quintin
/
NVCode
上一次同步 9 个月
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NVCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3ca11682
编写于
11月 18, 2022
作者:
Q
quintin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
update telescope-gitmoji
上级
0f65817d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
345 addition
and
1 deletion
+345
-1
lua/configs/emojis.lua
lua/configs/emojis.lua
+339
-0
lua/configs/telescope.lua
lua/configs/telescope.lua
+5
-0
lua/core/plugins.lua
lua/core/plugins.lua
+1
-1
未找到文件。
lua/configs/emojis.lua
0 → 100644
浏览文件 @
3ca11682
local
emojis
=
{
{
key
=
"art"
,
value
=
"🎨"
,
description
=
"Improve structure / format of the code."
,
},
{
key
=
"zap"
,
value
=
"⚡️"
,
description
=
"Improve performance."
,
},
{
key
=
"fire"
,
value
=
"🔥"
,
description
=
"Remove code or files."
,
},
{
key
=
"fix"
,
value
=
"🐞"
,
description
=
"Fix a bug."
,
},
{
key
=
"patch"
,
value
=
"🚑️"
,
description
=
"Critical hotfix."
,
},
{
key
=
"feat"
,
value
=
"✨"
,
description
=
"Introduce new features."
,
},
{
key
=
"docs"
,
value
=
"📝"
,
description
=
"Add or update documentation."
,
},
{
key
=
"publish"
,
value
=
"🚀"
,
description
=
"Deploy stuff."
,
},
{
key
=
"lipstick"
,
value
=
"💄"
,
description
=
"Add or update the UI and style files."
,
},
{
key
=
"init"
,
value
=
"🎉"
,
description
=
"Begin a project."
,
},
{
key
=
"white_check_mark"
,
value
=
"✅"
,
description
=
"Add, update, or pass tests."
,
},
{
key
=
"lock"
,
value
=
"🔒️"
,
description
=
"Fix security issues."
,
},
{
key
=
"bookmark"
,
value
=
"🔖"
,
description
=
"Release / Version tags."
,
},
{
key
=
"rotating_light"
,
value
=
"🚨"
,
description
=
"Fix compiler / linter warnings."
,
},
{
key
=
"construction"
,
value
=
"🚧"
,
description
=
"Work in progress."
,
},
{
key
=
"green_heart"
,
value
=
"💚"
,
description
=
"Fix CI Build."
,
},
{
key
=
"arrow_down"
,
value
=
"⬇️"
,
description
=
"Downgrade dependencies."
,
},
{
key
=
"arrow_up"
,
value
=
"⬆️"
,
description
=
"Upgrade dependencies."
,
},
{
key
=
"tag"
,
value
=
"📌"
,
description
=
"Pin dependencies to specific versions."
,
},
{
key
=
"construction_worker"
,
value
=
"👷"
,
description
=
"Add or update CI build system."
,
},
{
key
=
"chart_with_upwar_ds_trend"
,
value
=
"📈"
,
description
=
"Add or update analytics or track code."
,
},
{
key
=
"recycle"
,
value
=
"♻️"
,
description
=
"Refactor code."
,
},
{
key
=
"heavy_plus_sign"
,
value
=
"➕"
,
description
=
"Add a dependency."
,
},
{
key
=
"heavy_minus_sign"
,
value
=
"➖"
,
description
=
"Remove a dependency."
,
},
{
key
=
"config"
,
value
=
"🔧"
,
description
=
"Add or update configuration files."
,
},
{
key
=
"hammer"
,
value
=
"🔨"
,
description
=
"Add or update development scripts."
,
},
{
key
=
"globe_with_meridi_ans"
,
value
=
"🌐"
,
description
=
"Internationalization and localization."
,
},
{
key
=
"pencil2"
,
value
=
"✏️"
,
description
=
"Fix typos."
,
},
{
key
=
"poop"
,
value
=
"💩"
,
description
=
"Write bad code that needs to be improved."
,
},
{
key
=
"rewind"
,
value
=
"⏪️"
,
description
=
"Revert changes."
,
},
{
key
=
"twisted_rightwards_arrows"
,
value
=
"🔀"
,
description
=
"Merge branches."
,
},
{
key
=
"file"
,
value
=
"📦️"
,
description
=
"Add or update compiled files or packages."
,
},
{
key
=
"alien"
,
value
=
"👽️"
,
description
=
"Update code due to external API changes."
,
},
{
key
=
"truck"
,
value
=
"🚚"
,
description
=
"Move or rename resources (e.g. = files, paths, routes)."
,
},
{
key
=
"page_facing_up"
,
value
=
"📄"
,
description
=
"Add or update license."
,
},
{
key
=
"boom"
,
value
=
"💥"
,
description
=
"Introduce breaking changes."
,
},
{
key
=
"bento"
,
value
=
"🍱"
,
description
=
"Add or update assets."
,
},
{
key
=
"wheelchair"
,
value
=
"♿️"
,
description
=
"Improve accessibility."
,
},
{
key
=
"bulb"
,
value
=
"💡"
,
description
=
"Add or update comments in source code."
,
},
{
key
=
"beers"
,
value
=
"🍻"
,
description
=
"Write code drunkenly."
,
},
{
key
=
"speech_balloon"
,
value
=
"💬"
,
description
=
"Add or update text and literals."
,
},
{
key
=
"card_file_box"
,
value
=
"🗃️"
,
description
=
"Perform database related changes."
,
},
{
key
=
"loud_sound"
,
value
=
"🔊"
,
description
=
"Add or update logs."
,
},
{
key
=
"mute"
,
value
=
"🔇"
,
description
=
"Remove logs."
,
},
{
key
=
"busts_in_silhouette"
,
value
=
"👥"
,
description
=
"Add or update contributor(s)."
,
},
{
key
=
"children_crossing"
,
value
=
"🚸"
,
description
=
"Improve user experience / usability."
,
},
{
key
=
"building_construction"
,
value
=
"🏗️"
,
description
=
"Make architectural changes."
,
},
{
key
=
"iphone"
,
value
=
"📱"
,
description
=
"Work on responsive design."
,
},
{
key
=
"clown_face"
,
value
=
"🤡"
,
description
=
"Mock things."
,
},
{
key
=
"egg"
,
value
=
"🥚"
,
description
=
"Add or update an easter egg."
,
},
{
key
=
"git"
,
value
=
"🙈"
,
description
=
"Add or update a .gitignore file."
,
},
{
key
=
"camera_flash"
,
value
=
"📸"
,
description
=
"Add or update snapshots."
,
},
{
key
=
"alembic"
,
value
=
"⚗️"
,
description
=
"Perform experiments."
,
},
{
key
=
"mag"
,
value
=
"🔍️"
,
description
=
"Improve SEO."
,
},
{
key
=
"label"
,
value
=
"🏷️"
,
description
=
"Add or update types."
,
},
{
key
=
"seedling"
,
value
=
"🌱"
,
description
=
"Add or update seed files."
,
},
{
key
=
"triangular_flag_on_post"
,
value
=
"🚩"
,
description
=
"Add, update, or remove feature flags."
,
},
{
key
=
"goal_net"
,
value
=
"🥅"
,
description
=
"Catch errors."
,
},
{
key
=
"dizzy"
,
value
=
"💫"
,
description
=
"Add or update animations and transitions."
,
},
{
key
=
"wastebasket"
,
value
=
"🗑️"
,
description
=
"Deprecate code that needs to be cleaned up."
,
},
{
key
=
"passport_control"
,
value
=
"🛂"
,
description
=
"Work on code related to authorization, roles and permissions."
,
},
{
key
=
"adhesive_bandage"
,
value
=
"🩹"
,
description
=
"Simple fix for a non-critical issue."
,
},
{
key
=
"monocle_face"
,
value
=
"🧐"
,
description
=
"Data exploration/inspection."
,
},
{
key
=
"coffin"
,
value
=
"⚰️"
,
description
=
"Remove dead code."
,
},
{
key
=
"test"
,
value
=
"🧪"
,
description
=
"Add a failing test."
,
},
{
key
=
"necktie"
,
value
=
"👔"
,
description
=
"Add or update business logic"
,
},
{
key
=
"stethoscope"
,
value
=
"🩺"
,
description
=
"Add or update healthcheck."
,
},
}
return
emojis
lua/configs/telescope.lua
浏览文件 @
3ca11682
...
...
@@ -3,6 +3,8 @@ if (not status) then
return
end
local
commit_type
=
require
(
"configs.emojis"
)
--local actions = require('telescope.actions')
-- Global remapping
------------------------------
...
...
@@ -63,6 +65,7 @@ require("telescope").setup {
disable_devicons
=
false
,
},
gitmoji
=
{
commit_type
=
commit_type
,
action
=
function
(
entry
)
-- entry = {
-- display = "🎨 Improve structure / format of the code.",
...
...
@@ -70,7 +73,9 @@ require("telescope").setup {
-- ordinal = "Improve structure / format of the code.",
-- value = "🎨"
-- }
vim
.
ui
.
input
({
prompt
=
"Enter commit msg: "
..
entry
.
value
..
" "
},
function
(
msg
)
print
(
entry
.
key
)
if
not
msg
then
return
end
...
...
lua/core/plugins.lua
浏览文件 @
3ca11682
...
...
@@ -54,7 +54,7 @@ return require('packer').startup({ function()
{
'nvim-telescope/telescope-frecency.nvim'
,
requires
=
{
'tami5/sqlite.lua'
}
},
{
'nvim-telescope/telescope-fzf-native.nvim'
,
run
=
'make'
},
{
'nvim-telescope/telescope-symbols.nvim'
},
{
'
olacin
/telescope-gitmoji.nvim'
},
{
'
quintin-lee
/telescope-gitmoji.nvim'
},
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录