feat: deprecate kommentary

This commit is contained in:
NotAShelf 2023-04-18 04:13:33 +03:00
parent 5941502e37
commit 008ea23033
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
3 changed files with 0 additions and 25 deletions

View file

@ -190,7 +190,6 @@ inputs: let
vim.comments = {
comment-nvim.enable = true;
kommentary. enable = false;
};
vim.presence = {

View file

@ -1,6 +1,5 @@
_: {
imports = [
./comment-nvim
./kommentary.nix # WARNING: WILL BE REMOVED IN THE NEXT MAJOR RELEASE
];
}

View file

@ -1,23 +0,0 @@
{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.comments.kommentary;
in {
options.vim.comments.kommentary = {
enable = mkEnableOption "Enable kommentary";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"kommentary"
];
vim.luaConfigRC.kommentary = nvim.dag.entryAnywhere ''
require('kommentary.config').use_extended_mappings()
'';
};
}