Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Vogel 72fbadaf70 updated cokeline 2023-12-01 18:33:05 +01:00
Sven Vogel 97872a76d4 added setup script 2023-12-01 18:32:59 +01:00
2 changed files with 72 additions and 5 deletions

View File

@ -26,11 +26,20 @@ return {
end, end,
bold = function(buffer) bold = function(buffer)
return buffer.is_focused return buffer.is_focused
end end,
}, },
components = { components = {
{ {
text = function(buffer) return ' ' .. buffer.devicon.icon end, text = function(buffer)
if buffer.is_focused then
return ""
end
return " "
end,
fg = "Normal"
},
{
text = function(buffer) return buffer.devicon.icon end,
fg = function(buffer) return buffer.devicon.color end, fg = function(buffer) return buffer.devicon.color end,
}, },
{ {
@ -62,9 +71,46 @@ return {
components = { components = {
{ {
text = function(tabpage) text = function(tabpage)
return '' .. tabpage.number return ' ' .. tabpage.number .. ' '
end,
bg = function(tabpage)
if tabpage.is_active then
return "TabLineSel"
end end
} return "ColorColumn"
end,
fg = function(tabpage)
if tabpage.is_active then
return "TabLine"
end
return "Normal"
end,
bold = true
},
{
text = function(tabpage)
if tabpage.is_active then
return "󰅖 "
end
return ""
end,
on_click = function(_, _, _, _, tabpage)
tabpage:close()
end,
bg = function(tabpage)
if tabpage.is_active then
return "TabLineSel"
end
return "ColorColumn"
end,
fg = function(tabpage)
if tabpage.is_active then
return "TabLine"
end
return "Normal"
end,
bold = true
},
} }
}, },
sidebar = { sidebar = {
@ -72,6 +118,7 @@ return {
components = { components = {
{ {
text = "Explorer", text = "Explorer",
bg = "ColorColumn"
} }
}, },
}, },

20
setup-neovim.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env sh
printf "Continue copying files and removing current for Neovim (y/n)? "
read -r choice
case "$choice" in
y|Y )
echo "removing current neovim config..."
rm -rfv ~/.config/nvim/*
echo "copying files..."
cp -rv * ~/.config/nvim/
;;
n|N )
echo "aborting..."
exit 0
;;
* )
echo "invalid"
exit 1
;;
esac