mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
goyo: init plugin
This commit is contained in:
parent
3624689305
commit
031e1c35f2
3 changed files with 34 additions and 0 deletions
|
@ -55,6 +55,10 @@
|
|||
enable = true;
|
||||
useUnicode = true;
|
||||
};
|
||||
plugins.goyo = {
|
||||
enable = true;
|
||||
showLineNumbers = true;
|
||||
};
|
||||
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
./utils/undotree.nix
|
||||
./utils/commentary.nix
|
||||
./utils/startify.nix
|
||||
./utils/goyo.nix
|
||||
|
||||
./languages/treesitter.nix
|
||||
|
||||
|
|
29
plugins/utils/goyo.nix
Normal file
29
plugins/utils/goyo.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, pkgs, ... }@attrs:
|
||||
let
|
||||
helpers = import ../helpers.nix { lib = lib; };
|
||||
in with helpers; with lib;
|
||||
mkPlugin attrs {
|
||||
name = "goyo";
|
||||
description = "Enable goyo.vim";
|
||||
extraPlugins = [ pkgs.vimPlugins.goyo-vim ];
|
||||
|
||||
options = {
|
||||
width = mkDefaultOpt {
|
||||
description = "Width";
|
||||
global = "goyo_width";
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
height = mkDefaultOpt {
|
||||
description = "Height";
|
||||
global = "goyo_height";
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
showLineNumbers = mkDefaultOpt {
|
||||
description = "Show line numbers when in Goyo mode";
|
||||
global = "goyo_linenr";
|
||||
type = types.bool;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue