<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/filetype.lua, branch tmp</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>feat(runtime)!: enable filetype.lua by default (#19216)</title>
<updated>2022-07-07T16:53:47+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-07-07T16:53:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=72877bb17d70362f91a60b31bf0244dbf8ed58ae'/>
<id>72877bb17d70362f91a60b31bf0244dbf8ed58ae</id>
<content type='text'>
* revert to filetype.vim by setting `g:do_legacy_filetype`
* skip either filetype.lua or filetype.vim via `g:did_load_filetypes`

(Running both is no longer required and therefore no longer supported.)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* revert to filetype.vim by setting `g:do_legacy_filetype`
* skip either filetype.lua or filetype.vim via `g:did_load_filetypes`

(Running both is no longer required and therefore no longer supported.)</pre>
</div>
</content>
</entry>
<entry>
<title>fix(filetype): remove call to vim.fn.resolve and pass filename to match function</title>
<updated>2022-07-06T14:25:51+00:00</updated>
<author>
<name>smjonas</name>
<email>jonas.strittmatter@gmx.de</email>
</author>
<published>2022-07-06T14:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f9683f28236599a7082f43304a9685fad8ee8e00'/>
<id>f9683f28236599a7082f43304a9685fad8ee8e00</id>
<content type='text'>
For example on MacOS, /etc/hostname.file is symlinked to
/private/etc/hostname.file. We only care about the original file path though.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For example on MacOS, /etc/hostname.file is symlinked to
/private/etc/hostname.file. We only care about the original file path though.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(filetype): fix filetype patterns</title>
<updated>2022-07-06T14:25:23+00:00</updated>
<author>
<name>smjonas</name>
<email>jonas.strittmatter@gmx.de</email>
</author>
<published>2022-07-06T14:25:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f3c78a4465942db62cf231b9eedc5107ad46e655'/>
<id>f3c78a4465942db62cf231b9eedc5107ad46e655</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(filetype)!: allow vim.filetype.match to use different strategies (#18895)</title>
<updated>2022-06-26T16:41:20+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-06-26T16:41:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f3ce06cfa139ca3fb142cf5adf96a2ecc4d8f551'/>
<id>f3ce06cfa139ca3fb142cf5adf96a2ecc4d8f551</id>
<content type='text'>
This enables vim.filetype.match to match based on a buffer (most
accurate) or simply a filename or file contents, which are less accurate
but may still be useful for some scenarios.

When matching based on a buffer, the buffer's name and contents are both
used to do full filetype matching. When using a filename, if the file
exists the file is loaded into a buffer and full filetype detection is
performed. If the file does not exist then filetype matching is only
performed against the filename itself. Content-based matching does the
equivalent of scripts.vim, and matches solely based on file contents
without any information from the name of the file itself (e.g. for
shebangs).

BREAKING CHANGE: use `vim.filetype.match({buf = bufnr})` instead 
of `vim.filetype.match(name, bufnr)`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This enables vim.filetype.match to match based on a buffer (most
accurate) or simply a filename or file contents, which are less accurate
but may still be useful for some scenarios.

When matching based on a buffer, the buffer's name and contents are both
used to do full filetype matching. When using a filename, if the file
exists the file is loaded into a buffer and full filetype detection is
performed. If the file does not exist then filetype matching is only
performed against the filename itself. Content-based matching does the
equivalent of scripts.vim, and matches solely based on file contents
without any information from the name of the file itself (e.g. for
shebangs).

BREAKING CHANGE: use `vim.filetype.match({buf = bufnr})` instead 
of `vim.filetype.match(name, bufnr)`</pre>
</div>
</content>
</entry>
<entry>
<title>feat(filetype): remove side effects from vim.filetype.match (#18894)</title>
<updated>2022-06-09T19:12:36+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-06-09T19:12:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=58323b1fe2e494cf6a75f108780e21c08996c08e'/>
<id>58323b1fe2e494cf6a75f108780e21c08996c08e</id>
<content type='text'>
Many filetypes from filetype.vim set buffer-local variables, meaning
vim.filetype.match cannot be used without side effects. Instead of
setting these buffer-local variables in the filetype detection functions
themselves, have vim.filetype.match return an optional function value
that, when called, sets these variables. This allows vim.filetype.match
to work without side effects.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many filetypes from filetype.vim set buffer-local variables, meaning
vim.filetype.match cannot be used without side effects. Instead of
setting these buffer-local variables in the filetype detection functions
themselves, have vim.filetype.match return an optional function value
that, when called, sets these variables. This allows vim.filetype.match
to work without side effects.</pre>
</div>
</content>
</entry>
<entry>
<title>chore: format runtime with stylua</title>
<updated>2022-05-09T14:31:55+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-05-09T09:23:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=aefdc6783cb77f09786542c90901a9e7120bea42'/>
<id>aefdc6783cb77f09786542c90901a9e7120bea42</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(ftdetect): source plugins in autogroup (#18237)</title>
<updated>2022-04-23T15:57:38+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-04-23T15:57:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5c53e29ca9f5e86dd905cae134c78aa341ead157'/>
<id>5c53e29ca9f5e86dd905cae134c78aa341ead157</id>
<content type='text'>
In `filetype.lua`, source runtime `ftdetect` scripts within the `filetypedetect` augroup, same as `filetype.vim` (and only do so if `g:did_load_ftdetect` does not exist).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In `filetype.lua`, source runtime `ftdetect` scripts within the `filetypedetect` augroup, same as `filetype.vim` (and only do so if `g:did_load_ftdetect` does not exist).</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use Lua autocommands in filetype.lua (#17711)</title>
<updated>2022-03-13T21:52:41+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-03-13T21:52:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f9f843e02e5a0a036caa35efa686897f0e04ee3c'/>
<id>f9f843e02e5a0a036caa35efa686897f0e04ee3c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(filetype): support scripts.vim with filetype.lua (#17517)</title>
<updated>2022-02-24T17:02:17+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-02-24T17:02:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=fdea15723fab6a3ee96218f13669d9f2e0a6d6d7'/>
<id>fdea15723fab6a3ee96218f13669d9f2e0a6d6d7</id>
<content type='text'>
When filetype.vim is disabled, create the autocommand that runs
scripts.vim in filetype.lua.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When filetype.vim is disabled, create the autocommand that runs
scripts.vim in filetype.lua.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(filetype): match on &lt;afile&gt; rather than &lt;abuf&gt; (#16943)</title>
<updated>2022-01-05T16:50:54+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-01-05T16:50:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f40ce3456313138f2e0f822da9676ed3bc51f608'/>
<id>f40ce3456313138f2e0f822da9676ed3bc51f608</id>
<content type='text'>
Filetype detection runs on BufRead and BufNewFile autocommands, both of
which can fire without an underlying buffer, so it's incorrect to use
&lt;abuf&gt; to determine the file path. Instead, match on &lt;afile&gt; and assume
that the buffer we're operating on is the current buffer. This is the
same assumption that filetype.vim makes, so it should be safe.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Filetype detection runs on BufRead and BufNewFile autocommands, both of
which can fire without an underlying buffer, so it's incorrect to use
&lt;abuf&gt; to determine the file path. Instead, match on &lt;afile&gt; and assume
that the buffer we're operating on is the current buffer. This is the
same assumption that filetype.vim makes, so it should be safe.</pre>
</div>
</content>
</entry>
</feed>
