mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-22 11:51:17 +00:00
Compare commits
No commits in common. "232824a8639fb165c1040b2c9234d15e3a830393" and "23e50a8eb71e6ffa6af4bfd3d65eb813048b0e5d" have entirely different histories.
232824a863
...
23e50a8eb7
9 changed files with 3 additions and 74 deletions
|
|
@ -199,7 +199,6 @@ isMaximal: {
|
||||||
};
|
};
|
||||||
images = {
|
images = {
|
||||||
image-nvim.enable = false;
|
image-nvim.enable = false;
|
||||||
img-clip.enable = isMaximal;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -347,8 +347,6 @@
|
||||||
- Fix default telescope ignore list entry for '.git/' to properly match
|
- Fix default telescope ignore list entry for '.git/' to properly match
|
||||||
- Add [gitlinker.nvim] plugin to `vim.git.gitlinker-nvim`
|
- Add [gitlinker.nvim] plugin to `vim.git.gitlinker-nvim`
|
||||||
- Add [nvim-treesitter-textobjects] plugin to `vim.treesitter.textobjects`
|
- Add [nvim-treesitter-textobjects] plugin to `vim.treesitter.textobjects`
|
||||||
- Default to disabling Conform for Rust if rust-analyzer is used
|
|
||||||
- To force using Conform, set `languages.rust.format.enable = true`.
|
|
||||||
|
|
||||||
[rrvsh](https://github.com/rrvsh):
|
[rrvsh](https://github.com/rrvsh):
|
||||||
|
|
||||||
|
|
@ -401,9 +399,3 @@
|
||||||
[solarized-osaka.nvim]: https://github.com/craftzdog/solarized-osaka.nvim
|
[solarized-osaka.nvim]: https://github.com/craftzdog/solarized-osaka.nvim
|
||||||
|
|
||||||
- Add [solarized-osaka.nvim] theme
|
- Add [solarized-osaka.nvim] theme
|
||||||
|
|
||||||
[img-clip.nvim]: https://github.com/hakonharnes/img-clip.nvim
|
|
||||||
|
|
||||||
- Add [img-clip.nvim] plugin in `vim.utility.images.img-clip` with `enable` and
|
|
||||||
`setupOpts`
|
|
||||||
- Add `vim.utility.images.img-clip.enable = isMaximal` in configuration.nix
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
inherit (builtins) attrNames;
|
inherit (builtins) attrNames;
|
||||||
inherit (lib.meta) getExe;
|
inherit (lib.meta) getExe;
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.trivial) boolToString;
|
inherit (lib.trivial) boolToString;
|
||||||
inherit (lib.lists) isList;
|
inherit (lib.lists) isList;
|
||||||
|
|
@ -68,14 +68,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
format = {
|
format = {
|
||||||
enable =
|
enable = mkEnableOption "Rust formatting" // {default = config.vim.languages.enableFormat;};
|
||||||
mkEnableOption "Rust formatting"
|
|
||||||
// {
|
|
||||||
default = !cfg.lsp.enable && config.vim.languages.enableFormat;
|
|
||||||
defaultText = literalMD ''
|
|
||||||
Disabled if Rust LSP is enabled, otherwise follows {option}`vim.languages.enableFormat`
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
description = "Rust formatter to use";
|
description = "Rust formatter to use";
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ in {
|
||||||
startPlugins = ["hardtime-nvim"];
|
startPlugins = ["hardtime-nvim"];
|
||||||
|
|
||||||
pluginRC.hardtime = entryAnywhere ''
|
pluginRC.hardtime = entryAnywhere ''
|
||||||
require("hardtime").setup(${toLuaObject cfg.setupOpts})
|
require("hardtime").setup (${toLuaObject cfg.setupOpts})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./image-nvim
|
./image-nvim
|
||||||
./img-clip
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.modules) mkIf;
|
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
|
||||||
|
|
||||||
cfg = config.vim.utility.images.img-clip;
|
|
||||||
in {
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
vim = {
|
|
||||||
startPlugins = [
|
|
||||||
"img-clip"
|
|
||||||
];
|
|
||||||
|
|
||||||
pluginRC.image-nvim = entryAnywhere ''
|
|
||||||
require("img-clip").setup(${toLuaObject cfg.setupOpts})
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./config.nix
|
|
||||||
./img-clip.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{lib, ...}: let
|
|
||||||
inherit (lib.options) mkEnableOption;
|
|
||||||
|
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
||||||
in {
|
|
||||||
options.vim.utility.images.img-clip = {
|
|
||||||
enable = mkEnableOption "img-clip to paste images into any markup language";
|
|
||||||
|
|
||||||
setupOpts = mkPluginSetupOption "img-clip" {};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -705,19 +705,6 @@
|
||||||
"url": "https://github.com/3rd/image.nvim/archive/4c51d6202628b3b51e368152c053c3fb5c5f76f2.tar.gz",
|
"url": "https://github.com/3rd/image.nvim/archive/4c51d6202628b3b51e368152c053c3fb5c5f76f2.tar.gz",
|
||||||
"hash": "16s1wsy9k72qiqzvwij67j2jzwgi6ggl6lhx9p6lfw8dpps3ayxg"
|
"hash": "16s1wsy9k72qiqzvwij67j2jzwgi6ggl6lhx9p6lfw8dpps3ayxg"
|
||||||
},
|
},
|
||||||
"img-clip": {
|
|
||||||
"type": "Git",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "hakonharnes",
|
|
||||||
"repo": "img-clip.nvim"
|
|
||||||
},
|
|
||||||
"branch": "main",
|
|
||||||
"submodules": false,
|
|
||||||
"revision": "08a02e14c8c0d42fa7a92c30a98fd04d6993b35d",
|
|
||||||
"url": "https://github.com/hakonharnes/img-clip.nvim/archive/08a02e14c8c0d42fa7a92c30a98fd04d6993b35d.tar.gz",
|
|
||||||
"hash": "0ani8z5pkvqmmalzcgyj27rfhqs76ivmpq79xn8rsdyy5a5fy979"
|
|
||||||
},
|
|
||||||
"indent-blankline-nvim": {
|
"indent-blankline-nvim": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
@ -882,7 +869,6 @@
|
||||||
"repo": "markview.nvim"
|
"repo": "markview.nvim"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
|
||||||
"revision": "6c92a6455e97c954a4a419265a032fedd69846f6",
|
"revision": "6c92a6455e97c954a4a419265a032fedd69846f6",
|
||||||
"url": "https://github.com/OXY2DEV/markview.nvim/archive/6c92a6455e97c954a4a419265a032fedd69846f6.tar.gz",
|
"url": "https://github.com/OXY2DEV/markview.nvim/archive/6c92a6455e97c954a4a419265a032fedd69846f6.tar.gz",
|
||||||
"hash": "01sw4iscnciyifpba4cwjb6fs95wrkk60xvqq67b8d5j8yb5449a"
|
"hash": "01sw4iscnciyifpba4cwjb6fs95wrkk60xvqq67b8d5j8yb5449a"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue