updated rust support
This commit is contained in:
@@ -1,30 +1,31 @@
|
||||
local status, starter = pcall(require, "mini.starter")
|
||||
if not status then
|
||||
return
|
||||
return
|
||||
end
|
||||
|
||||
starter.setup({
|
||||
content_hooks = {
|
||||
starter.gen_hook.adding_bullet(""),
|
||||
starter.gen_hook.aligning("center", "center"),
|
||||
},
|
||||
evaluate_single = true,
|
||||
footer = os.date(),
|
||||
header = table.concat({
|
||||
content_hooks = {
|
||||
starter.gen_hook.adding_bullet(""),
|
||||
starter.gen_hook.aligning("center", "center"),
|
||||
},
|
||||
evaluate_single = true,
|
||||
footer = os.date(),
|
||||
header = table.concat({
|
||||
[[██████╗ ███████╗███╗ ██╗██╗ ██╗██╗███╗ ███╗]],
|
||||
[[██╔══██╗██╔════╝████╗ ██║██║ ██║██║████╗ ████║]],
|
||||
[[██████╔╝█████╗ ██╔██╗ ██║██║ ██║██║██╔████╔██║]],
|
||||
[[██╔══██╗██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
|
||||
[[██████╔╝███████╗██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║]],
|
||||
[[╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]],
|
||||
[[─────────────────────────────────────────────────]],
|
||||
}, "\n"),
|
||||
query_updaters = [[abcdefghilmoqrstuvwxyz0123456789_-,.ABCDEFGHIJKLMOQRSTUVWXYZ]],
|
||||
items = {
|
||||
{ action = "PackerSync", name = "U: Update Plugins", section = "Plugins" },
|
||||
{ action = "enew", name = "E: New Buffer", section = "Builtin actions" },
|
||||
{ action = "qall!", name = "Q: Quit Neovim", section = "Builtin actions" },
|
||||
},
|
||||
[[─────────────────────────────────────────────────]],
|
||||
}, "\n"),
|
||||
query_updaters = [[abcdefghilmoqrstuvwxyz0123456789_-,.ABCDEFGHIJKLMOQRSTUVWXYZ]],
|
||||
items = {
|
||||
{ action = "PackerSync", name = "U: Update Plugins", section = "Plugins" },
|
||||
{ action = "PackerCompile", name = "R: Recompile Packer", section = "Plugins" },
|
||||
{ action = "enew", name = "E: New Buffer", section = "Builtin actions" },
|
||||
{ action = "qall!", name = "Q: Quit Neovim", section = "Builtin actions" },
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[
|
||||
|
||||
@@ -1,36 +1,37 @@
|
||||
local cmp = require'cmp'
|
||||
local cmp = require 'cmp'
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
vim.fn["vsnip#anonymous"](args.body)
|
||||
end,
|
||||
},
|
||||
mapping = {
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||
["<C-d>"] = cmp.mapping.scroll_docs(-4),
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
["<C-e>"] = cmp.mapping.close(),
|
||||
["<CR>"] = cmp.mapping.confirm({
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
}),
|
||||
["<Tab>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "s" }),
|
||||
["<S-Tab>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "s" }),
|
||||
},
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "vsnip" },
|
||||
{ name = "path" },
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
vim.fn["vsnip#anonymous"](args.body)
|
||||
end,
|
||||
},
|
||||
mapping = {
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||
["<C-d>"] = cmp.mapping.scroll_docs(-4),
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
["<C-e>"] = cmp.mapping.close(),
|
||||
["<CR>"] = cmp.mapping.confirm({
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
}),
|
||||
["<Tab>"] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "s" }),
|
||||
["<S-Tab>"] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "s" }),
|
||||
},
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "vsnip" },
|
||||
{ name = "path" },
|
||||
{ name = "buffer" },
|
||||
},
|
||||
})
|
||||
|
||||
-- Set configuration for specific filetype.
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
|
||||
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
@@ -51,4 +52,3 @@ cmp.setup.cmdline(':', {
|
||||
{ name = 'cmdline' }
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user