Skip to content

Commit

Permalink
feat(nvim)!: create work&personal configs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: create directories for work development
and for personal use
  • Loading branch information
AlejandroSuero committed Oct 9, 2024
1 parent cf727c3 commit 7c61cff
Show file tree
Hide file tree
Showing 158 changed files with 4,108 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
74 changes: 74 additions & 0 deletions roles/neovim/files/personal/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"LuaSnip": { "branch": "master", "commit": "e808bee352d1a6fcf902ca1a71cee76e60e24071" },
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
"better-ts-errors.nvim": { "branch": "main", "commit": "fdca451849c196ece2754eb8ad98472e0e28d569" },
"bufferline.nvim": { "branch": "main", "commit": "0b2fd861eee7595015b6561dade52fb060be10c4" },
"catppuccin": { "branch": "main", "commit": "7be452ee067978cdc8b2c5f3411f0c71ffa612b9" },
"cloak.nvim": { "branch": "main", "commit": "648aca6d33ec011dc3166e7af3b38820d01a71e4" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"colorbuddy.nvim": { "branch": "master", "commit": "8b968581e5c19d22a861d5f3fe5dbd83394fa681" },
"cspell.nvim": { "branch": "main", "commit": "2c29bf573292c8f5053383d1be4ab908f4ecfc47" },
"dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
"fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" },
"git-messenger.vim": { "branch": "master", "commit": "edc603d4cda7894a743e383e16c638e206d03148" },
"gitmoji.nvim": { "branch": "main", "commit": "326ddf01cbf3425566a089126ece7e8bd2560601" },
"gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" },
"gruvbox.nvim": { "branch": "main", "commit": "49d9c0b150ba70efcd831ec7b3cb8ee740067045" },
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
"inlay-hints.nvim": { "branch": "main", "commit": "006b0898f5d3874e8e528352103733142e705834" },
"kanagawa.nvim": { "branch": "master", "commit": "f491b0fe68fffbece7030181073dfe51f45cda81" },
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
"lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
"lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
"leap.nvim": { "branch": "main", "commit": "c6bfb191f1161fbabace1f36f578a20ac6c7642c" },
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
"mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"neotest": { "branch": "master", "commit": "6d3d22cdad49999ef774ebe1bc250a4994038964" },
"neotest-go": { "branch": "main", "commit": "92950ad7be2ca02a41abca5c6600ff6ffaf5b5d6" },
"neotest-jest": { "branch": "main", "commit": "514fd4eae7da15fd409133086bb8e029b65ac43f" },
"neotest-vitest": { "branch": "main", "commit": "9e30dca989a2287cf3fde86b3e138ea7fa4de935" },
"none-ls-luacheck.nvim": { "branch": "main", "commit": "a1dfea0d4c40c4023829c8b9a7ab0a26135985ca" },
"none-ls.nvim": { "branch": "main", "commit": "0e0a940477cc08fa7b1799384a1d668058ed4e61" },
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-colorizer.lua": { "branch": "master", "commit": "0671e0eabc6842676d3310370e8fae4e1c51d7f9" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
"nvim-lsp-ts-utils": { "branch": "main", "commit": "0a6a16ef292c9b61eac6dad00d52666c7f84b0e7" },
"nvim-lspconfig": { "branch": "master", "commit": "d3f169f436e1b44538bfe7e13b4721eec48dbc59" },
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-treesitter": { "branch": "master", "commit": "9d2acd49976e2a9da72949008df03436f781fd23" },
"nvim-treesitter-context": { "branch": "master", "commit": "78a81c7494e7d1a08dd1200b556933e513fd9f29" },
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" },
"nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" },
"paint.nvim": { "branch": "main", "commit": "ef6f717a8669619ebbd098fb72f85115d64c6c92" },
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"rose-pine": { "branch": "main", "commit": "d396005db5bbd1d4ec7772a7c96c96f4c4802328" },
"schemastore.nvim": { "branch": "main", "commit": "dd374887d6e1de38e9d7041da824a8dc10cae401" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "3b8a1e17187cfeedb31decbd625da62398a8ff34" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
"toggleterm.nvim": { "branch": "main", "commit": "137d06fb103952a0fb567882bb8527e2f92d327d" },
"tokyonight.nvim": { "branch": "main", "commit": "2c85fad417170d4572ead7bf9fdd706057bd73d7" },
"transparent.nvim": { "branch": "main", "commit": "8a2749a2fa74f97fe6557f61b89ac7fd873f3c21" },
"trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" },
"vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
"vim-maximizer": { "branch": "master", "commit": "2e54952fe91e140a2e69f35f22131219fcd9c5f1" },
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" },
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" },
"zen-mode.nvim": { "branch": "main", "commit": "29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" }
}
3 changes: 3 additions & 0 deletions roles/neovim/files/personal/lua/aome/core/aomerc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vim.g.transparency = true
vim.g.colorscheme = "poimandres"
vim.g.aome_netrw_list = 0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions roles/neovim/files/work/.luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"diagnostics": {
"unusedLocalExclude": ["_*"]
}
}
84 changes: 84 additions & 0 deletions roles/neovim/files/work/after/ftplugin/fugitive.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
local select_opts = { "Commit", "Pull", "Push", "Push -u", "Fetch" }
local advanced_opts = {
prompt = "Vim-Fugitive options",
format_item = function(item)
if item == "Push -u" then
return item .. " origin <branch> eg. (origin main)"
end
return item
end,
}
local callback = function(choice)
if choice == nil then
vim.notify("No choice selected", vim.log.levels.WARN)
return
end
if choice == "Push -u" then
vim.ui.input(
{ prompt = "Branch to push from: empty = main" },
function(input)
if input == nil then
vim.notify("No input", vim.log.levels.WARN)
return nil
end
if input == "" then
vim.notify("No input, using default (main)", vim.log.levels.WARN)
vim.cmd "Git push origin main"
else
vim.cmd "Git push"
end
end
)
elseif choice == "Fetch" then
vim.cmd "Git fetch --all -p"
else
vim.cmd("Git " .. choice:lower())
end
end

