dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: adds fidget plugin
684abbce6f718fc39cdd4d43dab88bdc85b82195
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (3)
neovim/lua/bugabinga/nugu/init.lua
Modified 92 92 Whitespace { NonText },
93 93 NormalNC { Normal },
94 94 Pmenu { NormalFloat },
95 - PmenuSel {
fg = ui_important_local,
sp = ui_important_local,
bg = Pemnu.bg,
gui =
'bold underline' },
95 + PmenuSel {
fg = ui_important_local,
sp = ui_important_local,
bg = Pmenu.bg,
gui =
'bold underline' },
96 96 PmenuSbar {
bg = ui_unfocus },
97 97 PmenuThumb {
bg = ui_minor },
98 98 Question {
fg = ui_important_local,
gui =
'bold' },
neovim/lua/bugabinga/plugins/fidget.lua
Addednew file mode 100644 1 +local debug = require 'std.debug' 9 + suppress_on_insert =
false,
11 + log_handler =
debug.get,
15 + filter =
debug.get
and vim.log.levels.DEBUG,
16 + override_vim_notify =
true,
neovim/lua/bugabinga/plugins/heirline.lua
Modified 4 4 local icon
= require 'std.icon' 5 5 local auto
= require 'std.auto' 6 6 local ignored
= require 'std.ignored' 8 -local NEW_FILE
= '~new~' 8 +local NEW_FILE
= '~untitled~' 14 14 'nvim-tree/nvim-web-devicons',
15 15 'lewis6991/gitsigns.nvim',
16 + 'SmiteshP/nvim-navic',
17 18 config = function ()
18 19 local heirline
= require 'heirline' 28 29 command = function () utils.on_colorscheme( nugu )
end,
32 33 init =
function ( self )
33 34 self.mode
= vim.fn.mode(
1 )
107 - local file_icon
= {
108 + local file_icon
= {
108 109 init =
function ( self )
109 110 local filename
= self.filename
110 111 local extension
= vim.fn.fnamemodify( filename,
':e' )
116 117 hl
= 'DefaultIcon',
119 - local file_name
= {
120 + local file_name
= {
120 121 init =
function ( self )
121 122 self.lfilename
= vim.fs.normalize( vim.fn.fnamemodify( self.filename,
':.' ) )
122 123 if self.lfilename
== '' then self.lfilename
= NEW_FILE
end 139 - local file_flags
= {
140 + local file_flags
= {
141 142 condition =
function ()
142 143 return vim.bo.modified
156 - local file_name_block
= {
157 + local file_name_block
= {
157 158 init =
function ( self )
158 159 self.filename
= vim.fs.normalize( vim.api.nvim_buf_get_name(
0 ) )
165 166 {
provider =
'%<', },
168 - local file_type
= {
169 + local file_type
= {
169 170 provider =
function ()
170 171 return icon.file
.. ' ' .. string.
upper( vim.bo.filetype )
174 - local file_encoding
= {
175 + local file_encoding
= {
175 176 provider =
function ()
176 177 local enc
= (vim.bo.fenc
~= '' and vim.bo.fenc)
or vim.o.enc
177 178 return enc
~= 'utf-8' and enc:upper()
181 - local file_format
= {
182 + local file_format
= {
183 184 dos = icon.newline
.. icon.carriage_return,
184 185 unix = icon.newline,