languages/lua: always include lua parser with treesitter

This commit is contained in:
Frothy 2024-02-20 00:37:45 -05:00
parent 60b0b400f7
commit 48c8f38a14

View file

@ -27,12 +27,13 @@ in {
}; };
}; };
config = mkIf cfg.enable (mkMerge [ config = mkMerge [
(mkIf cfg.treesitter.enable { (mkIf cfg.treesitter.enable {
vim.treesitter.enable = true; vim.treesitter.enable = true;
vim.treesitter.grammars = [cfg.treesitter.package]; vim.treesitter.grammars = [cfg.treesitter.package];
}) })
(mkIf cfg.enable (mkMerge [
(mkIf cfg.lsp.enable { (mkIf cfg.lsp.enable {
vim.lsp.lspconfig.enable = true; vim.lsp.lspconfig.enable = true;
vim.lsp.lspconfig.sources.lua-lsp = '' vim.lsp.lspconfig.sources.lua-lsp = ''
@ -55,5 +56,6 @@ in {
require("neodev").setup({}) require("neodev").setup({})
''; '';
}) })
]); ]))
];
} }