使用tab不全,取消长度线。

This commit is contained in:
2025-11-20 13:21:22 +08:00
parent 921909c962
commit ae7aae5daa
2 changed files with 24 additions and 1 deletions

View File

@@ -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

23
lua/plugins/blink.lua Normal file
View File

@@ -0,0 +1,23 @@
return {
{
"saghen/blink.cmp",
opts = {
keymap = {
preset = "enter",
["<CR>"] = { "fallback" },
["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
"snippet_forward",
"fallback",
},
["<S-Tab>"] = { "snippet_backward", "fallback" },
},
},
},
}