Giter Site home page Giter Site logo

Wrong color on popup windows about base16-nvim HOT 4 CLOSED

rrethy avatar rrethy commented on August 19, 2024
Wrong color on popup windows

from base16-nvim.

Comments (4)

pronvis avatar pronvis commented on August 19, 2024

Looks like it is telescope related issue (cause popup is from telescope).
Popup windows from https://github.com/ThePrimeagen/harpoon looks fine

from base16-nvim.

pronvis avatar pronvis commented on August 19, 2024

I found fix, but have no idea why it works:

require('base16-colorscheme').with_config({
    telescope = false,
})
require('base16-colorscheme').setup({
    base00 = '#2d2d2d',
    base01 = '#393939',
    base02 = '#515151',
    base03 = '#999999',
    base04 = '#b4b7b4',
    base05 = '#cccccc',
    base06 = '#e0e0e0',
    base07 = '#ffffff',
    base08 = '#f2777a',
    base09 = '#f99157',
    base0A = '#ffcc66',
    base0B = '#99cc99',
    base0C = '#66cccc',
    base0D = '#6699cc',
    base0E = '#cc99cc',
    base0F = '#a3685a'
})

Colors is default ones, so there is no reason to setup them, but if you remove it, then Telescope popup window will be not fixed.
So

require('base16-colorscheme').with_config({
    telescope = false,
})

alone does not do the job - have no idea why.

from base16-nvim.

RRethy avatar RRethy commented on August 19, 2024

Probably:

require('base16-colorscheme').with_config({
    telescope = false,
    telescope_borders = true,
})

from base16-nvim.

pronvis avatar pronvis commented on August 19, 2024

@RRethy thanks, but for some reason now it works even without colors rewrites. Dont know why.
I moved to lazy_vim instead of packer & use this to set theme in nvim:

local fn = vim.fn
local cmd = vim.cmd
local set_theme_path = "$HOME/.config/tinted-theming/set_theme.lua"
local is_set_theme_file_readable = fn.filereadable(fn.expand(set_theme_path)) == 1 and true or false

if is_set_theme_file_readable then
    cmd("let base16colorspace=256")
    cmd("source " .. set_theme_path)
end

from base16-nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.