basic structure, colorschemes and astrocore

This commit is contained in:
Prunebutt 2025-11-21 13:28:35 +01:00
commit dc02604cdf
10 changed files with 390 additions and 0 deletions

38
plugins/astrocore.nix Normal file
View file

@ -0,0 +1,38 @@
{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})
''
}

5
plugins/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./treesitter.nix
];
}

19
plugins/treesitter.nix Normal file
View file

@ -0,0 +1,19 @@
{
plugins = {
treesitter = {
enable = true;
nixGrammars = true;
settings = {
highlight.enable = true;
indent.enable = true;
};
};
treesitter-context = {
enable = true;
settings.max_lines = 2;
};
};
# rainbow-delimiters.enable = true;
}