Skip to content

๐Ÿ‘ป ghost-nvim: an AI-powered, ultra-fast Neovim configuration built for productivity, modern tooling, and intelligent coding.

License

Notifications You must be signed in to change notification settings

manwwe/ghost-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ghost-nvim logo
Features โ€ข Install โ€ข Setup โ€ข Usage โ€ข Keybindings โ€ข Contribute โ€ข Structure


ghost-nvim is an optimized Neovim configuration that places artificial intelligence at the core of the development experience. It seamlessly integrates AI assistants like GitHub Copilot and Codeium (Windsurf) via nvim-cmp, offering a fast, intelligent, and highly productive environment.

๐Ÿงช Version: v0.0.1 โ€“ Beta release โ€“ features and structure may change frequently.


ghost-nvim dashboard preview

AI integration preview

โœจ Features

ghost-nvim delivers a high-performance, AI-powered development workflow with modern tools and seamless usability.

  • ๐Ÿ’ก Unified AI Suggestions
    Copilot and Codeium are integrated into the completion menuโ€”no ghost text, just clean and non-intrusive suggestions.

  • ๐Ÿค– Smart AI Commands
    Use CopilotChat for commit messages, refactoring, pseudocode, and moreโ€”context-aware and efficient.

  • โšก Ultra-fast Startup
    Loads in 0.02โ€“0.05 seconds.

  • ๐Ÿงฉ Modern Plugin Management
    Powered by lazy.nvim, with efficient on-demand loading.

  • ๐Ÿ› ๏ธ Full IDE Feature Set
    Autocompletion, Git tools, debugging, LSP, snippets, and more.

  • ๐ŸŽจ Highly Customizable
    Modular and extensible by design.


๐Ÿš€ Installation

Requires Neovim โ‰ฅ 0.8.0 (nightly recommended). Plugin management is handled via lazy.nvim.

๐Ÿ”ง Prerequisites

Install the following dependencies:

  • Neovim 0.8+
  • Git
  • Nerd Font (for icons)
  • ripgrep (rg)
  • fzf:
    • macOS: brew install fzf
    • Ubuntu: sudo apt install fzf
    • Arch: sudo pacman -S fzf
  • Node.js & npm
  • Python & pip

โš™๏ธ Setup

๐Ÿ“ฆ Step-by-Step

  1. Backup existing config:

    mv ~/.config/nvim ~/.config/nvim.bak
    mv ~/.local/share/nvim ~/.local/share/nvim.bak
  2. Clone the repo:

    git clone https://github.com/dotfmg/ghost-nvim.git ~/.config/nvim
  3. Launch Neovim:

    nvim
  4. Let lazy.nvim install plugins. Use:

    • :Lazy
    • :Lazy sync
    • :Lazy update
  5. Run :Mason to install/manage LSPs and formatters.

โœ… You're ready to use ghost-nvim!


๐Ÿงช Usage

๐Ÿ”Œ Plugin Management

  • Plugins are auto-installed on launch.
  • Use :Lazy for sync, updates, and status.

Key Features & Plugins

๐Ÿค– AI Assistance

GitHub Copilot:

  • Suggestions via copilot.lua
  • Chat interface via CopilotChat.nvim
  • ๐Ÿ›‚ Authentication: Run :Copilot setup to log in to GitHub and enable Copilot.

Codeium:

  • Real-time completions with windsurf.nvim
  • Unified with Copilot in the nvim-cmp menu
  • ๐Ÿ›‚ Authentication: Run :Codeium Auth to authenticate your Codeium account.

โš™๏ธ Completion Engine (nvim-cmp)

  • Unified suggestions: AI, LSP, snippets, paths
  • Uses <Tab>, <S-Tab>, <CR> for navigation
  • AI prioritized with custom sorting

๐Ÿ” Telescope

  • Fuzzy finder mapped to <leader>f commands

๐Ÿง  LSP + Code Intelligence

  • mason.nvim, nvim-lspconfig, none-ls.nvim
  • Autoformat on save
  • Prettier, Ruff, Shellcheck, and more

