vim.g.mapleader = ' '
local root = vim.fn.fnamemodify('./.repro', ':p')
-- set stdpaths to use .repro
for _, name in ipairs({ 'config', 'data', 'state', 'cache' }) do
vim.env[('XDG_%s_HOME'):format(name:upper())] = root .. '/' .. name
end
-- bootstrap lazy
local lazypath = root .. '/plugins/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{ 'nvim-lua/plenary.nvim' },
{ 'stevearc/dressing.nvim', opts = {} },
{
'mcchrish/zenbones.nvim',
dependencies = {
'rktjmp/lush.nvim',
},
config = false,
init = function()
vim.g.neobones = {
solid_float_border = false,
colorize_diagnostic_underline_text = true,
transparent_background = false,
-- light
-- darken_comments = 30,
lightness = 'dim',
darken_cursor_line = 10,
--- dark
lighten_cursor_line = 15,
-- lighten_comments = 30,
lighten_non_text = 22,
}
end,
},
-- add any other pugins here
{
"LeonHeidelbach/trailblazer.nvim",
config = function()
require("trailblazer").setup({
lang = "en",
auto_save_trailblazer_state_on_exit = false,
auto_load_trailblazer_state_on_enter = false, -- your custom config goes here
mappings = { -- rename this to "force_mappings" to completely override default mappings and not merge with them
nv = { -- Mode union: normal & visual mode. Can be extended by adding i, x, ...
motions = {
new_trail_mark = '<A-l>',
track_back = '<A-b>',
peek_move_next_down = '<A-J>',
peek_move_previous_up = '<A-K>',
move_to_nearest = '<A-n>',
toggle_trail_mark_list = '<A-m>',
},
actions = {
delete_all_trail_marks = '<A-L>',
paste_at_last_trail_mark = '<A-p>',
paste_at_all_trail_marks = '<A-P>',
set_trail_mark_select_mode = '<A-t>',
switch_to_next_trail_mark_stack = '<A-.>',
switch_to_previous_trail_mark_stack = '<A-,>',
set_trail_mark_stack_sort_mode = '<A-s>',
},
},
}
})
end,
},
{
'luukvbaal/statuscol.nvim',
config = function()
local statuscol = require('statuscol')
local builtin = require('statuscol.builtin')
statuscol.setup({
separator = '│',
relculright = true,
setopt = true,
segments = {
{
sign = { name = { '.*' }, maxwidth = 2, colwidth = 1, auto = true },
},
{ text = { builtin.lnumfunc, ' ' }, click = 'v:lua.ScLa' },
{ text = { builtin.foldfunc, ' ' }, click = 'v:lua.ScFa' },
-- {
-- sign = { name = { 'GitSigns' }, maxwidth = 1, colwidth = 1, auto = true },
-- click = 'v:lua.ScSa',
-- },
{
sign = { name = { 'Diagnostic' }, maxwidth = 1, auto = false },
click = 'v:lua.ScSa',
},
},
})
end,
}
}
require('lazy').setup({
spec = plugins,
root = root .. '/plugins',
defaults = {
lazy = false,
},
state = root .. '/lazy/state.json',
performance = {
cache = {
enabled = false,
}
}
})
-- add anything else here
vim.opt.termguicolors = true
pcall(vim.cmd, [[colorscheme neobones]])
Symbols should be work.