Added autocommands to toggle Limelight automatically

This commit is contained in:
Fabian Schmidt 2021-03-01 17:22:41 +01:00
parent c79fcf8678
commit 161cc068a2
4 changed files with 11 additions and 1 deletions

View File

@ -3,4 +3,5 @@
require('lua/plugins')
require('lua/settings')
require('lua/maps')
require('lua/commands')
require('lua/utils')

View File

@ -3,3 +3,8 @@
-- autocmd! User GoyoEnter Limelight
-- autocmd! User GoyoLeave Limelight!
-- command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
vim.cmd 'autocmd! User GoyoEnter Limelight'
vim.cmd 'autocmd! User GoyoLeave Limelight!'
vim.cmd 'command W :execute \':silent w !sudo tee % > /dev/null\' | :edit!'

View File

@ -12,3 +12,7 @@ paq 'kyazdani42/nvim-web-devicons'
paq 'doums/darcula'
paq 'junegunn/goyo.vim'
paq 'junegunn/limelight.vim'
-- lsp
paq 'neovim/nvim-lspconfig'
paq 'nvim-lua/completion-nvim'

View File

@ -46,7 +46,7 @@ bufferline.setup()
local function ColorDarcula()
lualine.options.theme = 'onedark'
limelight_conceal_ctermfg = 'DarkGray'
vim.g.limelight_conceal_ctermfg = 'gray'
cmd 'colorscheme darcula'
end