diff --git a/roles/neovim/files/after/plugin/twilight.lua b/roles/neovim/files/after/plugin/twilight.lua new file mode 100644 index 0000000..2cdb09c --- /dev/null +++ b/roles/neovim/files/after/plugin/twilight.lua @@ -0,0 +1,8 @@ +local status_ok, twilight = pcall(require, "twilight") +if not status_ok then + return +end + +twilight.setup { + context = 2, +} diff --git a/roles/neovim/files/after/plugin/zen-mode.lua b/roles/neovim/files/after/plugin/zen-mode.lua new file mode 100644 index 0000000..9fc9f8c --- /dev/null +++ b/roles/neovim/files/after/plugin/zen-mode.lua @@ -0,0 +1,25 @@ +local status_ok, zen_mode = pcall(require, "zen-mode") +if not status_ok then + return +end + +zen_mode.setup { + window = { + backdrop = .95, + height = 1, + width = 120, + options = { + relativenumber = false, + number = false, + signcolumn = "no", + } + }, + plugins = { + options = { + enabled = true, + ruler = false, + }, + gitsigns = { enabled = true }, + tmux = { enabled = true }, + } +} diff --git a/roles/neovim/files/lua/opdavies/plugins.lua b/roles/neovim/files/lua/opdavies/plugins.lua index d2ed204..4606127 100644 --- a/roles/neovim/files/lua/opdavies/plugins.lua +++ b/roles/neovim/files/lua/opdavies/plugins.lua @@ -19,6 +19,8 @@ return packer.startup(function() use 'christoomey/vim-sort-motion' use 'christoomey/vim-tmux-navigator' use 'editorconfig/editorconfig-vim' + use 'folke/twilight.nvim' + use 'folke/zen-mode.nvim' use 'icatalina/vim-case-change' use 'kyazdani42/nvim-web-devicons' use 'lewis6991/gitsigns.nvim'