Commit graph

10 commits

Author SHA1 Message Date
Yan Lin
862e7096f4 Clean up telescope keybindings 2025-08-14 23:20:02 +09:00
Yan Lin
04aeb9160e Add telescope 2025-08-14 09:07:42 +09:00
Yan Lin
8cb239963a Configure nvim to use system clipboard by default
- Add clipboard = "unnamedplus" to make all yank operations use system clipboard
- Remove redundant <leader>y keymapping since y now copies to clipboard by default
- Preserve full access to vim's register system (named registers still work independently)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 14:17:38 +02:00
Yan Lin
f12ae20f05 Add dictionary autocompletion to neovim without spell checking
- Add cmp-dictionary plugin to extraPlugins for English word completion
- Configure dictionary source in nvim-cmp with keyword_length = 2
- Set up dictionary paths pointing to /usr/share/dict/words
- Enable case-insensitive matching for better user experience
- Completion triggers after 2+ characters for performance optimization

This provides English word autocompletion without enabling vim's spell
checking features, keeping the interface clean without visual indicators.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 18:57:50 +02:00
Yan Lin
1b9cb26015 Fix nvim shortcuts for files with non-English characters
- Add Unicode-safe Lua functions for file operations
- Replace shell commands with proper escaping using vim.fn.shellescape()
- Update <leader>o and <leader>f keymaps to use new Lua functions
- Fixes issues with Chinese and other Unicode characters in filenames

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 18:36:36 +02:00
Yan Lin
302307f978 Add autoread to neovim 2025-07-29 10:46:48 +02:00
Yan Lin
3e938daef8 Add basic auto-completion to Neovim and comprehensive documentation
- Add nvim-cmp plugin with buffer and path completion sources
- Configure intuitive keybindings for completion navigation:
  * Ctrl+Space to trigger completion manually
  * Tab/Shift+Tab for menu navigation
  * Enter to accept completion, Ctrl+e to close menu
- Enable autoEnableSources for automatic plugin management

- Add comprehensive "Code Editing & Auto-completion" section to README:
  * Document all key features: Gruvbox theme, Tree-sitter, file explorer
  * Provide complete auto-completion usage guide with keybindings
  * Include essential keybinding reference for file operations, clipboard, git
  * Explain completion sources: buffer words and file path suggestions

Benefits:
- Simple, non-intrusive auto-completion without language servers
- Word completion from open buffers for faster typing
- Path completion for file navigation and imports
- Clear documentation for all Neovim features and keybindings
- Follows standard completion UI patterns users expect

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 20:36:45 +02:00
Yan Lin
f7f6d117c7 Minor update of nvim hidden list 2025-07-28 19:23:47 +02:00
Yan Lin
6d7fc7184f Configure nvim-tree to hide macOS system files
- Add custom filter patterns for common macOS system files
- Hide .DS_Store, .AppleDouble, .LSOverride, and other system files
- Include resource forks (._*), Spotlight, and Time Machine files
- Keep existing dotfiles and git_ignored filter settings
- Maintain clean file explorer interface without system clutter

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 20:10:08 +02:00
Yan Lin
539ba9fef7 Reorganize configuration into modular directory structure
- Create modules/ directory for Nix configuration modules
- Create config/ directory for configuration files
- Move nvim.nix, tmux.nix, zsh.nix to modules/
- Move p10k.zsh to config/
- Update flake.nix import paths to reference new structure
- Update zsh.nix p10k.zsh path reference
- Update README.md architecture documentation
- Keep tmux.sh at root for easy accessibility

This provides better separation between Nix modules and config files
while maintaining a clean, scalable structure.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 22:07:28 +02:00
Renamed from nvim.nix (Browse further)