{pkgs, lib,...}: let inherit lib.nixvim.lua.toLuaObject; options = { features = { large_buf = { size = 1024 * 256; lines = 10000 }; # set global limits for large files for disabling features like treesitter autopairs = true; # enable autopairs at start cmp = true; # enable completion at start diagnostics = { virtual_text = true; virtual_lines = false }; # diagnostic settings on startup highlighturl = true; # highlight URLs at start notifications = true; # enable notifications at start }; # Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { virtual_text = true; underline = true; }; # passed to `vim.filetype.add` # filetypes = { # # see `:h vim.filetype.add` for usage # extension = { # foo = "fooscript"; # }; # filename = { # [".foorc"] = "fooscript"; # }; # pattern = { # [".*/etc/foo/.*"] = "fooscript"; # }; # }; }; in { extraPlugins = [pkgs.vimPlugins.astrocore]; extraConfigLua = /*lua*/ '' require('astrocore').setup(${toLuaObject options}) '' }