feat: add templating for laptop dotfiles

This commit is contained in:
Robert Perce 2026-03-20 00:07:21 -05:00
parent caf6e25e43
commit bdf7e407cb
21 changed files with 437 additions and 52 deletions

View file

@ -0,0 +1,70 @@
return {
-- pretty statusline
{
'nvim-lualine/lualine.nvim',
config = function()
vim.o.showmode = false
require 'lualine'.setup {
options = {
icons_enabled = false,
component_separators = { left = '⡇⡷', right = '⢾⢸' },
section_separators = { left = '▓▓▒', right = '▒▓▓' },
globalstatus = true,
theme = 'catppuccin',
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'filename' },
lualine_c = { 'branch', 'diff' },
lualine_x = { 'encoding', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
inactive_sections = {},
}
end
},
-- cutesy indent lines
{
'lukas-reineke/indent-blankline.nvim',
dependencies = { 'catppuccin' },
config = function()
local highlight = {
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end)
require("ibl").setup { indent = { highlight = highlight } }
end
},
-- highlighted TODO comments
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
highlight = {
pattern = [[.*<(KEYWORDS)\s*:?]]
}
}
}
}

View file

@ -1,3 +1,4 @@
return {
{ 'tpope/vim-vinegar' }
'tpope/vim-eunuch', --Delete/Rename/Move/&c commands that sync with the buffer
'tpope/vim-vinegar', --netrw upgrades
}

View file

@ -0,0 +1,11 @@
return {
-- cool command-nesting
{
'anuvyklack/hydra.nvim',
dependencies = { 'catppuccin' },
config = function()
package.loaded['hydras'] = nil
require 'hydras'
end
},
}

View file

@ -1,14 +0,0 @@
return {
{
'nvim-lualine/lualine.nvim',
init = function() vim.o.showmode = false end,
opts = {
options = {
icons_enabled = false,
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
}
}
}
}

View file

@ -0,0 +1,27 @@
return {
{
'nvim-lualine/lualine.nvim',
init = function() vim.o.showmode = false end,
opts = {
options = {
icons_enabled = false,
component_separators = { left = '⧽', right = '⧼'},
section_separators = { left = '', right = ''},
globalstatus = true,
{{- if has "desktop" .class }}
theme = 'catppuccin-nvim',
{{- end }}
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'filename' },
lualine_c = { 'branch', 'diff' },
lualine_x = { 'encoding', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
inactive_sections = {},
}
}
}

View file

@ -0,0 +1,7 @@
return {
{
'tommcdo/vim-lion', --gl/gL to align block on character
lazy = false,
config = function() end
},
}

View file

@ -0,0 +1,11 @@
return {
{
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function() vim.fn['mkdp#util#install']() end,
keys = {
{ '<C-p>', ':MarkdownPreviewToggle<CR>' }
},
},
}

View file

@ -1,10 +1,11 @@
return {
{ "tpope/vim-repeat" },
{ "tpope/vim-surround" },
{ url = "https://codeberg.org/andyg/leap.nvim",
config = function()
vim.keymap.set({'n', 'x', 'o'}, 's', '<Plug>(leap)')
vim.keymap.set('n', 'S', '<Plug>(leap-from-window)')
end
}
{ "tpope/vim-repeat" }, --make . behave more predictably
{ "tpope/vim-surround" }, --change and set (){}[]<>''
{ "wellle/targets.vim" }, --provides text objs for brackets, quotes, tags, etc
{ url = "https://codeberg.org/andyg/leap.nvim",
config = function()
vim.keymap.set({'n', 'x', 'o'}, 's', '<Plug>(leap)')
vim.keymap.set('n', 'S', '<Plug>(leap-from-window)')
end
}
}

View file

@ -0,0 +1,8 @@
return {
{
'beauwilliams/focus.nvim', --dynamically sized splits
config = function()
require 'focus'.setup()
end
},
}

View file

@ -1,9 +1,9 @@
return {
{ "catppuccin/nvim",
name = "catppuccin",
priority = 1000,
opts = {
flavor ="frappe"
}
{ "catppuccin/nvim",
name = "catppuccin",
priority = 1000,
opts = {
flavor = "frappe"
}
}
}

View file

@ -0,0 +1,22 @@
return {
{
'nvim-treesitter/nvim-treesitter',
lazy = false,
build = ':TSUpdate',
config = function()
require('nvim-treesitter').install({
"astro", "bash", "c", "cmake", "css", "dockerfile", "fish", "go", "html", "java",
"javascript", "json", "json5", "latex", "lua", "make", "perl", "python", "regex",
"ruby", "rust", "typescript", "vim", "yaml"
}):wait(300000)
end
},
-- show block headers at top of scrollzone
{
'romgrk/nvim-treesitter-context',
config = function()
require 'treesitter-context'.setup()
end,
},
}

View file

@ -0,0 +1,35 @@
return {
{
'folke/zen-mode.nvim',
dependencies = {
'junegunn/limelight.vim',
},
opts = {
window = {
width = 60,
height = 20,
options = {
winbar = '',
signcolumn = "no", -- disable signcolumn
number = false, -- disable number column
relativenumber = false, -- disable relative numbers
cursorline = false, -- disable cursorline
cursorcolumn = false, -- disable cursor column
foldcolumn = "0", -- disable fold column
textwidth = 55,
linebreak = true,
},
},
on_open = function(_win)
vim.o.cmdheight = 2
vim.o.textwidth = 55
vim.cmd('Limelight')
end,
on_close = function(_win)
vim.o.cmdheight = 1
vim.o.textwidth = 88
vim.cmd('Limelight!')
end
},
},
}