epwalsh / epwalsh/obsidian.nvim
Tasks are not aligning properly when using prettier
- Dominant language
- Lua
- Stars
- 6.2k
- Forks
- 250
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Describe the bug
I am using neovim obsidian + prettier, I use conform.nvim to format the markdown files, I have a .prettierrc.json file as well in my vault's root. I have set `vim.opt.conceallevel = 1`, when it is set to 1 prettier doesn't format the tasks section of my notes well.
Without concealer = 1

With concealer = 1 (observe the gap marked with red rectangle).

### Config
{
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
ft = "markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md"
-- "BufReadPre path/to/my-vault/**.md",
-- "BufNewFile path/to/my-vault/**.md",
-- },
dependencies = {
-- Required.
"nvim-lua/plenary.nvim",
-- see below for full list of optional dependencies 👇
},
opts = {
workspaces = {
{
name = "personal",
path = "~/Desktop/exit-pod/personal-notes",
},
{
name = "work",
path = "~/Desktop/exit-pod/office-notes",
},
},
-- see below for full list of options 👇
},
}
### Environment
See the images in `Describe the bug` section.
Contributor guide
Research direction
No files or tests are identified in the report. First reproduce the task-formatting issue with Neovim, conceallevel 1, Obsidian.nvim, conform.nvim, and Prettier using the provided configuration; done means the tasks section aligns correctly while conceallevel remains 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, markdown, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100