diff options
-rwxr-xr-x | Common/nvim/lua/basic.lua | 2 | ||||
-rwxr-xr-x | Common/nvim/lua/plugins.lua | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Common/nvim/lua/basic.lua b/Common/nvim/lua/basic.lua index 4c09fa6..ca59d1c 100755 --- a/Common/nvim/lua/basic.lua +++ b/Common/nvim/lua/basic.lua @@ -86,6 +86,8 @@ vim.api.nvim_set_hl(0, "ColorColumn", { ctermbg = 16 }) vim.cmd [[ colorscheme default ]] vim.opt.background = "light" vim.opt.termguicolors = true +-- No idea why, preview in fzf does at least work extremely porly without this +vim.cmd [[ let $BAT_THEME = 'gruvbox-light' ]] -- Workaround for gutter color, to remove background? vim.api.nvim_set_hl(0, "SignColumn", {link = "LineNr"}) diff --git a/Common/nvim/lua/plugins.lua b/Common/nvim/lua/plugins.lua index 65b7d05..e8b1409 100755 --- a/Common/nvim/lua/plugins.lua +++ b/Common/nvim/lua/plugins.lua @@ -80,9 +80,25 @@ return require('packer').startup(function(use) config = function() vim.cmd [[ let g:fzf_layout = { 'down': '40%' } + autocmd! FileType fzf autocmd FileType fzf set laststatus=0 noshowmode noruler \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler + + let g:fzf_colors = + \ { 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Comment'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Statement'], + \ 'info': ['fg', 'PreProc'], + \ 'border': ['fg', 'Ignore'], + \ 'prompt': ['fg', 'Conditional'], + \ 'pointer': ['fg', 'Exception'], + \ 'marker': ['fg', 'Keyword'], + \ 'spinner': ['fg', 'Label'], + \ 'header': ['fg', 'Comment'] } ]] map("n", ";", ":Files<cr>", silentnoremap) map("n", "<leader>;", ":Rg<cr>", silentnoremap) |