local fugitive_select = function()
vim.ui.select(select_opts, advanced_opts, callback)
end

local opts = { noremap = true, silent = true, buffer = 0 }
local mappings = {
n = {
["<leader>go"] = {
fugitive_select,
"[Fugitive] Git options",
},
["<leader>gaa"] = {
"<cmd>Git add .<CR>",
"[Fugitive] Git add .",
},
["<leader>gaA"] = {
"<cmd>Git add .<CR>",
"[Fugitive] Git add -A",
},
["<leader>gai"] = {
function()
vim.ui.input(
{ prompt = "Git add: write down the files to add" },
function(input)
if input == nil then
vim.notify("No input", vim.log.levels.WARN)
return nil
end
if input == "" then
vim.notify(
"No input, using default (git add -A)",
vim.log.levels.WARN
)
vim.cmd "Git add -A"
else
vim.cmd("Git add " .. input)
end
end
)
end,
"[Fugitive] Git add input",
},
},
}

require("aome.core.utils").map_keys(mappings, opts)
9 changes: 9 additions & 0 deletions roles/neovim/files/work/after/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
vim.opt.spelllang = "en_gb"
vim.opt.spell = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.autoindent = true
vim.opt.wrap = false
3 changes: 3 additions & 0 deletions roles/neovim/files/work/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require "aome"
vim.g.loaded_python3_provider = 0
vim.loader.enable()
20 changes: 20 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/astrotheme.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
return {
palette = "astrodark", -- String of the default palette to use when calling `:colorscheme astrotheme`
background = { -- :h background, palettes to use when using the core vim background colors
light = "astromars",
dark = "astrodark",
},

style = {
transparent = vim.g.transparency, -- Bool value, toggles transparency.
},

plugin_default = "auto", -- Sets how all plugins will be loaded
-- "auto": Uses lazy / packer enabled plugins to load highlights.
-- true: Enables all plugins highlights.
-- false: Disables all plugins.

plugins = { -- Allows for individual plugin overrides using plugin name and value from above.
["bufferline.nvim"] = false,
},
}
25 changes: 25 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/catppuccin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
return {
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "macchiato",
dark = "mocha",
},
transparent_background = vim.g.transparency, -- disables setting the background color.
term_colors = true, -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = true, -- dims the background color of inactive window
shade = "dark",
percentage = 0.30, -- percentage of the shade to apply to the inactive window
},
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
conditionals = {},
},
default_integrations = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = false,
},
}
37 changes: 37 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/cyberdream.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---@module "cyberdream"
---@type Config
return {
-- Enable transparent background
transparent = vim.g.transparency,

-- Enable italics comments
italic_comments = false,

-- Replace all fillchars with ' ' for the ultimate clean look
hide_fillchars = false,

-- Modern borderless telescope theme
borderless_telescope = { border = false, style = "nvchad" },

-- Set terminal colors used in `:terminal`
terminal_colors = true,

theme = {
variant = "default", -- use "light" for the light variant. Also accepts "auto" to set dark or light colors based on the current value of `vim.o.background`
overrides = function(colors)
return {
["@variable.member"] = { link = "@property" },
TelescopeMatching = { fg = colors.cyan },
TelescopeResultsTitle = { fg = colors.blue },
TelescopePromptCounter = { fg = colors.cyan },
TelescopePromptTitle = { fg = colors.bg, bg = colors.blue, bold = true },
TelescopePromptNormal = { fg = colors.fg, bg = colors.bgHighlight },
TelescopePromptBorder = {
fg = colors.bgHighlight,
bg = colors.bgHighlight,
},
TelescopePromptPrefix = { fg = colors.blue, bg = colors.bgHighlight },
}
end,
},
}
18 changes: 18 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/gruvbox.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
return {
terminal_colors = true, -- add neovim terminal colors
undercurl = true,
underline = true,
bold = true,
italic = {
strings = false,
emphasis = true,
comments = true,
operators = false,
folds = true,
},
strikethrough = true,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "", -- can be "hard", "soft" or empty string
dim_inactive = true,
transparent_mode = vim.g.transparency,
}
14 changes: 14 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/kanagawa.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
undercurl = true, -- enable undercurls
commentStyle = { italic = true },
keywordStyle = { italic = false, bold = true },
statementStyle = { bold = true },
typeStyle = {},
transparent = vim.g.transparency, -- do not set background color
dimInactive = true, -- dim inactive window `:h hl-NormalNC`
terminalColors = true, -- define vim.g.terminal_color_{0,17}
background = { -- map the value of 'background' option to a theme
dark = "wave", -- try "dragon" !
light = "dragon",
},
}
7 changes: 7 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/poimandres.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
bold_vert_split = true, -- use bold vertical separators
dim_nc_background = false, -- dim 'non-current' window backgrounds
disable_background = vim.g.transparency, -- disable background
disable_float_background = vim.g.transparency, -- disable background for floats
disable_italics = true, -- disable italics
}
17 changes: 17 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/rose-pine.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
variant = "moon", -- auto, main, moon, or dawn
dark_variant = "main", -- main, moon, or dawn
dim_inactive_windows = true,

