From 8f23f5ead2d6919ffdcdc3110c6855464d8d6384 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Fri, 2 Feb 2024 21:16:29 +0100 Subject: bat theme --- Common/nvim/lua/basic.lua | 2 ++ Common/nvim/lua/plugins.lua | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'Common/nvim/lua') 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 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", silentnoremap) map("n", ";", ":Rg", silentnoremap) -- cgit v1.2.3