mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 16:05:58 +01:00
Compare commits
5 commits
d02aa84f2f
...
c93f9e5022
Author | SHA1 | Date | |
---|---|---|---|
c93f9e5022 | |||
|
c957b23aaa | ||
c6c1094ed9 | |||
212ab55528 | |||
a2e757440e |
10 changed files with 88 additions and 2 deletions
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
|
@ -16,7 +16,7 @@ If you have any questions regarding those files, feel free to open an issue or [
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
The contribution process is mostly documented in the [pull request template](.github/pull_request_template.md). You will find a checklist of items to complete before submitting a pull request. Please make sure you complete it before submitting a pull request. If you are unsure about any of the items, please ask.
|
The contribution process is mostly documented in the [pull request template](pull_request_template.md). You will find a checklist of items to complete before submitting a pull request. Please make sure you complete it before submitting a pull request. If you are unsure about any of the items, please ask.
|
||||||
|
|
||||||
### Guidelines
|
### Guidelines
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ everyone.
|
||||||
|
|
||||||
[ts-error-translator.nvim]: https://github.com/dmmulroy/ts-error-translator.nvim
|
[ts-error-translator.nvim]: https://github.com/dmmulroy/ts-error-translator.nvim
|
||||||
[credo]: https://github.com/rrrene/credo
|
[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
|
- Add `deno fmt` as the default Markdown formatter. This will be enabled
|
||||||
automatically if you have autoformatting enabled, but can be disabled manually
|
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
|
- Add [python-lsp-server](https://github.com/python-lsp/python-lsp-server) as an
|
||||||
additional Python LSP server.
|
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):
|
[ppenguin](https://github.com/ppenguin):
|
||||||
|
|
||||||
- Telescope:
|
- Telescope:
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -508,6 +508,22 @@
|
||||||
"type": "github"
|
"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": {
|
"plugin-elixir-tools": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1807,6 +1823,7 @@
|
||||||
"plugin-diffview-nvim": "plugin-diffview-nvim",
|
"plugin-diffview-nvim": "plugin-diffview-nvim",
|
||||||
"plugin-dracula": "plugin-dracula",
|
"plugin-dracula": "plugin-dracula",
|
||||||
"plugin-dressing-nvim": "plugin-dressing-nvim",
|
"plugin-dressing-nvim": "plugin-dressing-nvim",
|
||||||
|
"plugin-edgy-nvim": "plugin-edgy-nvim",
|
||||||
"plugin-elixir-tools": "plugin-elixir-tools",
|
"plugin-elixir-tools": "plugin-elixir-tools",
|
||||||
"plugin-fastaction-nvim": "plugin-fastaction-nvim",
|
"plugin-fastaction-nvim": "plugin-fastaction-nvim",
|
||||||
"plugin-fidget-nvim": "plugin-fidget-nvim",
|
"plugin-fidget-nvim": "plugin-fidget-nvim",
|
||||||
|
|
|
@ -565,6 +565,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-edgy-nvim = {
|
||||||
|
url = "github:folke/edgy.nvim";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Assistant
|
# Assistant
|
||||||
plugin-chatgpt = {
|
plugin-chatgpt = {
|
||||||
url = "github:jackMort/ChatGPT.nvim";
|
url = "github:jackMort/ChatGPT.nvim";
|
||||||
|
|
|
@ -129,7 +129,7 @@ in {
|
||||||
description = ''
|
description = ''
|
||||||
Must be either a boolean or a path to your log file.
|
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 {
|
open_files_do_not_replace_types = mkOption {
|
||||||
type = listOf str;
|
type = listOf str;
|
||||||
default = ["terminal" "Trouble" "qf" "edgy"];
|
default = ["terminal" "Trouble" "qf" "edgy"];
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
./notifications
|
./notifications
|
||||||
./smartcolumn
|
./smartcolumn
|
||||||
./colorizer
|
./colorizer
|
||||||
|
./edgy-nvim
|
||||||
./illuminate
|
./illuminate
|
||||||
./breadcrumbs
|
./breadcrumbs
|
||||||
./borders
|
./borders
|
||||||
|
|
30
modules/plugins/ui/edgy-nvim/config.nix
Normal file
30
modules/plugins/ui/edgy-nvim/config.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
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"] ''
|
||||||
|
${optionalString cfg.setRecommendedNeovimOpts ''
|
||||||
|
-- Neovim options recommended by upstream.
|
||||||
|
-- Views can only be fully collapsed with the global statusline.
|
||||||
|
vim.o.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.o.splitkeep = "screen"
|
||||||
|
''}
|
||||||
|
|
||||||
|
require('edgy').setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/ui/edgy-nvim/default.nix
Normal file
6
modules/plugins/ui/edgy-nvim/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./edgy-nvim.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
21
modules/plugins/ui/edgy-nvim/edgy-nvim.nix
Normal file
21
modules/plugins/ui/edgy-nvim/edgy-nvim.nix
Normal 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`";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue