mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-26 11:29:54 +00:00
languages/yaml: add treesitter filetype mappings for yml
This commit is contained in:
parent
2592c16878
commit
e201640fc9
2 changed files with 8 additions and 3 deletions
|
|
@ -287,7 +287,9 @@
|
|||
<https://github.com/nvim-treesitter/nvim-treesitter/blob/main/plugin/filetypes.lua>.
|
||||
This is mostly use full for Markdown code block injections.
|
||||
|
||||
- Added some Tree-sitter filetype mappings for `ash`, `dash` and `zsh`.
|
||||
- Added some Tree-sitter filetype mappings for:
|
||||
- `bash` = `ash`, `dash`, `zsh`
|
||||
- `yaml` = `yaml`
|
||||
|
||||
- Added `vim.lsp.presets.<name>` to contain LSP configurations. This allows for
|
||||
more flexibility in nvf and reuse of LSPs across languages. Dropped
|
||||
|
|
|
|||
|
|
@ -46,8 +46,11 @@ in {
|
|||
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
(mkIf cfg.treesitter.enable {
|
||||
vim.treesitter.enable = true;
|
||||
vim.treesitter.grammars = [cfg.treesitter.package];
|
||||
vim.treesitter = {
|
||||
enable = true;
|
||||
grammars = [cfg.treesitter.package];
|
||||
filetypeMappings.yaml = ["yml"];
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf cfg.lsp.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue