config-nvim/lua/plugins/my_ui_tweaks.lua
2024-11-16 20:52:58 -07:00

61 lines
1.3 KiB
Lua

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" },
-- Flash nvim labels
{
"folke/flash.nvim",
opts = {
labels = "hoeadstnbufgmlzxcv",
},
},
{
"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",
},
},
},
}