Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CopilotC-Nvim/CopilotChat.nvim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 343891a
Choose a base ref
...
head repository: CopilotC-Nvim/CopilotChat.nvim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 903a66a
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 21, 2024

  1. fix: improve chat prompt clearing and cwd detection

    Clear chat prompt logic has been moved to dedicated method in Chat class to
    improve code reusability and maintainability. Window local cwd detection
    has been simplified and now uses VimEnter/WinEnter events instead of
    DirChanged for more reliable current working directory tracking.
    
    Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
    deathbeam committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    2c2256b View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. refactor: simplify cwd detection

    Turns out nvim_win_get_var was a drama queen, throwing exceptions
    whenever it couldn't find its precious variable - like a toddler having
    a meltdown when they can't find their favorite toy.
    
    Switched to vim.w, the more chill cousin who just returns nil and goes
    about their day when something's missing. Now our code won't have an
    existential crisis just because cchat_cwd wasn't set for one window.
    
    No more exception-al behavior, just peaceful, quiet coding.
    liskin committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    903a66a View commit details
    Browse the repository at this point in the history
Loading