Comments (8)
Maye you do not have a alacritty config file. Can you check if you have one?
from alacritty-colorscheme.
I do have one. It's under the path:
$HOME/.config/alacritty/alacritty.yml
from alacritty-colorscheme.
I fixed the problem. I had to manually add a theme in the alacritty.yml and after that the commands worked.
from alacritty-colorscheme.
I fixed the problem. I had to manually add a theme in the alacritty.yml and after that the commands worked.
How do you add a theme? How did you fix that exactly?
Neither of the documentations make this very clear. I think there is some room for improvement in that area.
Edit
Figured it out, but I had to do further search and found this site
https://draculatheme.com/alacritty
where the author suggested that you should add an import, like this
import:
- /path/to/dracula.yml
But since the whole purpose of this repository is to add/change themes, I dont think I should have entered to a completely irrelevant site to learn about this.
Can I contribute and add this extra but very important information?
from alacritty-colorscheme.
In the newer release, users do not need to add a "colors" section on alacritty config file.
The tool should be able to add a "colors" if there isn't one already defined.
Users do not need to add an import
manually.
The only requirement is that there should already be a user editable config file.
Could you share the alacritty version you are using and the alacritty config?
P.S. Yes, contributions are encouraged and you can contribute by creating a fork and submitting a PR.
from alacritty-colorscheme.
I can still produce this error on my machine
❯ alacritty-colorscheme --version
alacritty-colorscheme 1.0.1
No matter what arguments I pass except 'list'
❯ alacritty-colorscheme apply solarized_dark.yaml
Traceback (most recent call last):
File "/home/dimasirfandanu/.local/bin/alacritty-colorscheme", line 8, in <module>
sys.exit(main())
File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/cli.py", line 158, in main
handle_args(args)
File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/cli.py", line 147, in handle_args
replace_colorscheme(colors_path, args.config_file,
File "/home/dimasirfandanu/.local/lib/python3.10/site-packages/alacritty_colorscheme/colorscheme.py", line 72, in replace_colorscheme
config_yaml['colors'].update(colors_yaml['colors'])
TypeError: 'NoneType' object is not subscriptable
from alacritty-colorscheme.
alacritty-colorscheme apply solarized_dark.yaml
I have also the same exact problem
from alacritty-colorscheme.
This PR should fix the above issue as well #36
from alacritty-colorscheme.
Related Issues (20)
- Can't apply scheme: KeyError: 'colors' HOT 2
- Failed to synchronise neovim with alacritty HOT 6
- KeyError: 'colors' in case "colors" is not defined in alacritty configuration file HOT 1
- Crash when using --list-available with no colorschemes installed HOT 4
- AttributeError: __args__ on startup
- neovim detection on MacOS fails HOT 1
- Synchronisation with vim 8.2 fails HOT 2
- Requires python 3.8 but pyproject.toml has 3.6
- Support for sharkpd/bat HOT 2
- Issue with cli.py HOT 2
- Unite efforts with eendroroy/alacritty-theme HOT 1
- enable applying theme by name without knowing its file extension HOT 1
- toggle between colorschemes not working HOT 5
- unable to set theme without colors key in alacritty.yaml
- Error with bashrc HOT 1
- 256 themes not availible by name in nvim HOT 1
- Alacritty has changed to TOML format in it's config - so this does not work anymore! HOT 15
- Bad configuration file HOT 2
- Use yaml to parse config
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 alacritty-colorscheme.