Compare commits

...

5 commits

Author SHA1 Message Date
raf
d5f842636d
Merge branch 'main' into get-edgy 2024-09-26 13:57:31 +00:00
200e9a33a2
docs: update release notes 2024-09-26 16:56:57 +03:00
ec805c2b44
filetree/neo-tree: document workaround for edgy & friends 2024-09-26 16:56:56 +03:00
edc50a3dcf
ui/edgy-nvim: init 2024-09-26 16:56:50 +03:00
Gerg-L
b4c06c71dc
docs: fix declerations (#381)
* docs: fix declerations

* fix: formatting for your baldness
2024-09-26 01:46:47 +03:00
10 changed files with 91 additions and 6 deletions

View file

@ -74,7 +74,7 @@
(lib.removePrefix (toString ../.))
(lib.removePrefix "/")
(x: {
url = "https://github.com/NotAShelf/nvf/blob/main/${decl}";
url = "https://github.com/NotAShelf/nvf/blob/main/${x}";
name = "<nvf/${x}>";
})
]

View file

@ -136,6 +136,7 @@ everyone.
[ts-error-translator.nvim]: https://github.com/dmmulroy/ts-error-translator.nvim
[credo]: https://github.com/rrrene/credo
[edgy.nvim]: https://github.com/folke/edgy.nvim
- Add `deno fmt` as the default Markdown formatter. This will be enabled
automatically if you have autoformatting enabled, but can be disabled manually
@ -187,6 +188,10 @@ everyone.
- Add [python-lsp-server](https://github.com/python-lsp/python-lsp-server) as an
additional Python LSP server.
- Add support for [edgy.nvim]. This can be enabled with
[](#opt-vim.ui.edgy-nvim.enable). Support for `edgy.nvim` should be considered
**experimental** as it conflicts with other plugins that modify the UI.
[ppenguin](https://github.com/ppenguin):
- Telescope:

View file

@ -508,6 +508,22 @@
"type": "github"
}
},
"plugin-edgy-nvim": {
"flake": false,
"locked": {
"lastModified": 1725089082,
"narHash": "sha256-KP8lA+HU3xtX5gOigROva65bf7YH+12EVPM185riJTk=",
"owner": "folke",
"repo": "edgy.nvim",
"rev": "7e8dedc39abebe40c289b8012cc89b11c69aa7a0",
"type": "github"
},
"original": {
"owner": "folke",
"repo": "edgy.nvim",
"type": "github"
}
},
"plugin-elixir-tools": {
"flake": false,
"locked": {
@ -1807,6 +1823,7 @@
"plugin-diffview-nvim": "plugin-diffview-nvim",
"plugin-dracula": "plugin-dracula",
"plugin-dressing-nvim": "plugin-dressing-nvim",
"plugin-edgy-nvim": "plugin-edgy-nvim",
"plugin-elixir-tools": "plugin-elixir-tools",
"plugin-fastaction-nvim": "plugin-fastaction-nvim",
"plugin-fidget-nvim": "plugin-fidget-nvim",

View file

@ -565,6 +565,11 @@
flake = false;
};
plugin-edgy-nvim = {
url = "github:folke/edgy.nvim";
flake = false;
};
# Assistant
plugin-chatgpt = {
url = "github:jackMort/ChatGPT.nvim";

View file

@ -8,7 +8,7 @@
# The core neovim modules.
# Contains configuration for core neovim features
# such as spellchecking, mappings, and the init script (init.vim).
neovim = map (p: "${./neovim}/${p}") [
neovim = map (p: ./neovim + "/${p}") [
"init"
"mappings"
];
@ -16,7 +16,7 @@
# Individual plugin modules, separated by the type of plugin.
# While adding a new type, you must make sure your type is
# included in the list below.
plugins = map (p: "${./plugins}/${p}") [
plugins = map (p: ./plugins + "/${p}") [
"assistant"
"autopairs"
"comments"
@ -46,7 +46,7 @@
# The neovim wrapper, used to build a wrapped neovim package
# using the configuration passed in `neovim` and `plugins` modules.
wrapper = map (p: "${./wrapper}/${p}") [
wrapper = map (p: ./wrapper + "/${p}") [
"build"
"rc"
"warnings"
@ -54,7 +54,7 @@
# Extra modules, such as deprecation warnings
# or renames in one place.
extra = map (p: "${./extra}/${p}") [
extra = map (p: ./extra + "/${p}") [
"deprecations.nix"
];
in

View file

@ -129,7 +129,7 @@ in {
description = ''
Must be either a boolean or a path to your log file.
Use :NeoTreeLogs to show the file
Use `:NeoTreeLogs` to show the file
'';
};
@ -143,6 +143,7 @@ in {
'';
};
# https://github.com/folke/edgy.nvim/discussions/4
open_files_do_not_replace_types = mkOption {
type = listOf str;
default = ["terminal" "Trouble" "qf" "edgy"];

View file

@ -5,6 +5,7 @@
./notifications
./smartcolumn
./colorizer
./edgy-nvim
./illuminate
./breadcrumbs
./borders

View file

@ -0,0 +1,29 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.strings) optionalString;
inherit (lib.nvim.dag) entryBefore;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.ui.edgy-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["edgy-nvim"];
pluginRC.edgy-nvim = entryBefore ["basic"] ''
require('edgy').setup(${toLuaObject cfg.setupOpts})
${optionalString cfg.setRecommendedNeovimOpts ''
-- views can only be fully collapsed with the global statusline
vim.opt.laststatus = 3
-- Default splitting will cause your main splits to jump when opening an edgebar.
-- To prevent this, set `splitkeep` to either `screen` or `topline`.
vim.opt.splitkeep = "screen"
''}
'';
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./edgy-nvim.nix
./config.nix
];
}

View file

@ -0,0 +1,21 @@
{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) bool;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.ui.edgy-nvim = {
enable = mkEnableOption "edgy.nvim for predefined window layouts";
setRecommendedNeovimOpts = mkOption {
type = bool;
default = false;
description = ''
Whether nvf should set `vim.opt.laststatus` and `vim.opt.splitkeep` to
values recommended by upstream to ensure maximum compatibility.
'';
};
setupOpts = mkPluginSetupOption "edgy" {
animate.enabled = mkEnableOption "animation support. Requires an animation library such as `mini.animate`";
};
};
}