I am developing a Node.js project in Emacs 28.0.50 on macOS 10.15.7. I am using lsp-mode along with lsp-treemacs.

Using Treemacs 2.8, the NPM logo corresponding to package-lock.json is misaligned (everything shown is a top-level file):

misaligned npm logo

I tried troubleshooting by looking for an alist of filenames or types to different logos for Treemacs, but I could not find such an alist. I dug through all-the-icons, treemacs, and other packages, and the best lead I could find was the treemacs-icon-for-file function, but got stuck there.

Any insight would be much appreciated.

  • I have the same issue, unfortunately I wasn't able to fix it myself, but here are additional pieces of information : (Probably) Related: github.com/hlissner/emacs-doom-themes/issues/500 Also, this is not NPM-specific: It happens with any icon overwritten by (I think) lsp-mode, such as the Cargo.toml for a Rust project or the .project folder for a Java project. Jan 10 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.