Closed willthong closed 10 months ago
Realised this was a problem with the "preservim/vim-markdown" plugin. The setting can be fixed (let g:vim_markdown_new_list_item_indent = 0) but the plugin has some other problems (eg long bullet point text isn't indented sensibly as with default Vim).
Is there a way to enable Vim's default Markdown highlighting rather than relying on a plugin?
Hey @willthong, you're right this is definitely a vim-markdown
thing, and I find it counterintuitive as well. But vim-markdown
is not required for obsidian.nvim
to work, so feel free to exclude it.
Fantastic - thanks, I have excluded it.
Is there a reason Vim's built-in markdown syntax highlighting is disabled on Obsidian files? Thanks!
Is there a reason Vim's built-in markdown syntax highlighting is disabled on Obsidian files? Thanks!
Hmm, this is not intended 🤔 I'm not super familiar with Vim syntax stuff, but maybe our additional syntax highlighting rules are conflicting with Vim's built-in. I'll do some digging.
When I disable vim-markdown I still get some highlighting, but headers are not highlighted...
Our syntax files have been removed so I'm closing this.
🐛 Describe the bug
At the end of an unordered list, I hit 'o'. Expected behaviour without obsidian.nvim installed is to enter insert mode, start a new line, and the cursor is at a position matching the indentation of the previous line (0/4/8 etc).
However, with obsidian.nvim enabled, it always adds an extra level of indentation (4/8/12 etc). In case it helps for debugging, it seems to highlight the characters before the cursor on the line, but that highlight disappears as soon as I start typing.
Versions
NVIM v0.9.1 Build type: Release LuaJIT 2.1.0-beta3
Obsidian v1.11.0
local plugins = { "yonchu/accelerated-smooth-scroll", "iamcco/markdown-preview.nvim", { "overcache/NeoSolarized", lazy = false, priority = 1000, config = function() vim.cmd [[ colorscheme NeoSolarized ]] end }, "jose-elias-alvarez/null-ls.nvim", "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim", "tpope/vim-repeat", "mbbill/undotree", "tpope/vim-fugitive", "machakann/vim-highlightedyank", "lifepillar/vim-mucomplete", "tpope/vim-surround", "folke/which-key.nvim", "tpope/vim-commentary", "tpope/vim-unimpaired", "nvim-lualine/lualine.nvim", "kyazdani42/nvim-web-devicons", { "epwalsh/obsidian.nvim", event = { "BufReadPre /home/will/Seafile/Seafile/WillWiki/.md" }, -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand': -- event = { "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/.md" }, dependencies = { -- Required. "nvim-lua/plenary.nvim",
}