From 2f7a6eaf625042bfa029e7ad6ee79007e203e852 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 10 Sep 2021 14:45:16 +0200 Subject: [PATCH] [nvim] Added Arduino board display to lualine --- nvim/plugin/lualine.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nvim/plugin/lualine.lua b/nvim/plugin/lualine.lua index 15d7588..f7290ee 100644 --- a/nvim/plugin/lualine.lua +++ b/nvim/plugin/lualine.lua @@ -19,6 +19,16 @@ dotfiles_gruv.command.a.bg = colors[16].gui dotfiles_gruv.command.c.bg = colors[2].gui dotfiles_gruv.command.c.fg = colors[7].gui +dotfiles_gruv.replace.a.bg = colors[9].gui +dotfiles_gruv.replace.c.bg = colors[2].gui + +-- Displays the currently selected Arduino board +local function showBoard() + if vim.g.arduino_board then + return '[' .. vim.g.arduino_board .. ']' + end +end + require('lualine').setup{ options = { theme = dotfiles_gruv