Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncolorized git diff commands #3130

Open
sineptic opened this issue May 21, 2024 · 0 comments
Open

uncolorized git diff commands #3130

sineptic opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sineptic
Copy link

sineptic commented May 21, 2024

Description

I use difftastic on my system as diff tool. When I call git diff in terminal output is colorized, but when I run :Telescope git_bcommits(or other command with preview) output only with 2 colors. I try to use difft --color=always, but telescope print escape symbols.

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1702233742

Operating system and version

OS: Arch Linux | Kernel: 6.8.5-arch1-1

Telescope version / branch / rev

telescope 0.1.7

checkhealth telescope

==============================================================================
telescope: health#telescope#check

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fd 10.1.0

===== Installed extensions ===== ~

Steps to reproduce

[diff]
    external = difft
  • try git diff in terminal(check that it works)
  • in neovim run :Telescope git_bcommits

Expected behavior

  1. colorize diff
  2. don't print escape symbols

Actual behavior

opposite

Minimal config

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
    {
        'nvim-telescope/telescope.nvim',
        tag = '0.1.7',
        dependencies = {
            'nvim-lua/plenary.nvim'
        },
    },
})
@sineptic sineptic added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant