basic structure, colorschemes and astrocore
This commit is contained in:
commit
dc02604cdf
10 changed files with 390 additions and 0 deletions
38
plugins/astrocore.nix
Normal file
38
plugins/astrocore.nix
Normal 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
5
plugins/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./treesitter.nix
|
||||
];
|
||||
}
|
||||
19
plugins/treesitter.nix
Normal file
19
plugins/treesitter.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue