mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(neovim): Blick.nvim fixes
- Fix: issues post plugin update, remove 'luasnip' dependency - [Ctrl+enter] to accept suggestion - Disable redundant auto-brackets - Disable ghost texts suggestion
This commit is contained in:
@@ -36,8 +36,9 @@ return {
|
|||||||
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
|
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
|
||||||
-- See the full "keymap" documentation for information on defining your own keymap.
|
-- See the full "keymap" documentation for information on defining your own keymap.
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = "super-tab",
|
preset = "none",
|
||||||
["<C-y>"] = { "select_and_accept" },
|
["<C-CR>"] = { "select_and_accept" }, -- Ctrl + Enter to accept
|
||||||
|
["<C-x>"] = { "hide", "fallback" }, -- Ctrl + x to reject
|
||||||
|
|
||||||
["<Tab>"] = { "snippet_forward", "fallback" },
|
["<Tab>"] = { "snippet_forward", "fallback" },
|
||||||
["<S-Tab>"] = { "snippet_backward", "fallback" },
|
["<S-Tab>"] = { "snippet_backward", "fallback" },
|
||||||
@@ -49,7 +50,6 @@ return {
|
|||||||
["<C-f>"] = { "scroll_documentation_down", "fallback" },
|
["<C-f>"] = { "scroll_documentation_down", "fallback" },
|
||||||
|
|
||||||
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
|
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
|
||||||
["<C-e>"] = { "hide", "fallback" },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
appearance = {
|
appearance = {
|
||||||
@@ -58,12 +58,8 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
completion = {
|
completion = {
|
||||||
accept = {
|
keyword = { range = "full" },
|
||||||
-- experimental auto-brackets support
|
accept = { auto_brackets = { enabled = false } },
|
||||||
auto_brackets = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
menu = {
|
menu = {
|
||||||
draw = {
|
draw = {
|
||||||
treesitter = { "lsp" },
|
treesitter = { "lsp" },
|
||||||
@@ -74,7 +70,7 @@ return {
|
|||||||
auto_show_delay_ms = 200,
|
auto_show_delay_ms = 200,
|
||||||
},
|
},
|
||||||
ghost_text = {
|
ghost_text = {
|
||||||
enabled = vim.g.ai_cmp,
|
enabled = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -82,29 +78,15 @@ return {
|
|||||||
|
|
||||||
-- This comes from the luasnip extra, if you don't add it, won't be able to
|
-- This comes from the luasnip extra, if you don't add it, won't be able to
|
||||||
-- jump forward or backward in luasnip snippets
|
-- jump forward or backward in luasnip snippets
|
||||||
snippets = {
|
snippets = { preset = "luasnip" },
|
||||||
expand = function(snippet)
|
|
||||||
require("luasnip").lsp_expand(snippet)
|
|
||||||
end,
|
|
||||||
active = function(filter)
|
|
||||||
if filter and filter.direction then
|
|
||||||
return require("luasnip").jumpable(filter.direction)
|
|
||||||
end
|
|
||||||
return require("luasnip").in_snippet()
|
|
||||||
end,
|
|
||||||
jump = function(direction)
|
|
||||||
require("luasnip").jump(direction)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
default = {
|
default = {
|
||||||
"lsp",
|
"lsp",
|
||||||
"buffer",
|
"buffer",
|
||||||
|
"path",
|
||||||
"dadbod",
|
"dadbod",
|
||||||
"snippets",
|
"snippets",
|
||||||
"luasnip",
|
|
||||||
"path",
|
|
||||||
"markdown",
|
"markdown",
|
||||||
},
|
},
|
||||||
cmdline = {},
|
cmdline = {},
|
||||||
@@ -124,9 +106,6 @@ return {
|
|||||||
snippets = {
|
snippets = {
|
||||||
score_offset = 1150,
|
score_offset = 1150,
|
||||||
},
|
},
|
||||||
luasnip = {
|
|
||||||
score_offset = 1100,
|
|
||||||
},
|
|
||||||
path = {
|
path = {
|
||||||
score_offset = 750,
|
score_offset = 750,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user