[neovim] Sets up surround, emoji auto-complete, indentation
This commit is contained in:
@@ -1,6 +1,29 @@
|
||||
return {
|
||||
"saghen/blink.cmp",
|
||||
dependencies = {
|
||||
"moyiz/blink-emoji.nvim",
|
||||
},
|
||||
opts = {
|
||||
sources = {
|
||||
default = { "lsp", "buffer", "snippets", "path", "emoji" },
|
||||
providers = {
|
||||
-- https://github.com/moyiz/blink-emoji.nvim
|
||||
emoji = {
|
||||
module = "blink-emoji",
|
||||
name = "Emoji",
|
||||
score_offset = 15, -- Tune by preference
|
||||
opts = { insert = true }, -- Insert emoji (default) or complete its name
|
||||
should_show_items = function()
|
||||
return vim.tbl_contains(
|
||||
-- Enable emoji completion only for git commits and markdown.
|
||||
-- By default, enabled for all file-types.
|
||||
{ "gitcommit", "markdown" },
|
||||
vim.o.filetype
|
||||
)
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
keymap = {
|
||||
preset = "default",
|
||||
["<C-space>"] = {
|
||||
|
||||
Reference in New Issue
Block a user