使用tab不全,取消长度线。
This commit is contained in:
@@ -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
23
lua/plugins/blink.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user