mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-26 22:34:44 +00:00
Merge pull request #1632 from snoweuph/docker
languages/docker: map dockercompose to yaml for treesitter
This commit is contained in:
commit
a6f49d9a4e
2 changed files with 8 additions and 3 deletions
|
|
@ -355,9 +355,6 @@
|
||||||
more flexibility in nvf and reuse of LSPs across languages. Dropped
|
more flexibility in nvf and reuse of LSPs across languages. Dropped
|
||||||
`deprecatedSingleOrListOf` in favor of `listOf` for the affected LSP options.
|
`deprecatedSingleOrListOf` in favor of `listOf` for the affected LSP options.
|
||||||
|
|
||||||
- Added {option}`vim.lsp.presets.docker-language-server.enable` for Docker
|
|
||||||
support.
|
|
||||||
|
|
||||||
- Added {option}`vim.lsp.presets.angular-language-server.enable` for Angular
|
- Added {option}`vim.lsp.presets.angular-language-server.enable` for Angular
|
||||||
Template support.
|
Template support.
|
||||||
|
|
||||||
|
|
@ -385,6 +382,11 @@
|
||||||
[poseidon-rises](https://github.com/poseidon-rises) for creating most of it in
|
[poseidon-rises](https://github.com/poseidon-rises) for creating most of it in
|
||||||
[!1104](https://github.com/NotAShelf/nvf/pull/1104).
|
[!1104](https://github.com/NotAShelf/nvf/pull/1104).
|
||||||
|
|
||||||
|
- Added {option}`vim.lsp.presets.docker-language-server.enable` for Docker
|
||||||
|
support.
|
||||||
|
|
||||||
|
- Mapped `dockercompose` to be highlighted by treesitter as `yaml`.
|
||||||
|
|
||||||
- Added [`mdformat`](https://mdformat.rtfd.io/) support to `languages.markdown`
|
- Added [`mdformat`](https://mdformat.rtfd.io/) support to `languages.markdown`
|
||||||
with the extensions for [GFM](https://github.github.com/gfm/),
|
with the extensions for [GFM](https://github.github.com/gfm/),
|
||||||
[front matter](https://www.markdownlang.com/advanced/frontmatter.html) and
|
[front matter](https://www.markdownlang.com/advanced/frontmatter.html) and
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,9 @@ in {
|
||||||
vim.treesitter = {
|
vim.treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
grammars = [cfg.treesitter.package];
|
grammars = [cfg.treesitter.package];
|
||||||
|
filetypeMappings = {
|
||||||
|
yaml = ["dockercompose"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue