Added autocommands to toggle Limelight automatically
This commit is contained in:
parent
c79fcf8678
commit
161cc068a2
1
init.lua
1
init.lua
@ -3,4 +3,5 @@
|
|||||||
require('lua/plugins')
|
require('lua/plugins')
|
||||||
require('lua/settings')
|
require('lua/settings')
|
||||||
require('lua/maps')
|
require('lua/maps')
|
||||||
|
require('lua/commands')
|
||||||
require('lua/utils')
|
require('lua/utils')
|
||||||
|
@ -3,3 +3,8 @@
|
|||||||
-- autocmd! User GoyoEnter Limelight
|
-- autocmd! User GoyoEnter Limelight
|
||||||
-- autocmd! User GoyoLeave Limelight!
|
-- autocmd! User GoyoLeave Limelight!
|
||||||
-- command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
-- 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!'
|
||||||
|
@ -12,3 +12,7 @@ paq 'kyazdani42/nvim-web-devicons'
|
|||||||
paq 'doums/darcula'
|
paq 'doums/darcula'
|
||||||
paq 'junegunn/goyo.vim'
|
paq 'junegunn/goyo.vim'
|
||||||
paq 'junegunn/limelight.vim'
|
paq 'junegunn/limelight.vim'
|
||||||
|
|
||||||
|
-- lsp
|
||||||
|
paq 'neovim/nvim-lspconfig'
|
||||||
|
paq 'nvim-lua/completion-nvim'
|
||||||
|
@ -46,7 +46,7 @@ bufferline.setup()
|
|||||||
|
|
||||||
local function ColorDarcula()
|
local function ColorDarcula()
|
||||||
lualine.options.theme = 'onedark'
|
lualine.options.theme = 'onedark'
|
||||||
limelight_conceal_ctermfg = 'DarkGray'
|
vim.g.limelight_conceal_ctermfg = 'gray'
|
||||||
cmd 'colorscheme darcula'
|
cmd 'colorscheme darcula'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user