enable = {
terminal = true,
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
migrations = true, -- Handle deprecated options automatically
},

styles = {
bold = true,
italic = false,
transparency = vim.g.transparency,
},
}
25 changes: 25 additions & 0 deletions roles/neovim/files/work/lua/aome/colorschemes/tokyonight.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
local transparent = function()
if vim.g.transparency == true then
return "transparent"
end
return "dark"
end
return {
-- your configuration comes here
-- or leave it empty to use the default settings
style = "storm", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
light_style = "night", -- The theme is used when the background is set to light
transparent = vim.g.transparency, -- Enable this to disable setting the background color
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in [Neovim](https://github.com/neovim/neovim)
styles = {
comments = { italic = false },
keywords = { italic = false, bold = true },
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
sidebars = transparent, -- style for sidebars, see below
floats = transparent, -- style for floating windows
},
dim_inactive = true, -- dims inactive windows
lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
}
3 changes: 3 additions & 0 deletions roles/neovim/files/work/lua/aome/core/aomerc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vim.g.transparency = true
vim.g.colorscheme = "poimandres"
vim.g.aome_netrw_list = 0
3 changes: 3 additions & 0 deletions roles/neovim/files/work/lua/aome/core/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require "aome.core.options"
require "aome.core.keymaps"
require "aome.core.terminal"
Loading

0 comments on commit 7c61cff

Please sign in to comment.