copilot when blink suggest

This commit is contained in:
huyjaky
2025-08-23 01:50:39 +07:00
parent 23bb2a7aa6
commit c14541a752
10 changed files with 53 additions and 49 deletions

View File

@@ -12,6 +12,7 @@ return {
colorscheme = "bamboo", colorscheme = "bamboo",
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes -- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
highlights = require "plugins.configs.ui.highlights", highlights = require "plugins.configs.ui.highlights",
-- Icons can be configured throughout the interface -- Icons can be configured throughout the interface
icons = require "plugins.configs.ui.icons", icons = require "plugins.configs.ui.icons",
status = require "plugins.configs.ui.status", status = require "plugins.configs.ui.status",

View File

@@ -6,10 +6,13 @@ return {
vim.api.nvim_set_keymap("i", "<C-f>", 'copilot#Accept("\\<CR>")', { expr = true, silent = true }) vim.api.nvim_set_keymap("i", "<C-f>", 'copilot#Accept("\\<CR>")', { expr = true, silent = true })
end, end,
}, },
{ {
"Saghen/blink.cmp", "Saghen/blink.cmp",
opts = { opts = {
keymap = {
preset = "default",
["<C-f>"] = false,
},
completion = { completion = {
list = { selection = { preselect = true, auto_insert = true } }, list = { selection = { preselect = true, auto_insert = true } },
ghost_text = { ghost_text = {
@@ -31,7 +34,6 @@ return {
return hl return hl
end, end,
}, },
}, },
}, },
}, },

View File

@@ -30,7 +30,7 @@ M.statusline = {
}, },
}, },
status.component.git_branch { status.component.git_branch {
padding = { left = 0, right = 1 }, padding = { left = 1, right = 1 },
surround = { surround = {
separator = "none", separator = "none",
color = "bg", color = "bg",
@@ -52,7 +52,7 @@ M.statusline = {
}, },
}, },
status.component.git_diff { status.component.git_diff {
padding = { left = 1 }, padding = { left = 0 },
surround = { surround = {
separator = "none", separator = "none",
color = "bg", color = "bg",

View File

@@ -16,9 +16,9 @@ return {
-- Git -- Git
Github = "", Github = "",
GitAdd = "", GitAdd = "",
GitBranch = " ", GitBranch = "",
GitChange = "", GitChange = "",
GitConflict = " ", GitConflict = "",
GitDelete = "", GitDelete = "",
GitIgnored = "", GitIgnored = "",
GitRenamed = "", GitRenamed = "",

View File

@@ -0,0 +1,25 @@
return {
priority = 1,
enabled = true, -- enable indent guides
only_scope = true, -- only show indent guides of the scope
only_current = false, -- only show indent guides in the current window
hl = "SnacksIndent", ---@type string|string[] hl groups for indent guides
animate = {
enabled = vim.fn.has("nvim-0.10") == 1,
style = "up_down",
easing = "linear",
duration = {
step = 50, -- ms per step
total = 500, -- maximum duration
},
},
scope = {
enabled = true, -- enable highlighting the current scope
priority = 200,
char = "󰥓",
underline = false, -- underline the start of the scope
only_current = false, -- only show scope in the current window
hl = "SnacksIndentScope", ---@type string|string[] hl group for scopes
},
}

View File

@@ -85,7 +85,6 @@ return {
end end
end, end,
}, },
-- DAP Virtual Text (disabled) -- DAP Virtual Text (disabled)
{ {
"theHamsta/nvim-dap-virtual-text", "theHamsta/nvim-dap-virtual-text",
@@ -99,8 +98,4 @@ return {
virt_text_pos = "eol", virt_text_pos = "eol",
}, },
}, },
-- Disabled development plugins
{ "mfussenegger/nvim-dap", enabled = false },
{ "jay-babu/mason-nvim-dap.nvim", enabled = false },
} }

17
lua/plugins/disabled.lua Normal file
View File

@@ -0,0 +1,17 @@
return {
{ "Wansmer/treesj", enabled = false },
-- You can disable default plugins as follows:
{ "max397574/better-escape.nvim", enabled = false },
{ "andweeb/presence.nvim", enabled = false },
-- Disabled formatting plugins
{ "rafamadriz/friendly-snippets", enabled = false },
{ "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
{ "windwp/nvim-ts-autotag", enabled = false },
-- Disabled development plugins
{ "mfussenegger/nvim-dap", enabled = false },
{ "jay-babu/mason-nvim-dap.nvim", enabled = false },
}

View File

@@ -120,8 +120,4 @@ return {
}, },
}, },
}, },
-- Disabled motion plugins
{ "Wansmer/treesj", enabled = false },
} }

View File

@@ -17,8 +17,4 @@ return {
end, end,
}, },
-- Disabled formatting plugins
{ "rafamadriz/friendly-snippets", enabled = false },
{ "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
{ "windwp/nvim-ts-autotag", enabled = false },
} }

View File

@@ -29,38 +29,10 @@ return {
keys = {}, keys = {},
}, },
}, },
indent = require( "plugins.configs.ui.indent" ),
indent = {
priority = 1,
enabled = true, -- enable indent guides
-- char = "l",
only_scope = true, -- only show indent guides of the scope
only_current = false, -- only show indent guides in the current window
hl = "SnacksIndent", ---@type string|string[] hl groups for indent guides
animate = {
enabled = vim.fn.has("nvim-0.10") == 1,
style = "out",
easing = "linear",
duration = {
step = 10, -- ms per step
total = 500, -- maximum duration
},
},
scope = {
enabled = true, -- enable highlighting the current scope
priority = 200,
char = "󰥓",
underline = false, -- underline the start of the scope
only_current = false, -- only show scope in the current window
hl = "SnacksIndentScope", ---@type string|string[] hl group for scopes
},
},
}, },
}, },
-- You can disable default plugins as follows:
{ "max397574/better-escape.nvim", enabled = false },
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call -- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
{ {
@@ -77,7 +49,7 @@ return {
{ {
"altermo/ultimate-autopair.nvim", "altermo/ultimate-autopair.nvim",
event = "InsertEnter", event = "InsertEnter",
branch = "v0.6", -- branch = "v0.6",
opts = { opts = {
cmap = false, cmap = false,
extensions = { extensions = {