๐ŸŒˆ UI/UX

  • Themes: Catppuccin, Gruvbox, Nord
  • Dashboard: alpha-nvim
  • File tree: neo-tree.nvim
  • Notifications: noice.nvim

๐Ÿงฉ Tools

  • Git: gitsigns.nvim, lazygit.nvim
  • Terminal: toggleterm.nvim
  • QoL: sessions, last-place, autopairs, todos

๐Ÿค– Custom AI Features

  • Smart commit: <leader>ac
  • Prompt visual code: <leader>av
  • Full-buffer prompt: <leader>ab
  • Ask anything: <leader>ai

Prompt options:

  • Explain
  • Refactor
  • Add types
  • Pseudocode
  • Improve names
  • Logging
  • Security audit

Explore lua/plugins/ai or run :Lazy.


๐ŸŽฎ Keybindings

๐Ÿค– CopilotChat

Keybinding Action
<leader>ao Open chat
<leader>ac Smart commit from Git diff
<leader>av AI on selection
<leader>ab AI on buffer
<leader>ai Ask question
<leader>a? Select model
<leader>aa Select agent
<leader>al Reset CopilotChat buffer

โš™๏ธ Completion

Key Action
<Tab> Next suggestion
<S-Tab> Previous suggestion
<CR> Confirm selection

๐Ÿ” Telescope

Keybinding Action
<leader>ff Find files
<leader>fg Live grep
<leader>fb Open buffers
<leader>fh Help tags

๐Ÿง  LSP

Keybinding Action
gd Go to definition
gr Find references
K Hover info
<leader>rn Rename symbol
<leader>ca Code action

๐Ÿงฑ File Explorer

Keybinding Action
<leader>e Toggle file tree

๐Ÿ–ฅ๏ธ Terminal

Keybinding Action
<C-_> Toggle main terminal
<leader>tf Floating terminal
<leader>tr Run file in terminal

๐Ÿ”ง Sessions

Keybinding Action
<leader>ps Restore previous session
<leader>pl List saved sessions

๐Ÿค Contributing

Help improve ghost-nvim with ideas, fixes, and features.

๐Ÿ’ก What You Can Do

  • Improve AI tools or UX
  • Add prompts/workflows
  • Support more tools or languages

๐Ÿงช How to Contribute

  1. Fork the repo
  2. Create a branch
  3. Write clear, documented code
  4. Submit a PR with description

๐Ÿ“‚ Guidelines

  • Follow the folder structure (lua/plugins/ai/, etc.)
  • Use lazy-loaded plugins
  • Document keybindings and features

๐Ÿ“ Project Structure

.
โ”œโ”€โ”€ init.lua                  # Entry point
โ”œโ”€โ”€ lua
โ”‚   โ”œโ”€โ”€ core                  # Options, keymaps, lazy setup
โ”‚   โ”œโ”€โ”€ plugins
โ”‚   โ”‚   โ”œโ”€โ”€ ai               # Copilot & Codeium
โ”‚   โ”‚   โ”œโ”€โ”€ appearance       # Themes & UI
โ”‚   โ”‚   โ”œโ”€โ”€ coding           # Syntax helpers
โ”‚   โ”‚   โ”œโ”€โ”€ git              # Git integrations
โ”‚   โ”‚   โ”œโ”€โ”€ lsp              # LSP, cmp, formatting
โ”‚   โ”‚   โ”œโ”€โ”€ search           # Telescope, ctrlsf
โ”‚   โ”‚   โ”œโ”€โ”€ session          # Persistence tools
โ”‚   โ”‚   โ”œโ”€โ”€ terminal         # Terminal helpers
โ”‚   โ”‚   โ””โ”€โ”€ themes           # Color schemes
โ””โ”€โ”€ README.md

About

๐Ÿ‘ป ghost-nvim: an AI-powered, ultra-fast Neovim configuration built for productivity, modern tooling, and intelligent coding.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages