Commit f633aca1 authored by Tim van Deurzen's avatar Tim van Deurzen

Move to which_key for keybindings and fix undopath.

parent d3cad310
Pipeline #33 failed with stages
in 1 minute and 17 seconds
-- Load all the configuration modules
require("core")
require("plugins")
require("lsp")
require("keybindings")
local function apply_buffer_window_options(options)
for k, v in pairs(options) do
if v == true or v == false then
vim.cmd('set ' .. k)
else
vim.cmd('set ' .. k .. '=' .. v)
end
end
end
local function basic_configuration()
options = {
hidden = true;
fileformats = "unix,mac,dos";
modeline = true;
modelines = 5;
whichwrap = "h,l,<,>,[,],~";
joinspaces = true;
mouse = "a";
incsearch = true;
hlsearch = true;
ignorecase = true;
smartcase = true;
history = 1000;
undofile = true;
undodir = "/home/tim/.local/share/nvim/undo";
undolevels = 1000;
backspace = "indent,eol,start";
syntax = "on";
fillchars = "vert:│";
termguicolors = true;
background = "dark";
ttyfast = true;
lazyredraw = true;
listchars = "tab:»·,nbsp:+,trail:·,extends:→,precedes:←";
showcmd = true;
ruler = true;
rulerformat = "%l/%L:%c";
equalalways = true;
splitbelow = true;
splitright = true;
wildmenu = true;
wildignore = "*.o,*.class,*.hi,*.pdf,*.git,*.blg,*.bbl,*.aux,*.gcno,*.gcda";
showmode = true;
laststatus = 2;
scrolloff = 7;
cmdheight = 2;
tabpagemax = 100;
timeout = true;
ttimeout = true;
timeoutlen = 100;
ttimeoutlen = 10;
shiftround = true;
encoding = "utf-8";
magic = true;
completeopt = "menuone,noselect";
shada = "!,'300,<50,@100,s10,h";
inccommand = "nosplit";
grepformat = "%f:%l:%c:%m";
grepprg = 'rg --hidden --vimgrep --smart-case --';
switchbuf = "usetab";
-- diffopt = "filler,iwhite,internal,algorithm:patience";
--showtabline = true;
pumheight = 15;
helpheight = 12;
previewheight = 12;
showbreak = "↳ ";
pumblend = 15;
winblend = 15;
langmap = "rs,RS,gt,GT,fe,FE,pr,PR,jy,JY,lu,LU,ui,UI,yo,YO,sd,SD,dg,DG,nj,NJ,ek,EK,il,IL,kn,KN,o\\;,O:,\\;p";
langnoremap = true;
}
buffer_window_options = {
formatoptions = "qroctn";
shiftwidth = 4;
tabstop = 4;
expandtab = true;
autoindent = true;
copyindent = true;
smarttab = true;
softtabstop = 4;
number = true;
relativenumber = true;
cursorline = true;
wrap = false;
signcolumn = "yes";
textwidth = 90;
}
-- global settings
vim.g.python_host_prog = '/usr/bin/python'
vim.g.python3_host_prog = '/usr/bin/python3'
vim.g.mapleader = " "
vim.api.nvim_set_keymap('n',' ','',{noremap = true})
vim.api.nvim_set_keymap('x',' ','',{noremap = true})
for name, value in pairs(options) do
vim.o[name] = value
end
apply_buffer_window_options(buffer_window_options)
end
basic_configuration()
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_back_space = function()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
return true
else
return false
end
end
-- Use (s-)tab to:
--- move to prev/next item in completion menuone
--- jump to prev/next snippet's placeholder
_G.tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-n>"
elseif check_back_space() then
return t "<Tab>"
else
return vim.fn['compe#complete']()
end
end
_G.s_tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-p>"
else
return t "<S-Tab>"
end
end
vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", {expr = true})
vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", {expr = true})
vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
require('keybindings.compe')
require('keybindings.which_key')
--- local bind = require('keybindings.utility')
--- local map_cr = bind.map_cr
--- local map_cu = bind.map_cu
--- local map_cmd = bind.map_cmd
--- local map_args = bind.map_args
---
--- local mappings = {
--- ["n|<Leader>pu"] = map_cr("PackerUpdate"):with_silent():with_noremap():with_nowait(),
--- ["n|<Leader>ps"] = map_cr("PackerSync"):with_silent():with_noremap():with_nowait(),
--- ["n|<Leader>bb"] = map_cu("Telescope buffers"):with_noremap():with_silent(),
--- ["n|<Leader>ee"] = map_cu("Telescope file_browser"):with_noremap():with_silent(),
--- ["n|<Leader>ma"] = map_cu("Lspsaga code_action"):with_noremap():with_silent(),
--- ["n|<Leader>tt"] = map_cr("NvimTreeToggle"):with_noremap():with_silent(),
---
--- ["i|<CR>"] = map_cmd([[compe#confirm('<CR>')]]):with_noremap():with_expr():with_nowait(),
---
--- -- ["i|<CR>"] = map_cmd([[compe#confirm({ 'keys': "\<Plug>delimitMateCR", 'mode': '' })]]):with_noremap():with_expr():with_nowait(),
--- -- -- person keymap
--- -- ["n|mf"] = map_cr("<cmd>lua require('internal.fsevent').file_event()<CR>"):with_silent():with_nowait():with_noremap();
--- -- ["n|gb"] = map_cr("BufferLinePick"):with_noremap():with_silent(),
--- -- -- Packer
--- -- ["n|<leader>pu"] = map_cr("PackerUpdate"):with_silent():with_noremap():with_nowait();
--- -- ["n|<leader>pi"] = map_cr("PackerInstall"):with_silent():with_noremap():with_nowait();
--- -- ["n|<leader>pc"] = map_cr("PackerCompile"):with_silent():with_noremap():with_nowait();
--- -- -- Lsp mapp work when insertenter and lsp start
--- -- ["n|<leader>li"] = map_cr("LspInfo"):with_noremap():with_silent():with_nowait(),
--- -- ["n|<leader>ll"] = map_cr("LspLog"):with_noremap():with_silent():with_nowait(),
--- -- ["n|<leader>lr"] = map_cr("LspRestart"):with_noremap():with_silent():with_nowait(),
--- -- ["n|<C-f>"] = map_cmd("<cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR>"):with_silent():with_noremap():with_nowait(),
--- -- ["n|<C-b>"] = map_cmd("<cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR>"):with_silent():with_noremap():with_nowait(),
--- -- ["n|[e"] = map_cr('Lspsaga diagnostic_jump_next'):with_noremap():with_silent(),
--- -- ["n|]e"] = map_cr('Lspsaga diagnostic_jump_prev'):with_noremap():with_silent(),
--- -- ["n|K"] = map_cr("Lspsaga hover_doc"):with_noremap():with_silent(),
--- -- ["n|ga"] = map_cr("Lspsaga code_action"):with_noremap():with_silent(),
--- -- ["v|ga"] = map_cu("Lspsaga range_code_action"):with_noremap():with_silent(),
--- -- ["n|gd"] = map_cr('Lspsaga preview_definition'):with_noremap():with_silent(),
--- -- ["n|gD"] = map_cmd("<cmd>lua vim.lsp.buf.implementation()<CR>"):with_noremap():with_silent(),
--- -- ["n|gs"] = map_cr('Lspsaga signature_help'):with_noremap():with_silent(),
--- -- ["n|gr"] = map_cr('Lspsaga rename'):with_noremap():with_silent(),
--- -- ["n|gh"] = map_cr('Lspsaga lsp_finder'):with_noremap():with_silent(),
--- -- ["n|gt"] = map_cmd("<cmd>lua vim.lsp.buf.type_definition()<CR>"):with_noremap():with_silent(),
--- -- ["n|<Leader>cw"] = map_cmd("<cmd>lua vim.lsp.buf.workspace_symbol()<CR>"):with_noremap():with_silent(),
--- -- ["n|<Leader>ce"] = map_cr('Lspsaga show_line_diagnostics'):with_noremap():with_silent(),
--- -- ["n|<Leader>ct"] = map_args("Template"),
--- -- ["n|<Leader>tf"] = map_cu('DashboardNewFile'):with_noremap():with_silent(),
--- -- -- Plugin nvim-tree
--- -- ["n|<Leader>e"] = map_cr('NvimTreeToggle'):with_noremap():with_silent(),
--- -- ["n|<Leader>F"] = map_cr('NvimTreeFindFile'):with_noremap():with_silent(),
--- -- -- Plugin MarkdownPreview
--- -- ["n|<Leader>om"] = map_cu('MarkdownPreview'):with_noremap():with_silent(),
--- -- -- Plugin DadbodUI
--- -- ["n|<Leader>od"] = map_cr('DBUIToggle'):with_noremap():with_silent(),
--- -- -- Plugin Floaterm
--- -- ["n|<A-d>"] = map_cu('Lspsaga open_floaterm'):with_noremap():with_silent(),
--- -- ["t|<A-d>"] = map_cu([[<C-\><C-n>:Lspsaga close_floaterm<CR>]]):with_noremap():with_silent(),
--- -- ["n|<Leader>g"] = map_cu("Lspsaga open_floaterm lazygit"):with_noremap():with_silent(),
--- -- -- Far.vim
--- -- ["n|<Leader>fz"] = map_cr('Farf'):with_noremap():with_silent();
--- -- ["v|<Leader>fz"] = map_cr('Farf'):with_noremap():with_silent();
--- -- -- Plugin Telescope
--- -- ["n|<Leader>bb"] = map_cu('Telescope buffers'):with_noremap():with_silent(),
--- -- ["n|<Leader>fa"] = map_cu('DashboardFindWord'):with_noremap():with_silent(),
--- -- ["n|<Leader>fb"] = map_cu('Telescope file_browser'):with_noremap():with_silent(),
--- -- ["n|<Leader>ff"] = map_cu('DashboardFindFile'):with_noremap():with_silent(),
--- -- ["n|<Leader>fg"] = map_cu('Telescope git_files'):with_noremap():with_silent(),
--- -- ["n|<Leader>fw"] = map_cu('Telescope grep_string'):with_noremap():with_silent(),
--- -- ["n|<Leader>fh"] = map_cu('DashboardFindHistory'):with_noremap():with_silent(),
--- -- ["n|<Leader>fl"] = map_cu('Telescope loclist'):with_noremap():with_silent(),
--- -- ["n|<Leader>fc"] = map_cu('Telescope git_commits'):with_noremap():with_silent(),
--- -- ["n|<Leader>ft"] = map_cu('Telescope help_tags'):with_noremap():with_silent(),
--- -- ["n|<Leader>fd"] = map_cu('Telescope dotfiles path='..os.getenv("HOME")..'/.dotfiles'):with_noremap():with_silent(),
--- -- ["n|<Leader>fs"] = map_cu('Telescope gosource'):with_noremap():with_silent(),
--- -- -- prodoc
--- -- ["n|gcc"] = map_cu('ProComment'):with_noremap():with_silent(),
--- -- ["x|gcc"] = map_cr('ProComment'),
--- -- ["n|gcj"] = map_cu('ProDoc'):with_silent():with_silent(),
--- -- -- Plugin acceleratedjk
--- -- ["n|j"] = map_cmd('v:lua.enhance_jk_move("j")'):with_silent():with_expr(),
--- -- ["n|k"] = map_cmd('v:lua.enhance_jk_move("k")'):with_silent():with_expr(),
--- -- -- Plugin QuickRun
--- -- ["n|<Leader>r"] = map_cr("<cmd> lua require'internal.quickrun'.run_command()"):with_noremap():with_silent(),
--- -- -- Plugin Vista
--- -- ["n|<Leader>v"] = map_cu('Vista'):with_noremap():with_silent(),
--- -- -- Plugin vim-operator-surround
--- -- ["n|sa"] = map_cmd("<Plug>(operator-surround-append)"):with_silent(),
--- -- ["n|sd"] = map_cmd("<Plug>(operator-surround-delete)"):with_silent(),
--- -- ["n|sr"] = map_cmd("<Plug>(operator-surround-replace)"):with_silent(),
--- -- -- Plugin hrsh7th/vim-eft
--- -- ["n|;"] = map_cmd("v:lua.enhance_ft_move(';')"):with_expr(),
--- -- ["x|;"] = map_cmd("v:lua.enhance_ft_move(';')"):with_expr(),
--- -- ["n|f"] = map_cmd("v:lua.enhance_ft_move('f')"):with_expr(),
--- -- ["x|f"] = map_cmd("v:lua.enhance_ft_move('f')"):with_expr(),
--- -- ["o|f"] = map_cmd("v:lua.enhance_ft_move('f')"):with_expr(),
--- -- ["n|F"] = map_cmd("v:lua.enhance_ft_move('F')"):with_expr(),
--- -- ["x|F"] = map_cmd("v:lua.enhance_ft_move('F')"):with_expr(),
--- -- ["o|F"] = map_cmd("v:lua.enhance_ft_move('F')"):with_expr(),
--- -- -- Plugin vim_niceblock
--- -- ["x|I"] = map_cmd("v:lua.enhance_nice_block('I')"):with_expr(),
--- -- ["x|gI"] = map_cmd("v:lua.enhance_nice_block('gI')"):with_expr(),
--- -- ["x|A"] = map_cmd("v:lua.enhance_nice_block('A')"):with_expr(),
--- };
---
--- bind.nvim_load_mapping(mappings)
local rhs_options = {}
function rhs_options:new()
local instance = {
cmd = '',
options = {
noremap = false,
silent = false,
expr = false,
nowait = false,
}
}
setmetatable(instance,self)
self.__index = self
return instance
end
function rhs_options:map_cmd(cmd_string)
self.cmd = cmd_string
return self
end
function rhs_options:map_cr(cmd_string)
self.cmd = (":%s<CR>"):format(cmd_string)
return self
end
function rhs_options:map_args(cmd_string)
self.cmd = (":%s<Space>"):format(cmd_string)
return self
end
function rhs_options:map_cu(cmd_string)
self.cmd = (":<C-u>%s<CR>"):format(cmd_string)
return self
end
function rhs_options:with_silent()
self.options.silent = true
return self
end
function rhs_options:with_noremap()
self.options.noremap = true
return self
end
function rhs_options:with_expr()
self.options.expr = true
return self
end
function rhs_options:with_nowait()
self.options.nowait = true
return self
end
local pbind = {}
function pbind.map_cr(cmd_string)
local ro = rhs_options:new()
return ro:map_cr(cmd_string)
end
function pbind.map_cmd(cmd_string)
local ro = rhs_options:new()
return ro:map_cmd(cmd_string)
end
function pbind.map_cu(cmd_string)
local ro = rhs_options:new()
return ro:map_cu(cmd_string)
end
function pbind.map_args(cmd_string)
local ro = rhs_options:new()
return ro:map_args(cmd_string)
end
function pbind.nvim_load_mapping(mapping)
for key,value in pairs(mapping) do
local mode,keymap = key:match("([^|]*)|?(.*)")
if type(value) == 'table' then
local rhs = value.cmd
local options = value.options
vim.api.nvim_set_keymap(mode,keymap,rhs,options)
end
end
end
return pbind
local wk = require('whichkey_setup')
local keymap = {
f = {
name = '+file',
f = {'<Cmd>Telescope file_browser<CR>', 'browser'},
},
b = {
name = '+buffer',
b = {'<Cmd>Telescope buffers<CR>', 'buffers'},
},
p = {
name = '+package',
u = {'<Cmd>PackerUpdate<CR>', 'update'},
s = {'<Cmd>PackerSync<CR>', 'sync'},
},
}
wk.register_keymap('leader', keymap)
-- b = {'<Cmd>Telescope buffers<CR>', 'buffers'},
-- h = {'<Cmd>Telescope help_tags<CR>', 'help tags'},
-- c = {
-- name = '+commands',
-- c = {'<Cmd>Telescope commands<CR>', 'commands'},
-- h = {'<Cmd>Telescope command_history<CR>', 'history'},
-- },
-- q = {'<Cmd>Telescope quickfix<CR>', 'quickfix'},
-- g = {
-- name = '+git',
-- g = {'<Cmd>Telescope git_commits<CR>', 'commits'},
-- c = {'<Cmd>Telescope git_bcommits<CR>', 'bcommits'},
-- b = {'<Cmd>Telescope git_branches<CR>', 'branches'},
-- s = {'<Cmd>Telescope git_status<CR>', 'status'},
-- },
require('lspconfig').gopls.setup{}
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
-- Color schemes
use {
'morhetz/gruvbox',
config = function()
vim.cmd[[colo gruvbox]]
end
}
use 'icymind/NeoSolarized'
use 'romgrk/doom-one.vim'
-- UI
use 'ntpeters/vim-better-whitespace'
use 'Yggdroot/indentLine'
use 'haya14busa/incsearch.vim'
use {
'junegunn/fzf.vim',
requires = {'junegunn/fzf'}
}
use {
'glepnir/galaxyline.nvim',
branch = 'main',
config = function()
require('statusline')
end,
requires = {'kyazdani42/nvim-web-devicons'}
}
use 'liuchengxu/vista.vim'
use {
'hrsh7th/nvim-compe',
config = function()
require('compe').setup {
enabled = true;
autocomplete = true;
debug = false;
min_length = 1;
preselect = 'enable';
throttle_time = 80;
source_timeout = 200;
incomplete_delay = 400;
max_abbr_width = 100;
max_kind_width = 100;
max_menu_width = 100;
documentation = true;
source = {
path = true;
buffer = true;
calc = true;
nvim_lsp = true;
nvim_lua = true;
vsnip = true;
};
}
end,
}
use 'kyazdani42/nvim-tree.lua'
use {
'AckslD/nvim-whichkey-setup.lua',
requires = {'liuchengxu/vim-which-key'}
}
-- Utilities
use 'editorconfig/editorconfig-vim'
use {'tjdevries/colorbuddy.vim', {'nvim-treesitter/nvim-treesitter', opt = true}}
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
}
use 'Chiel92/vim-autoformat'
-- LSP
use 'neovim/nvim-lspconfig'
use {
'RishabhRD/nvim-lsputils',
requires = {'RishabhRD/popfix'}
}
use {
'glepnir/lspsaga.nvim',
requires = {'neovim/nvim-lspconfig'},
config = function()
require('lspsaga').init_lsp_saga()
end
}
end)
local gl = require('galaxyline')
local gls = gl.section
local condition = require('galaxyline.condition')
local vcs = require('galaxyline.provider_vcs')
local buffer = require('galaxyline.provider_buffer')
local fileinfo = require('galaxyline.provider_fileinfo')
local diagnostic = require('galaxyline.provider_diagnostic')
local lspclient = require('galaxyline.provider_lsp')
local icons = require('galaxyline.provider_fileinfo').define_file_icon()
local colors = {
black = '#282828',
bblack = '#928374',
red = '#cc241d',
bred = '#fb4934',
green = '#98971a',
bgreen = '#b8bb26',
yellow = '#d79921',
byellow = '#fabd2f',
blue = '#458588',
bblue = '#83a598',
mangenta = '#b16286',
bmangenta = '#d3869b',
cyan = '#689d6a',
bcyan = '#8ec07c',
white = '#a89984',
bwhite = '#ebdbb2',
}
icons['man'] = {colors.green, ''}
gls.left = {
{
Mode = {
provider = function()
local alias = {n = 'NORMAL', i = 'INSERT', c = 'COMMAND', V= 'VISUAL', [''] = 'VISUAL'}
if not condition.hide_in_width() then
alias = {n = 'N', i = 'I', c = 'C', V= 'V', [''] = 'V'}
end
return string.format('  %s ', alias[vim.fn.mode()])
end,
highlight = {colors.black, colors.yellow, 'bold'},
}
},
{
GitIcon = {
provider = function() return '  ' end,
condition = function() return condition.check_git_workspace() and condition.hide_in_width() end,
highlight = {colors.black, colors.bblack}
}
},
{
GitBranch = {
provider = function() return string.format('%s ', vcs.get_git_branch()) end,
condition = function() return condition.check_git_workspace() and condition.hide_in_width() end,
highlight = {colors.black, colors.bblack}
}
},
{
DiffAdd = {
provider = vcs.diff_add,
icon = '+',
condition = function() return condition.check_git_workspace() and condition.hide_in_width() end,
highlight = {colors.black, colors.bblack}
}
},
{
DiffModified = {
provider = vcs.diff_modified,
icon = '~',
condition = function() return condition.check_git_workspace() and condition.hide_in_width() end,
highlight = {colors.black, colors.bblack}
}
},
{
DiffRemove = {
provider = vcs.diff_remove,
icon = '-',
condition = function() return condition.check_git_workspace() and condition.hide_in_width() end,
highlight = {colors.black, colors.bblack}
}
},
{
BlankSpace = {
provider = function() return ' ' end,
highlight = {colors.black, colors.black}
}
},
{
FileIcon = {
provider = fileinfo.get_file_icon,
condition = condition.buffer_not_empty,
highlight = {
fileinfo.get_file_icon_color,
colors.black
},
},
},
{
FileName = {
provider = function()
return string.format('%s| %s ', fileinfo.get_file_size(), fileinfo.get_current_file_name())
end,
condition = condition.buffer_not_empty,
highlight = {colors.bwhite, colors.black}
}
},
{
Blank = {
provider = function() return '' end,
highlight = {colors.black, colors.black}
}
}
}
gls.right = {
{
DiagnosticError = {
provider = diagnostic.get_diagnostic_error,
icon = '  ',
condition = function() return condition.check_active_lsp() and condition.hide_in_width() end,
highlight = {colors.red, colors.black}
},
},
{
DiagnosticWarn = {
provider = diagnostic.get_diagnostic_warn,
icon = '  ',
condition = function() return condition.check_active_lsp() and condition.hide_in_width() end,
highlight = {colors.yellow, colors.black}
},
},
{
DiagnosticHint = {
provider = diagnostic.get_diagnostic_hint,
icon = '  ',
condition = function() return condition.check_active_lsp() and condition.hide_in_width() end,
highlight = {colors.cyan, colors.black}
}
},
{
DiagnosticInfo = {
provider = diagnostic.get_diagnostic_info,
icon = '  ',
condition = function() return condition.check_active_lsp() and condition.hide_in_width() end,
highlight = {colors.cyan, colors.black}
}
},
{
LspStatus = {
provider = function() return string.format(' %s ', lspclient.get_lsp_client()) end,
icon = '  ',
condition = function() return condition.check_active_lsp() and condition.hide_in_width() end,
highlight = {colors.white, colors.black}
}
},
{
FileType = {
provider = function() return string.format(' %s ', buffer.get_buffer_filetype()) end,
condition = function() return buffer.get_buffer_filetype() ~= '' end,
highlight = {colors.white, colors.black}
}
},
{
FileFormat = {
provider = function() return string.format('  %s ', fileinfo.get_file_format()) end,
condition = condition.hide_in_width,
highlight = {colors.black, colors.white}
}
},
{
FileEncode = {
provider = function() return string.format('  %s ', fileinfo.get_file_encode()) end,
condition = condition.hide_in_width,
highlight = {colors.black, colors.bblack}
}
},
{
LineInfo = {
provider = function() return string.format('  %s ', fileinfo.line_column()) end,
highlight = {colors.black, colors.yellow}
}
},
}
gl.short_line_list = {'NvimTree'}
gls.short_line_left = {
{
BufferIcon = {
provider = function()
local icon = buffer.get_buffer_type_icon()
if icon ~= nil then
return string.format(' %s ', icon)
end
end,
highlight = {colors.white, colors.black}
}
},
{
BufferName = {
provider = function()
if vim.fn.index(gl.short_line_list, vim.bo.filetype) ~= -1 then
local filetype = vim.bo.filetype
if filetype == 'NvimTree' then
return ' Explorer '
end
else
if fileinfo.get_current_file_name() ~= '' then
return string.format(' %s %s| %s ', fileinfo.get_file_icon(), fileinfo.get_file_size() , fileinfo.get_current_file_name())
end
end
end,
separator = '',
highlight = {colors.white, colors.black}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment