diff --git a/lua/config/options.lua b/lua/config/options.lua index 87b9351..cfc3c08 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -18,7 +18,7 @@ vim.wo.relativenumber = true -- 高亮所在行 vim.wo.cursorline = true -- 右侧参考线,超过表示代码太长了,考虑换行 -vim.wo.colorcolumn = "110" +-- vim.wo.colorcolumn = "110" -- 缩进2个空格等于一个Tab vim.o.tabstop = 4 vim.bo.tabstop = 4 diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua new file mode 100644 index 0000000..2aed698 --- /dev/null +++ b/lua/plugins/blink.lua @@ -0,0 +1,23 @@ +return { + { + "saghen/blink.cmp", + opts = { + keymap = { + preset = "enter", + [""] = { "fallback" }, + [""] = { + function(cmp) + if cmp.snippet_active() then + return cmp.accept() + else + return cmp.select_and_accept() + end + end, + "snippet_forward", + "fallback", + }, + [""] = { "snippet_backward", "fallback" }, + }, + }, + }, +}