setup stow

This commit is contained in:
quenousimporte 2026-07-02 11:53:51 +02:00
parent 2b2de8fb4e
commit 62ed4ca6f1
13 changed files with 48 additions and 70 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
# style name or JSON path (default "auto")
style: "auto"
# mouse support (TUI-mode only)
mouse: false
# use pager to display markdown
pager: false
# word-wrap at width
width: 80

View File

@ -0,0 +1,4 @@
{
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment"
}

View File

@ -0,0 +1,5 @@
{
//"colorscheme": "one-dark",
"softwrap": true,
"wordwrap": true
}

View File

@ -1,8 +0,0 @@
-- setup lazy
require("config.lazy")
vim.opt.number = true
-- default color scheme
-- vim.cmd([[colorscheme habamax]])
vim.cmd([[colorscheme gruvbox]])

View File

@ -1,7 +0,0 @@
{
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" }
}

View File

@ -1,35 +0,0 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

View File

@ -1 +0,0 @@
return { "ellisonleao/gruvbox.nvim", priority = 1000 , config = true }

View File

@ -1,9 +0,0 @@
return {
'nvim-telescope/telescope.nvim',
tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-p>", builtin.find_files, { desc = "Find files" })
end,
}

View File

@ -1,10 +0,0 @@
return {
'akinsho/toggleterm.nvim',
version = "*",
config = function()
require("toggleterm").setup({})
-- Map <C-j> to toggle terminal
vim.keymap.set("n", "<C-j>", "<cmd>ToggleTerm<cr>", { desc = "Toggle terminal" })
vim.keymap.set("t", "<C-j>", "<cmd>ToggleTerm<cr>", { desc = "Toggle terminal" })
end,
}

19
tmux/.tmux.conf Normal file
View File

@ -0,0 +1,19 @@
# ─── General settings ────────────────────────────────────────────
set -g default-terminal "tmux-256color"
set -g base-index 1
setw -g pane-base-index 1
# ─── Plugins (managed by TPM) ────────────────────────────────────
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# ─── Resurrect settings ─────────────────────────────────────────
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
# ─── Continuum settings (auto-save & restore) ───────────────────
set -g @continuum-restore 'on'
# ─── Initialize TPM (keep this at the very bottom) ──────────────
run '~/.tmux/plugins/tpm/tpm'

0
vim/.vimrc Normal file → Executable file
View File

12
zsh/.zshrc Normal file
View File

@ -0,0 +1,12 @@
# Auto-launch tmux
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
# If no tmux server running, start one (continuum will auto-restore)
# Otherwise attach to existing session
if ! tmux has-session 2>/dev/null; then
exec tmux new-session
else
exec tmux attach-session
fi
fi