Comments (1)
Hey, I'm also getting the same issue as described above. I'm running Ubuntu 22.04
with ZSH 5.9.0
using Nix Home Manager.
Were you able to figure out why this happens?
I've listed my configuration down below just in case there are any standard tools/plugins which we both have installed that may be causing this issue.
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
# I don't know why the highlighting doesn't work properly
enableSyntaxHighlighting = true;
envExtra = ''
export ZVM_INIT_MODE=sourcing
'';
initExtra = let
functionsDir = "${config.home.homeDirectory}/${config.programs.zsh.dotDir}/functions";
in ''
for conf in "${functionsDir}"/**/*.zsh; do
source "$conf"
done
# WezTerm
if [[ "$TERM_PROGRAM" == "WezTerm" ]]; then
TERM=wezterm
source $HOME/.config/wezterm/wezterm.sh
fi
source <(konf-go shellwrapper zsh)
source <(konf-go completion zsh)
# open last konf on new shell session
konf --silent set -
'';
dotDir = ".config/zsh";
oh-my-zsh = {
enable = true;
plugins = [
"colored-man-pages"
"colorize"
"docker"
"docker-compose"
"git"
"kubectl"
];
};
plugins = let
themepkg = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "zsh-syntax-highlighting";
rev = "06d519c20798f0ebe275fc3a8101841faaeee8ea";
sha256 = "sha256-Q7KmwUd9fblprL55W0Sf4g7lRcemnhjh4/v+TacJSfo=";
};
in [
{
name = "zsh-vi-mode";
src = pkgs.zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}
{
name = "zsh-nix-shell";
src = pkgs.zsh-nix-shell;
file = "share/zsh-nix-shell/nix-shell.plugin.zsh";
}
{
name = "nix-zsh-completions";
src = pkgs.nix-zsh-completions;
file = "share/nix-zsh-completions/nix-zsh-completions.plugin.zsh";
}
{
name = "ctp-zsh-syntax-highlighting";
src = themepkg;
file = themepkg + "/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh";
}
];
history = {
path = "${config.home.homeDirectory}/${config.programs.zsh.dotDir}/history";
};
};
};
from zsh-syntax-highlighting.
Related Issues (20)
- Syntax-highlighting of command will disappear after an unsuccessful completion HOT 6
- how do i disable "sudo" underline HOT 2
- file names and settings in docs don't match actual settings in files HOT 3
- The cursor is not displayed while moving in the Mate-terminal HOT 1
- How do I allow a certain command? HOT 3
- How to highlight the whole buffer HOT 1
- REGION_ACTIVE and command word relative precedence HOT 2
- history-expansion does not highlight & (previous substitution modifier) character HOT 2
- main highlighter does not highlight hashed directories with autocd and cdablevars set HOT 2
- Console log JSON HOT 2
- Error with termux and `setopt nocaseglob`, but works on other systems HOT 4
- Bug: Breaks `bindkey -a` with non-control characters HOT 4
- Installation documentation incomplete HOT 3
- Found and valid commands being highlighted red HOT 1
- Homebrew link 404 HOT 2
- Unable to highlight aliases that start with variables HOT 2
- Highlight `npx` as a command that runs other commands HOT 1
- Subcommand syntax highlighting HOT 8
- login user name disappeared after installing zsh-syntax in linux console !! 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 zsh-syntax-highlighting.