Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .luarc.json

This file was deleted.

13 changes: 13 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"diagnostics": {
"globals": [
"dofile"
]
},
"workspace": {
"library": [
"$VIMRUNTIME",
"deps/mini.nvim"
]
}
}
6 changes: 6 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
line_endings = "Unix"
indent_type = "Tabs"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
164 changes: 1 addition & 163 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 2 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,19 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
gen-luarc.url = "github:mrcjkb/nix-gen-luarc-json";
};
outputs =
{
nixpkgs,
flake-utils,
gen-luarc,
...
}:
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
gen-luarc.overlays.default
];
};
luarc = pkgs.mk-luarc-json {
plugins = with pkgs.vimPlugins; [
mini-nvim
];
};
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
lua-language-server

Copilot AI Apr 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: .stylua.toml is added here, but the Nix devShell currently only includes lua-language-server. If you expect contributors using use flake/nix develop to run formatting, consider adding stylua to devShells.default.packages so the formatter is available in the dev environment.

Suggested change
lua-language-server
lua-language-server
stylua

Copilot uses AI. Check for mistakes.
];
shellHook = # bash
''
ln -fs ${luarc} .luarc.json
'';
};
}
);
Expand Down
3 changes: 1 addition & 2 deletions lua/zen/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ local function setup(options)
for _, integration in pairs(opts[position]) do
---@diagnostic disable-next-line: undefined-field
if type(integration) == "table" and integration.filetype == filetype then
local new_width =
math.max(opts[position].min_width, math.floor((vim.o.columns - opts.main.width) / 2))
local new_width = math.max(opts[position].min_width, math.floor((vim.o.columns - opts.main.width) / 2))
vim.api.nvim_win_set_width(buf_info[1].windows[1], new_width)
return
end
Expand Down
Loading