🧰Neovim + Tmux Markdown Power Setup

🛠️ Neovim Configuration

📁 Config Path

~/.config/nvim/init.lua

📦 Plugin Manager

Using Lazy.nvim with this bootstrap code:

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
...
require("lazy").setup({ ... })

🧭 Leader Key

vim.g.mapleader = " "
vim.g.maplocalleader = " "

🔌 Installed Plugins

PluginPurpose
ellisonleao/glow.nvimMarkdown preview in terminal
nvim-treesitter/nvim-treesitterSyntax highlighting
nvim-telescope/telescope.nvimFuzzy file finder
nvim-tree/nvim-tree.luaFile explorer
nvim-lualine/lualine.nvimStatusline
folke/which-key.nvimKeybinding helper
catppuccin/nvimAesthetic colorscheme
christoomey/vim-tmux-navigatorSeamless tmux > Neovim pane movement

🎹 Keybindings

KeyAction
<Space>eToggle file explorer
<Space>fFind files
<Space>pMarkdown preview
<Space>wSave file
<Space>qQuit file
Ctrl + h/j/k/lNavigate between tmux and Neovim panes

🧱 Tmux Configuration

Saved at: ~/.tmux.conf

bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
 
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set -g mouse off

🖥️ Terminal Tips

  • Using iTerm2 for better macOS compatibility
  • Terminal type: xterm-256color or tmux-256color
  • Removed any conflicting ⌃h, ⌃l bindings in iTerm2

✅ Current Workflow

  • Edit markdown in Neovim
  • Use :Glow or <Space>p to preview inside terminal
  • Navigate panes with Ctrl + h/j/k/l
  • Toggle file tree with <Space>e

Nota diaria: 2025-05-27