Comments (5)
Oh that's great. Yeah I tried again now it seems --nvim-args --clean --noplugin -n
solves the issue perfectly!
Just out of curious - is the reason we change the default behavior cuz most people actually prefer their config to be loaded :-P?
Thanks agian!
from kitty-scrollback.nvim.
Hi, first of all, thanks for making this, it's been my daily driver for the past few months.
Thanks, that is awesome to hear! 😸
I notice after upgrading to 4.0.0, there seems to be a quite noticeable delay after hitting the kitty_mod + h and before the rendering is ready.
This make sense to me if you previously did not load you Neovim configuration. Now that it is loading it, there will be some delay depending on your configuration.
it's trying to load the config even after setting the minimal config via --clean --noplugin -n,
This shouldn't happen. It is either a bug or misconfig, could you share your configuration (kitty.conf) for this?
my nvim config has something like this os.getenv("OPENAI_API_KEY"),, it will fail as well because it seems the scrollback can't read the ENVs
it seems the scrollback can't read the ENVs defined in my zshrc or other shell config.
This is a good point. Since it is opening nvim in an overlay window, those environment variables aren't copied over. I'll have to look into this to see if there is a way to copy that data. Kitty offers a --copy-env
flag that I use (https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/python/kitty_scrollback_nvim.py#L152), but at the point it is called the env already lost the information.
If you just need a few environment variables in kitty-scrollback.nvim, then you can do that via the --env
flag. It is not ideal, but something like this:
action_alias kitty_scrollback_nvim kitten /Users/mike/gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py --env OPENAI_API_KEY=yourkey
from kitty-scrollback.nvim.
it's trying to load the config even after setting the minimal config via --clean --noplugin -n,
FYI I just fixed a spot in the README that was missing --nvim-args
which may be why this didn't work for you.
--nvim-args --clean --noplugin -n
should work
from kitty-scrollback.nvim.
Oh that's great. Yeah I tried again now it seems
--nvim-args --clean --noplugin -n
solves the issue perfectly!
awesome
Just out of curious - is the reason we change the default behavior cuz most people actually prefer their config to be loaded :-P?
Good question, I'm not sure actually what most people prefer 😂. The reason I switched it is because I list a lot of configurations options on the page. However, when it is --clean --noplugin -n
, it doesn't load your config. So users were adding configs following the instructions and then not seeing them reflected. You could pass --no-nvim-args
at the time, but this was also confusing so I just removed that flag and swapped the default behavior. So at least now people can configure it following the instructions and choose to opt out.
Thanks for the feedback.
from kitty-scrollback.nvim.
Hey @lazywei I am closing this out. If you need any help feel free to reopen or create a new issue 👍
from kitty-scrollback.nvim.
Related Issues (20)
- chore: add test coverage for after_paste_window_ready callback HOT 1
- discussion: last_cmd_output is not producing output in tmux HOT 9
- Start in search mode HOT 1
- Feature Request: LLM Integration HOT 1
- bug: command-line window conflicts with mappings HOT 1
- chore: investigate nightly test failures
- bug: very small window causes E49: Invalid scroll size HOT 1
- bug: failure to open over kitten ssh HOT 4
- chore: add tests for ssh connections HOT 2
- chore: investigate flaky test failure with incorrect git branch HOT 1
- test: track and fix flaky CI tests HOT 2
- chore: kitty release 0.34.0 update test matrix HOT 1
- fix: fails to open over kitten ssh split window HOT 1
- feat: add nvim-terminal.lua integration
- bug: failed to launch child: nvim HOT 9
- Installation instructions HOT 1
- Bug: scrollback editing freezes when used with with auto-session HOT 1
- feat: replace ps1 prompt HOT 5
- feat: make the current cmdline editable in place HOT 7
- ci: update Neovim test matrix for v0.10 release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty-scrollback.nvim.