copilot when blink suggest
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
25
lua/plugins/configs/ui/indent.lua
Normal file
25
lua/plugins/configs/ui/indent.lua
Normal 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
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -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
17
lua/plugins/disabled.lua
Normal 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 },
|
||||||
|
}
|
||||||
|
|
||||||
@@ -120,8 +120,4 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Disabled motion plugins
|
|
||||||
{ "Wansmer/treesj", enabled = false },
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 },
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user