Comments (9)
@poloxue I guessed that vim-markdown is incompatible with the code "filetype indent on", when I comment the code "filetype indent on" in the .vimrc, the problem solved
from vim-markdown.
I temporaliy modified the code as follows:
function! s:IsMkdCode(lnum)
let name = synIDattr(synID(a:lnum, 1, 0), 'name')
return (name =~# '^mkd\%(Code$\|Snippet\)' || name !=# '' && name !~? '^\%(mkd\|html\)') || name == 'mkdListItem'
endfunction
I know this is not a nice way, but I don't understand its details. However, it's fixed. 😄
from vim-markdown.
I'm not able to duplicate this problem. What version of VIM are you running and what other plugins do you have that might be affecting this?
from vim-markdown.
Here @alerque.
macvim: mvim -v
VIM - Vi IMproved
~
~ version 9.0.1677
~ by Bram Moolenaar et al.
~ Vim is open source and freely distributable
from vim-markdown.
Hm. I'm on NeoVIM, so that's a major difference.
Anybody else able to confirm this on VIM 9? VIM 8? Or other NeoVIM users that can confirm/deny?
from vim-markdown.
@burninghg Of course if you disable all syntax-aware indentation the unexpected indentation will stop happening, but I don't think that's a resolution. This plugin should work with indentation features enabled even if it doesn't use them any/much. I'd consider this a bug and like to see it fixed, but I'm still at the point of not being able to replicate it.
from vim-markdown.
@alerque, I have this bug too. Neovim 0.9.4. No other plugins, almost empty config, my init.lua:
require("lazy").setup({
{
"preservim/vim-markdown",
ft = "markdown",
dependencies = "godlygeek/tabular",
},
})
vim.o.keymap = "russian-jcukenwin"
from vim-markdown.
I had this behavior as well. I un-installed the vim-polyglot plug-in and this solved the problem.
from vim-markdown.
- Isn't this feature expected? See Adjust new list item indent
- If your not interested with this feature, you could probably do
let g:vim_markdown_new_list_item_indent = 0
from vim-markdown.
Related Issues (20)
- left arrow highlighted in markdown HOT 2
- Nested list highlight broken for tabs HOT 2
- Basic Usage - za, zA documentation is incorrect
- code fenced block for lua not working well HOT 2
- Line-headings fails for `code` beginning lines HOT 4
- styles mis-matches closing symbols present inside a nested codeblock
- g:vim_markdown_auto_extension_ext not working for .qmd files HOT 1
- Enable checklist box toggle if mouse support is enabled? HOT 1
- is there any possible to indent `#` (shell comments) inside the code block via `>>`
- Link conceal not working with symbols in link text
- syntax higlighting always fails
- deleting parts of code blocks cause all folds to collapse
- Support highlighting multiple YAML blocks HOT 1
- Highlighting \[...\] pairs in latex
- Support commonmark links with parentheses
- Disabling concealing of code blocks also disables concealing of inline code HOT 1
- Cursor in heading, show computed anchor for that heading? HOT 1
- Autocomplete heading anchors when creating links HOT 1
- URLs with parenthesis have invalid conceal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-markdown.