2024-09-05 07:59:53 +00:00
|
|
|
return {
|
|
|
|
-- Flash/fade cursor locator
|
|
|
|
{
|
|
|
|
"danilamihailov/beacon.nvim",
|
|
|
|
opts = {
|
|
|
|
speed = 1,
|
|
|
|
width = 30,
|
|
|
|
min_jump = 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
-- Darker bg in tokyonight
|
|
|
|
{ "folke/tokyonight.nvim", opts = { style = "night" } },
|
|
|
|
|
|
|
|
-- Install gruvbox as option
|
|
|
|
{ "ellisonleao/gruvbox.nvim" },
|
2024-09-18 20:51:30 +00:00
|
|
|
|
|
|
|
-- Flash nvim labels
|
|
|
|
{
|
|
|
|
"folke/flash.nvim",
|
|
|
|
opts = {
|
|
|
|
labels = "hoeadstnbufgmlzxcv",
|
|
|
|
},
|
|
|
|
},
|
2024-11-17 03:52:58 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
init = function()
|
|
|
|
vim.g.cmp_disabled = false
|
|
|
|
end,
|
|
|
|
opts = function(_, opts)
|
|
|
|
opts.enabled = function()
|
|
|
|
-- local context = require("cmp.config.context")
|
|
|
|
if vim.g.cmp_disabled == true then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
-- some other conditions (like not in commments) can go here
|
|
|
|
return not disabled
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>ua",
|
|
|
|
function()
|
|
|
|
vim.g.cmp_disabled = not vim.g.cmp_disabled
|
|
|
|
local msg = ""
|
|
|
|
if vim.g.cmp_disabled == true then
|
|
|
|
msg = "Autocompletion (cmp) disabled"
|
|
|
|
else
|
|
|
|
msg = "Autocompletion (cmp) enabled"
|
|
|
|
end
|
|
|
|
vim.notify(msg, vim.log.levels.INFO)
|
|
|
|
end,
|
|
|
|
noremap = true,
|
|
|
|
silent = true,
|
|
|
|
desc = "toggle autocompletion",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-09-05 07:59:53 +00:00
|
|
|
}
|