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

Inline markup not working #1461

Open
2 tasks done
VictorLemosR opened this issue Jun 11, 2024 · 4 comments
Open
2 tasks done

Inline markup not working #1461

VictorLemosR opened this issue Jun 11, 2024 · 4 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@VictorLemosR
Copy link

VictorLemosR commented Jun 11, 2024

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

0.10

Neorg setup

Lazy config

    "nvim-neorg/neorg",
    dependencies = { "luarocks.nvim" },
    lazy = false,
    version = "*",
    config = function ()
        local paths = require("victor.paths")
        local notes_folder = paths.notes_folder
        require("neorg").setup {
            load = {
                ["core.defaults"] = {},
                ["core.concealer"] = {
                    config = {
                        folds = true,
--                        icon_preset = "basic",
--                        init_open_folds = "always"
                    },
                },
        }
     end

Neorg configs inside ftplugin:

vim.opt_local.wrap = true
vim.opt_local.colorcolumn = "120"
vim.opt_local.textwidth = 120
vim.opt_local.spelllang = 'pt,en_us'
vim.opt_local.expandtab = false
vim.opt_local.foldenable = true
vim.opt_local.conceallevel = 2
vim.opt_local.concealcursor = "nv"

Treesitter lazy config:

    { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
    { 'nvim-treesitter/playground' },
    { 'nvim-treesitter/nvim-treesitter-context' },

    config = function ()
        require'nvim-treesitter.configs'.setup {
            ensure_installed = { "python", "lua", "query", "rust", "norg" },

            -- Install parsers synchronously (only applied to `ensure_installed`)
            sync_install = true,

            -- Automatically install missing parsers when entering buffer
            -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
            auto_install = true,

            highlight = {
                enable = true,
                additional_vim_regex_highlighting = false,
            },
        }

    end

My colorscheme config:

    {"sainnhe/sonokai", priority = 1000, lazy = false,
    config = function()
        -- check for other colors, they are all good
        vim.g.sonokai_style = "andromeda"
        vim.g.sonokai_better_performance = 1
        vim.g.sonokai_colors_override = {
            yellow = {'#d5b359', '107'},
        }
        vim.cmd('colorscheme sonokai')

    end

Actual behavior

Heading's formats works:
image
Inline markups don't:
image

As a side bug, To-do hotkeys don't work: or td, for example

Expected behavior

To work.

Steps to reproduce

  1. Installation was done via lazy.
  2. My terminal is wezterm
  3. I'm on windows
  4. Neovim 0.10
  5. Latest neorg (8.7.0 - even updated to the lastest version launched today 11-jun).

Other information

What I checked/tried:

  1. Treesitter highlight is enabled.
  2. Bold and itallic works in .md:
    image
  3. Checkhealth does not show any error and says concealer is ok:
    image
@VictorLemosR VictorLemosR added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jun 11, 2024
@ha5h6r000wn
Copy link

same here, can somebody fix it?

@max397574
Copy link
Contributor

max397574 commented Jul 9, 2024

try :Inspect when you're on it with the cursor and send the output
@ha5h6r000wn are you sure you have the same setup?
conceallevel set, concealer module loaded, treesitter highlighting enabled? those are common issues for this

@ha5h6r000wn
Copy link

sorry ,i missed out the line "vim.wo.conceallevel = 2", now it looks good?
image
Still, i find that the todo-item icons seems not aligned to the center. Is there any config to solve this issue? @max397574

@max397574
Copy link
Contributor

no
this just depends on your terminal and font

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

3 participants