profile
viewpoint
Adam Stankiewicz sheerun Poland http://sheerun.net :smile: :art: :musical_score: :telescope: :coffee: :earth_africa: :heart:

sheerun/ava-spec 149

Drop-in BDD helpers for AVA test runner :sparkler: [DEPRECATED, please use Jest!]

sheerun/awesome-data-engineering 2

A curated list of data engineering tools for software developers

sheerun/awesome-db 1

A curated list of amazingly awesome database libraries, resources and shiny things by https://www.numetriclabz.com/

AlanPieczonka/MovieAppNextJS 0

Simple web app created in order to learn NextJS, React and MobX

sheerun/accept-language-parser 0

It parses the accept-language header from an HTTP request

sheerun/active_merchant 0

Active Merchant is a simple payment abstraction library extracted from Shopify. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways.

sheerun/AdaIN-style 0

Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization

sheerun/age-clock 0

Support repository for "How old am I" OSX application. Please open issues with bugs and features.

sheerun/ale 0

Asynchronous Lint Engine

pull request commenttpope/vim-sleuth

Calculate shiftwidth by statistic indent changes

btw. algorithm works better if all lines at given indent are toward given "increment". For example consider first 64 lines of following c++ file: https://github.com/llvm/llvm-project/blob/master/clang/lib/AST/APValue.cpp

If you use this algorithm you get indent of 4, if you count all lines indented, not just number of indents, you get correct answer 2

chen3feng

comment created time in 5 hours

issue commentsheerun/vim-polyglot

/etc/hosts not detected as conf

if this will happen often enough I re-enable this behavior, but for now I'd like to improve list of such files

subnut

comment created time in 19 hours

pull request commentsheerun/vim-polyglot

Add config: g:polyglot_autoindent_guess_lines

I want to avoid creating filetype-specific detectors. I think it's just a matter of time until we find "correct" algorithm that works for almost all languages. It's matter designing one that can do the same as human does. i.e. Even if you did't know c++, why when you look at first 32 lines of this file you think correct indent is 2? In this case the answer is that most of indented code is at "difference" of 2, when counting each line. I've changed the algorithm to do just that. Is it ok now for everything?

gou4shi1

comment created time in 20 hours

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 78f6c8f318ad6ce429877498271d968961a83481

Improve autoindent heuristics (count diff of multiple lines of same indent)

view details

push time in 20 hours

issue commentsheerun/vim-polyglot

/etc/hosts not detected as conf

For now I've set it to conf but I wonder if there's better syntax for /etc/hosts somewhere there

subnut

comment created time in 21 hours

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 86bf33aa3bdaa836fbd1537d1ba6a63b58b088bd

Use conf for /etc/hosts, fixes #595

view details

push time in 21 hours

issue closedsheerun/vim-polyglot

/etc/hosts not detected as conf

<!-- Vim-polyglot is not responsible for bugs of plugins it uses. Please report only bugs that happen when plugin is used as part of vim-polyglot and doesn't happen when just install the plugin -->

Does this bug happen when you install plugin without vim-polyglot? No plugin for conf file is mentioned in the README, so... :shrug:

Describe the bug: If you open /etc/hosts file without vim-polyglot, it is detected as a conf file, which is correct. But after installing vim-polyglot, the filetype is not detected (i.e. set ft? returns filetype=)

To Reproduce: See above description

Minimal vimrc

call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
call plug#end()

closed time in 21 hours

subnut

issue commentsheerun/vim-polyglot

/etc/hosts not detected as conf

sorry, not hostconf

subnut

comment created time in 21 hours

issue commentsheerun/vim-polyglot

/etc/hosts not detected as conf

native vim sets conf filetype if one of first 5 lines begins with #... I've chosen to be more specific so conf would be set for files even if they don't have # in them. Also in this case filetype should be hostconf not conf

subnut

comment created time in 21 hours

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

what settings you are expecing to be recognized for file above? currently it's expandtab, ts=2, sw=2 which seems ok

iwijaya2

comment created time in 21 hours

IssuesEvent

pull request commentsheerun/vim-polyglot

Add config: g:polyglot_autoindent_guess_lines

Could you show example file that causes this issue?

gou4shi1

comment created time in a day

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha b64fcedd82f188e7951585c6dda5efc5f4a497b2

Count only increments in indent, also respect ftplugin settings

view details

push time in a day

release sheerun/vim-polyglot

v4.15.0

released time in a day

created tagsheerun/vim-polyglot

tagv4.15.0

A solid language pack for Vim.

created time in a day

CommitCommentEvent
CommitCommentEvent

pull request commenttpope/vim-sleuth

Calculate shiftwidth by statistic indent changes

I've implemented something like this in vim-polyglot:

https://github.com/sheerun/vim-polyglot/commit/903793ac04b9fbc06f3e0b6e63113a0dd4c87940

chen3feng

comment created time in a day

pull request commentsheerun/vim-polyglot

Add config: g:polyglot_autoindent_guess_lines

I'd rather avoid adding options. I proved heuristics algorithm and increased default number of lines to 64, could you check?

gou4shi1

comment created time in a day

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 903793ac04b9fbc06f3e0b6e63113a0dd4c87940

Improve indent heuristics (count increments / decrements), fixes #592

view details

push time in a day

issue closedsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

<!-- Vim-polyglot is not responsible for bugs of plugins it uses. Please report only bugs that happen when plugin is used as part of vim-polyglot and doesn't happen when just install the plugin -->

Does this bug happen when you install plugin without vim-polyglot? no

Describe the bug: Polyglot seems to overwrite the setting for tab size in neovim while editing fortran77 (fixed format) code. With polyglot enabled the tab size for fortran77 is 6. Removing the entire polyglot plugin fixed the issue. I tried disabling polyglot just for fortran with the following

let g:polyglot_disabled = ['fortran']

but it does not fixed the issue.

To Reproduce: Set tab size other than 6.

set tabstop=2

Install and enable polyglot, then try using tab in a fortran77 file.

closed time in a day

iwijaya2
CommitCommentEvent

release sheerun/vim-polyglot

v4.14.1

released time in a day

created tagsheerun/vim-polyglot

tagv4.14.1

A solid language pack for Vim.

created time in a day

CommitCommentEvent

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 71a21a1044370c58b3a8ac3cea7905cdd625220e

Use spaces instead of tabs

view details

push time in a day

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 1d7f0e4a7e0a6384cfbeaaa50e64779353be6f51

Remove non-relevant sensible settings https://github.com/sheerun/vim-polyglot/commit/233a817f05ba73574539ed7395bde49d183a807a

view details

push time in a day

CommitCommentEvent

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

Okay it's not yet fixed, what probably should be detected is:

smarttab
shiftwidth=2
tabstop=2 (unless changed?)

I wonder if you use 5-spaces continuation indent?

iwijaya2

comment created time in a day

pull request commenttpope/vim-sleuth

Calculate shiftwidth by statistic indent changes

btw. this is useful for example in fortran, where shiftwidth should be 2 even though first indent must be 6, here's code:

C      call DGEMM('T','N',3,3,3,1.d0,Fdef,3,Fdef,3,0.d0,Cdef,3)
      do j=1,ndm
        do k=1,ndm
          do i=1,ndm
            Cdef(i,j) = Cdef(i,j) + Fdef(k,i)*Fdef(k,j)
          enddo
        enddo
      enddo

Also in fortran there can be number in the first 6 characters, and continuation statement must be at 5 indents...

C AREA OF A TRIANGLE - HERON'S FORMULA
C INPUT - CARD READER UNIT 5, INTEGER INPUT
C OUTPUT -
C INTEGER VARIABLES START WITH I,J,K,L,M OR N
      READ(5,501) IA,IB,IC
  501 FORMAT(3I5)
      IF(IA.EQ.0 .OR. IB.EQ.0 .OR. IC.EQ.0) STOP 1
      S = (IA + IB + IC) / 2.0
      AREA = SQRT( S * (S - IA) * (S - IB) * (S - IC) )
      WRITE(6,601) IA,IB,IC,AREA
 2601 FORMAT(4H A= ,I5,5H  B= ,I5,5H  C= ,I5,8H  AREA= ,F10.2,
     $13H SQUARE UNITS)
      STOP
      END
chen3feng

comment created time in a day

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

I fixed it two ways: allowed again for 6-spaces indent, and I do not set tabstop if someone changed it. Still, could you explain why tabstop=2? It should not matter because indent is with spaces anyway

iwijaya2

comment created time in a day

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha ad2df97a644fd3bbddd5314a37c24c91bdd3b427

Allow 6-spaces indent and do not set tabstop if changed

view details

push time in a day

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

let g:polyglot_disabled = ['autoindent'] should be at the top of .vimrc maybe that's why it doesn't work

iwijaya2

comment created time in a day

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

One more thing, could you please explain why you are setting tabstop to 2? Tabs are not used in this file

iwijaya2

comment created time in a day

IssuesEvent

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

TIL thank you I'll fix it again

iwijaya2

comment created time in a day

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha fbeca0ed90a84dab705719fa3788391d88716b98

Change link to vim repository

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 8c1ec94a3cd749b9aaefe757605cabb63ed63a92

Change ascii art

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 5e2607d93f98e0394d1d68b1d6592b2d0a11f52f

Remove docs so docs of installed plugins are up to date

view details

Adam Stankiewicz

commit sha 5297baf28553a593518f47b1a941a9ea8540829a

Add doc for polyglot

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 3d80a66e7be229a014989b798fc4fad8e579946d

Move comment about polyglot_disabled

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 09808395683ecb082e65412861ef70ed6374984b

Prevent break in readme

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 4ab0bdd326bd99925676ec8fc2bd43b96620e8c5

Make readme little shorter

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha dbfcb6dca4a7ef9bb8969b10f4dd8c80dece1837

Mention I recommend using plug

view details

push time in 2 days

release sheerun/vim-polyglot

v4.14.0

released time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 6208384bd4b4306338ef4bfa0605cf182a424ee2

Improve syntax highlighting of the readme

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 225c408b02cbcd76463b7b040b6d719d00a0d013

Mention nocompatible in the .vimrc

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 71d9a2db9f0c2f8db0b7396b1b9d347e29214440

Add docs about sensible

view details

push time in 2 days

issue commentsheerun/vim-polyglot

nocompatible conflict options

I've made vim-polyglot to be able to load in non-compatible mode and added defaults from vim-sensible

bstaint

comment created time in 2 days

created tagsheerun/vim-polyglot

tagv4.14.0

A solid language pack for Vim.

created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 233a817f05ba73574539ed7395bde49d183a807a

Add vim-sensible defaults by default

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha c3e825027ddabecf18370df61c1da4018f017b7b

Allow vim-polyglot to load in non-compatible mode

view details

push time in 2 days

created tagsheerun/vimrc

tag1.1.0

Basic vim configuration for your .vimrc

created time in 2 days

push eventsheerun/vimrc

Adam Stankiewicz

commit sha 4dc864ba9292aae3b96c67f697439342a3679806

Move maploader to ftdetect if it is loaded first + formatting

view details

push time in 2 days

push eventsheerun/vimrc

Adam Stankiewicz

commit sha 30e2e070fac82a5c61090a6c590be719bb4f6cde

Fix indentation

view details

push time in 2 days

push eventsheerun/vimrc

Adam Stankiewicz

commit sha 192ebc1d889cd8ba32b5a6eae23dcdac8d811741

Update from upstream

view details

push time in 2 days

push eventsheerun/vimrc

Adam Stankiewicz

commit sha 99726529a02fa3295b8a4fad58bb9fe49429c052

Do not set expandtab by default

view details

push time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 3618414fad6ac488e89895810d3a3da3c3c1c6fd

Do not set tabstop by mistake

view details

push time in 2 days

pull request commentgithub/linguist

Restrict Vim modeline parsing to a single line

better late than never :D

jatoben

comment created time in 2 days

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

I've limited autodetection of indent to 2, 3, 4 or 8. This should fix your issue

iwijaya2

comment created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 88cae16fcad307d2a2c6d7f7ba6e4aecb1c8de0b

Autodetect only 2, 3, 4, or 8 space indent, fixes #592

view details

push time in 2 days

issue closedsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

<!-- Vim-polyglot is not responsible for bugs of plugins it uses. Please report only bugs that happen when plugin is used as part of vim-polyglot and doesn't happen when just install the plugin -->

Does this bug happen when you install plugin without vim-polyglot? no

Describe the bug: Polyglot seems to overwrite the setting for tab size in neovim while editing fortran77 (fixed format) code. With polyglot enabled the tab size for fortran77 is 6. Removing the entire polyglot plugin fixed the issue. I tried disabling polyglot just for fortran with the following

let g:polyglot_disabled = ['fortran']

but it does not fixed the issue.

To Reproduce: Set tab size other than 6.

set tabstop=2

Install and enable polyglot, then try using tab in a fortran77 file.

closed time in 2 days

iwijaya2

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

I see, it's probably something like this:

C AREA OF A TRIANGLE WITH A STANDARD SQUARE ROOT FUNCTION
C INPUT - TAPE READER UNIT 5, INTEGER INPUT
C OUTPUT - LINE PRINTER UNIT 6, REAL OUTPUT
C INPUT ERROR DISPLAY ERROR OUTPUT CODE 1 IN JOB CONTROL LISTING
      READ INPUT TAPE 5, 501, IA, IB, IC
  501 FORMAT (3I5)
C IA, IB, AND IC MAY NOT BE NEGATIVE OR ZERO
C FURTHERMORE, THE SUM OF TWO SIDES OF A TRIANGLE
C MUST BE GREATER THAN THE THIRD SIDE, SO WE CHECK FOR THAT, TOO
      IF (IA) 777, 777, 701
  701 IF (IB) 777, 777, 702
  702 IF (IC) 777, 777, 703
  703 IF (IA+IB-IC) 777, 777, 704
  704 IF (IA+IC-IB) 777, 777, 705
  705 IF (IB+IC-IA) 777, 777, 799
  777 STOP 1

the solution is to implement different indentation detection : https://github.com/tpope/vim-sleuth/pull/53

iwijaya2

comment created time in 2 days

issue commentsheerun/vim-polyglot

nocompatible conflict options

btw. polyglot enables syntax and filetype plugin on by itself, which is faster because it prevents loading ftdetect files two times: one of native vim, and one of vim-polyglot

bstaint

comment created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 6d7f437b84aa76e5a69d420565123f75b040f836

Do not set nocompatible mode, fixes #593

view details

push time in 2 days

issue closedsheerun/vim-polyglot

nocompatible conflict options

<!-- Vim-polyglot is not responsible for bugs of plugins it uses. Please report only bugs that happen when plugin is used as part of vim-polyglot and doesn't happen when just install the plugin -->

Does this bug happen when you install plugin without vim-polyglot?

Describe the bug: vimrc

filetype plugin on
syntax on
set nocompatible

silent! call plug#begin($VIM.'/vimfiles/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'Shougo/echodoc.vim'
set noshowmode

call plug#end()

let g:echodoc#enable_at_startup = 1

It 's will overwrite showmode verbose set showmode:

showmode
    Last set from D:\Portable\gvim\vimfiles\plugged\vim-polyglot\ftdetect\polyglot.vim line 14

To Reproduce:

closed time in 2 days

bstaint

issue commentsheerun/vim-polyglot

nocompatible conflict options

you're totally right, I overdid it. I need to find minimal options needed for polyglot to work and enable only them

bstaint

comment created time in 2 days

pull request commentvim/vim

Unify encoding of comments to utf-8

HUGE build is failing for unrelated reason

sheerun

comment created time in 2 days

pull request commentvim/vim

Fix encoding of runtime files

To anyone I've contacted and users of filetypes mentioned in this PR: there's https://github.com/vim/vim/pull/7092 which changes encoding only in comments. Could you please verify it doesn't break something for you?

sheerun

comment created time in 2 days

PR opened vim/vim

Unify encoding of comments to utf-8

This is followup to https://github.com/vim/vim/pull/7092

It fixes encoding of comments in runtime files to utf-8 (before some files used utf-8, and some latin-1 or iso-8869-1). Again, it changes only comments so there should be no breaking changes.. I can confirm it myself, as I've opened each of these filetypes. CI will probably pass. I've contacted authors of these files to verify by e-mail, but I don't know how to find actual users of these filetypes to confirm they have no issues with this change.

+23 -23

0 comment

19 changed files

pr created time in 2 days

create barnchsheerun/vim

branch : comments

created branch time in 2 days

created tagsheerun/queue

tagv1.0.1

Lightweight, thread-safe, blocking FIFO queue based on auto-resizing circular buffer

created time in 2 days

release sheerun/queue

v1.0.1

released time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha bb27d0efbfaafcf83af1596a8416e798ead8f96a

Add regression test

view details

push time in 2 days

push eventsheerun/queue

Sungyu Kang

commit sha c41e8356bcdac2e1ee0c657d4eb58dc5ec6f2af6

