Enhance nvim configuration with improved UX settings

- Add vim-fugitive for git integration with leader key mappings
- Configure lualine to show relative file paths instead of filenames
- Set nvim-tree to hide dotfiles and show gitignored files by default
- Add linebreak and breakindent options for better word wrapping
- Remove vi keymapping from zsh for standard emacs-style bindings

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 08:24:53 +02:00
parent 25f7f64cf4
commit a926267b1f

View file

@ -21,6 +21,8 @@
vim.opt.tabstop = 2
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.linebreak = true -- Don't break words when wrapping
vim.opt.breakindent = true -- Preserve indentation when wrapping
vim.opt.termguicolors = true
-- Enable filetype detection and syntax
@ -40,7 +42,12 @@
vim.cmd('colorscheme gruvbox')
-- Nvim-tree setup
require("nvim-tree").setup({})
require("nvim-tree").setup({
filters = {
dotfiles = true, -- Hide dotfiles by default (Ctrl+H to toggle)
git_ignored = false, -- Show gitignored files by default (Ctrl+I to toggle)
},
})
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", { desc = "Toggle file explorer" })
-- Treesitter setup