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

bug: indent_blankline not showing current_context_start #349

Closed
miguelbarao opened this issue May 11, 2023 · 0 comments · Fixed by #351
Closed

bug: indent_blankline not showing current_context_start #349

miguelbarao opened this issue May 11, 2023 · 0 comments · Fixed by #351
Labels
bug Something isn't working

Comments

@miguelbarao
Copy link

Neovim version (nvim -v)

0.9.0

Operating system/version

Ubuntu 22.04.2 LTS

Describe the bug

I'm using indent-blankline.nvim with the following settings:

show_current_context = true,
show_current_context_start = true,

This should highlight the current context and underlines the first line of the context.
It was working before the support for this plugin was added to nightfox. Now it only shows the context guide but not the context_start underline.

Steps To Reproduce

Just use the settings above in indent-blankline.nvim and see that the context_start is not underlined.
A complete configuration is setup below in repro.lua.

Expected Behavior

context start should be underlined.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "EdenEast/nightfox.nvim",
    lazy = false,
    priority = 10000,
    config = function()
      require("nightfox").setup({})
    end,
  },
  -- add any other plugins here
  {
    'lukas-reineke/indent-blankline.nvim',
    enabled = true,
    event = 'BufWinEnter',
    opts = {
      use_treesitter = true,
      char = '',
      context_char = '',
      show_first_indent_level = true,
      show_trailing_blankline_indent = true,
      show_end_of_line = true,
      show_current_context = true,
      show_current_context_start = true,
    },
    config = true,
  },
  {
    'nvim-treesitter/nvim-treesitter',
    enabled = true,
    version = false,
    build = ':TSUpdate',
    event = { 'BufReadPost', 'BufNewFile' },
    opts = {
      ensure_installed = { 'python' },
      auto_install = true,
      highlight = { enable = true, additional_vim_regex_highlighting = false },
      indent = { enable = true },                                      -- for the = operator
    },
    config = function(_, opts)
      require('nvim-treesitter.configs').setup(opts)
    end,
  }
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("nightfox")
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

Successfully merging a pull request may close this issue.

1 participant