From ff48d8d86b7db641042b55041baa8a671e9bd93a Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 20 Jun 2023 15:40:41 +0300 Subject: [PATCH] wezterm, neovim: some lua magic --- cli/.config/nvim/lua/plugins.lua | 10 +++++++++- gui/.wezterm.lua | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cli/.config/nvim/lua/plugins.lua b/cli/.config/nvim/lua/plugins.lua index a2eebf2..cf705fc 100644 --- a/cli/.config/nvim/lua/plugins.lua +++ b/cli/.config/nvim/lua/plugins.lua @@ -25,10 +25,18 @@ end if require('packer_init').init(plugins) then return end --[[ plugins config ]] +if os.getenv('TERM'):match('linux') then + lualine_section_separators = { left = nil, right = nil } + lualine_component_separators = { left = '|', right = '|' } +else + lualine_section_separators = nil + lualine_component_separators = { left = '\u{2022}', right = '\u{2022}' } +end require('lualine').setup{ options = { icons_enabled = false, - component_separators = { left = '\u{2022}', right = '\u{2022}' } + section_separators = lualine_section_separators, + component_separators = lualine_component_separators } } diff --git a/gui/.wezterm.lua b/gui/.wezterm.lua index 313d4f0..03825dc 100644 --- a/gui/.wezterm.lua +++ b/gui/.wezterm.lua @@ -1,7 +1,7 @@ local wt = require('wezterm') local act = wt.action local font = 'VascadiaMod' -local harfbuzz_features = null +local harfbuzz_features = nil local fontsizes = { Darwin = 14, others = 11 } local theme = 'GruvboxDark' local overrides = {