aboutsummaryrefslogtreecommitdiff
path: root/Common
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-02-02 21:16:29 +0100
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-02-02 21:16:29 +0100
commit8f23f5ead2d6919ffdcdc3110c6855464d8d6384 (patch)
treee6e193d2dc525c564149a9a61d9d12b57da75b8b /Common
parente1b6d486dbde35f4377a077babfac9236c8a446f (diff)
downloaddotfiles-8f23f5ead2d6919ffdcdc3110c6855464d8d6384.tar.gz
dotfiles-8f23f5ead2d6919ffdcdc3110c6855464d8d6384.zip
bat theme
Diffstat (limited to 'Common')
-rwxr-xr-xCommon/nvim/lua/basic.lua2
-rwxr-xr-xCommon/nvim/lua/plugins.lua16
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)