[2024-05-09] Adding updated nvim config, stripping down .vimrc
This commit is contained in:
parent
a2b0423cc9
commit
762776ef54
6 changed files with 103 additions and 44 deletions
53
nvim/lua/plugins/feline.lua
Normal file
53
nvim/lua/plugins/feline.lua
Normal file
|
@ -0,0 +1,53 @@
|
|||
-- Initialize the components table
|
||||
local components = {
|
||||
active = {},
|
||||
inactive = {}
|
||||
}
|
||||
local config = {}
|
||||
-- Insert three sections (left, mid and right) for the active statusline
|
||||
table.insert(components.active, {})
|
||||
table.insert(components.active, {})
|
||||
table.insert(components.active, {})
|
||||
components.active[1][1] = {
|
||||
provider = 'vi_mode',
|
||||
hl = function()
|
||||
return {
|
||||
name = require('feline.providers.vi_mode').get_mode_highlight_name(),
|
||||
fg = require('feline.providers.vi_mode').get_mode_color(),
|
||||
style = 'bold'
|
||||
}
|
||||
end,
|
||||
right_sep = {
|
||||
str = 'right',
|
||||
hl = {
|
||||
fg = 'fg',
|
||||
bg = 'bg'
|
||||
}
|
||||
},
|
||||
|
||||
-- Uncomment the next line to disable icons for this component and use the mode name instead
|
||||
icon = ''
|
||||
}
|
||||
components.active[1][2] = {
|
||||
provider = 'line_percentage',
|
||||
hl = {
|
||||
fg = 'blue',
|
||||
},
|
||||
left_sep = {
|
||||
str = 'vertical_bar'
|
||||
}
|
||||
|
||||
}
|
||||
components.active[3][1] = {
|
||||
provider = 'time'
|
||||
}
|
||||
local custom_providers = {
|
||||
time = function()
|
||||
return tostring(vim.fn.strftime('%c'))
|
||||
end
|
||||
}
|
||||
config.components = components
|
||||
config.custom_providers = custom_providers
|
||||
local theme = require('themes.gruvbox')
|
||||
require('feline').setup(config)
|
||||
require('feline').use_theme(theme)
|
2
nvim/lua/plugins/gruvbox.lua
Normal file
2
nvim/lua/plugins/gruvbox.lua
Normal file
|
@ -0,0 +1,2 @@
|
|||
require('gruvbox').setup()
|
||||
vim.cmd("colorscheme gruvbox")
|
Loading…
Add table
Add a link
Reference in a new issue