Merge pull request #233 from FrothyMarrow/fix-lua-highlighting

languages/lua: fix lua highlighting in several plugins
This commit is contained in:
NotAShelf 2024-02-20 16:10:03 +00:00 committed by GitHub
commit 94f18af742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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