nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.03k stars 134 forks source link

Hyperlinks format doesn't work #798

Closed gazzaar closed 2 months ago

gazzaar commented 2 months ago

Describe the bug

when I insert new link with a description the actual link does not concealed in favor of the description. instead it looks like the normal format [[LINK]] or [[LINK][DESCRIPTION]]

SCR-20240819-bonq

Steps to reproduce

  1. insert link
  2. write a description
  3. save the file
  4. get the bug

Expected behavior

I expect to see just the description with underline that indicates that it's a link like this photo:

image

should be this

image

Emacs functionality

No response

Minimal init.lua

local tmp_dir = vim.env.TMPDIR or vim.env.TMP or vim.env.TEMP or '/tmp' local nvim_root = tmp_dir .. '/nvim_orgmode' local lazy_root = nvim_root .. '/lazy' local lazypath = lazy_root .. '/lazy.nvim'

-- Install lazy.nvim if not already installed if not 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-orgmode/orgmode', event = 'VeryLazy', ft = { 'org' }, config = function() require('orgmode').setup() end, }, }, { root = lazy_root, lockfile = nvim_root .. '/lazy.json', install = { missing = false, }, })

require('lazy').sync({ wait = true, show = false, })

Screenshots and recordings

No response

OS / Distro

macOS

Neovim version/commit

0.10.1

Additional context

No response

gazzaar commented 2 months ago

ok, It worked now after I added these two lines of code to my lua configuation.

vim.opt.conceallevel = 2
vim.opt.concealcursor = 'nc'