This repository was archived by the owner on Feb 7, 2025. It is now read-only.
generated from AstroNvim/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.lua
79 lines (74 loc) · 1.83 KB
/
user.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- USER CONFIGURATION --
-- ~/.config/nvim/lua/plugins/user.lua
local BG_DARK = "#202020"
local BG_DARKER = "#111111"
local DISABLED_PLUGINS = {
"rcarriga/cmp-dap",
"goolord/alpha-nvim",
"rcarriga/nvim-dap-ui",
"stevearc/aerial.nvim",
"kevinhwang91/nvim-ufo",
"mfussenegger/nvim-dap",
"akinsho/toggleterm.nvim",
"stevearc/resession.nvim",
"s1n7ax/nvim-window-picker",
"echasnovski/mini.bufremove",
-- "nvim-neo-tree/neo-tree.nvim",
"max397574/better-escape.nvim",
"mrjones2014/smart-splits.nvim",
}
local function disable_plugins(plugins)
for i, plugin in pairs(plugins) do
plugins[i] = { plugin, enabled = false }
end
return plugins
end
---@type LazySpec
return vim.list_extend(disable_plugins(DISABLED_PLUGINS), {
-- <| configure plugins |> --
{
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.lua" },
-- import community plugins
{ import = "astrocommunity.colorscheme.rose-pine" },
{ import = "astrocommunity.colorscheme.onedarkpro-nvim" },
},
{
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
options = {
opt = {
colorcolumn = { "80", "120" },
},
},
mappings = {
n = {
[":"] = { ";" },
[";"] = { ":" },
},
},
},
},
{
"AstroNvim/astroui",
---@type AstroUIOpts
opts = {
colorscheme = "onedark",
highlights = {
init = { -- this table overrides highlights in all themes
-- Normal = { bg = "#000000" },
},
onedark = {
CursorLine = { bg = BG_DARK },
LineNr = { bg = BG_DARK },
},
onedark_dark = {
CursorLine = { bg = BG_DARKER },
LineNr = { bg = BG_DARKER },
},
},
},
},
})