Fix: Append => Clean => Append Out of range I fixed the index out of range error when I did Append, Clean, and Append. ------------ Issue Code -------------- package main import ( "github.com/sheerun/queue" ) func main() { q := queue.New() for i := 0; i < 50; i++ { q.Append(i) } q.Clean() for i := 0; i < 50; i++ { q.Append(i) // Out of Range! } }

view details

gron1gh1

commit sha 696cf80023b5448ce427735a4a1e576e75b5646d

Update: queue_test.go

view details

Adam Stankiewicz

commit sha 3605a37f32d4576b53ac64c4524fdc04301b8391

Fix appending to queue after was cleaned

view details

push time in 2 days

PR merged sheerun/queue

Fix: Append => Clean => Append Out of range

I fixed the index out of range error when I did Append, Clean, and Append.


Issue Code

package main

import (
	"github.com/sheerun/queue"
)

func main() {
	q := queue.New()

	for i := 0; i < 50; i++ {
		q.Append(i)
	}
	q.Clean()
	for i := 0; i < 50; i++ {
		q.Append(i) // Out of Range!
	}
}
+17 -0

7 comments

2 changed files

gron1gh1

pr closed time in 2 days

pull request commentsheerun/queue

Fix: Append => Clean => Append Out of range

Perfect, thank you!

gron1gh1

comment created time in 2 days

pull request commentsheerun/queue

Fix: Append => Clean => Append Out of range

could you add new test instead of modifying old ones?

gron1gh1

comment created time in 2 days

issue commentsheerun/vim-polyglot

Write heuristics for all ambiguous extensions

among others, yes

sheerun

comment created time in 2 days

pull request commentsheerun/queue

Fix: Append => Clean => Append Out of range

Yes, I mean in here: https://github.com/sheerun/queue/blob/master/queue_test.go

gron1gh1

comment created time in 2 days

pull request commentsheerun/queue

Fix: Append => Clean => Append Out of range

Could you please add as well a failing test that this code fixes? Thank you!

gron1gh1

comment created time in 2 days

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

btw. the right disable is let g:polyglot_disabled = ['autoindent'] but I think I'll fix it very soon

iwijaya2

comment created time in 2 days

issue commentsheerun/vim-polyglot

Polyglot overwrite tab size for Fortran fixed format

could you please send the file contents? or at least only first part of it until the first indentation?

iwijaya2

comment created time in 2 days

issue commentsheerun/vim-polyglot

Conflict with context.vim

thank you it's fixed again, I'll add tests so it doesn't happen again. btw. are you updating vim-polyglot every 5 minutes or something? :))

ipod825

comment created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 8a790ac7bfc5b49d8ea43c625bb691cfa8a0ab0b

Leave only filetype detect for context, closes #575

view details

push time in 2 days

issue commentsheerun/vim-polyglot

NeoVim man pager cannot handle colours correctly after enabling vim-polyglot

Man, I was supposed to add only filetypes detection, thank you!

Frederick888

comment created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha c9f2aa9ae03cb5a0faa4101642b482dad67500ed

Leave only filetype detection for man, #576

view details

push time in 2 days

issue commentsheerun/vim-polyglot

Write heuristics for all ambiguous extensions

Could you send PR to linguist that removes this extension?

sheerun

comment created time in 2 days

pull request commentvim/vim

Fix encoding of runtime files

Is it OK if I'll send PR without tests that changes only comments in files?

sheerun

comment created time in 2 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 1fc249bafdc7937b97a62107302925e8f7062b3f

Set nocompatible mode instead of checking it

view details

push time in 3 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 518d733369fb6f2e4652e9649a78546ce6493079

Make sure custom scripts.vim are respected as well

view details

push time in 3 days

issue commentsheerun/vim-polyglot

Polyglot stops vimtex to load.

I think this needs other solution than changing the order, I'll leave it open for now

TornaxO7

comment created time in 3 days

IssuesEvent

issue commentsheerun/vim-polyglot

Vim can't detect markdown syntax if the file starts with a heading h1-h6

Gotcha. It should be fine now

gerardbm

comment created time in 3 days

created tagsheerun/vim-polyglot

tagv4.13.5

A solid language pack for Vim.

created time in 3 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha 00213842594d8262c35b64b03b176d6e831a6e94

Make sure polyglot_disable does not skip native vim files, fixes #591

view details

push time in 3 days

issue closedsheerun/vim-polyglot

Vim can't detect markdown syntax if the file starts with a heading h1-h6

<!-- Vim-polyglot is not responsible for bugs of plugins it uses. Please report only bugs that happen when plugin is used as part of vim-polyglot and doesn't happen when just install the plugin -->

The bug appeared after the last updates of the plugin vim-polyglot.

Vim can't detect the markdown syntax if you disable markdown syntax from the plugin and the file starts with a heading h.

Steps to reproduce:

  1. Add this line to your .vimrclet g:polyglot_disabled = ['markdown']
  2. Make a markdown file with a heading h1-h6 → ## Something
  3. Open that file with vim. Now the syntax is Something instead of markdown.

I don't understand some changes of this plugin, since it worked perfectly for the last years.

closed time in 3 days

gerardbm

issue commentsheerun/vim-polyglot

Vim can't detect markdown syntax if the file starts with a heading h1-h6

I mean, you disabled markdown syntax. You want vim-native highlighting, right/

gerardbm

comment created time in 3 days

created tagsheerun/vim-polyglot

tagv4.13.4

A solid language pack for Vim.

created time in 3 days

push eventsheerun/vim-polyglot

Adam Stankiewicz

commit sha af3ebda71002223b4bc6d4cc79a0359523eaa385

Fix tests

view details

push time in 3 days

issue commentsheerun/vim-polyglot

Error when idle in netrw

I've changed the implementation. I hope it helps, could you confirm?

xerocole

comment created time in 3 days

more