Update generated neovim config
This commit is contained in:
@ -0,0 +1 @@
|
||||
.a-file
|
||||
@ -0,0 +1 @@
|
||||
A-file-2
|
||||
@ -0,0 +1 @@
|
||||
a-file
|
||||
@ -0,0 +1 @@
|
||||
b-file
|
||||
@ -0,0 +1,13 @@
|
||||
dofile('scripts/minimal_init.lua')
|
||||
|
||||
-- Make test more portable
|
||||
vim.cmd('source tests/dir-files/mock-win-functions.lua')
|
||||
vim.o.laststatus = 0
|
||||
|
||||
-- Ensure instance size
|
||||
vim.o.lines = 15
|
||||
vim.o.columns = 80
|
||||
|
||||
-- Set up module
|
||||
local use_as_default_explorer = os.getenv('USE_AS_DEFAULT_EXPLORER') == 'true'
|
||||
require('mini.files').setup({ options = { use_as_default_explorer = use_as_default_explorer } })
|
||||
@ -0,0 +1,10 @@
|
||||
return {
|
||||
get_icon = function(filename, _, options)
|
||||
if filename == 'LICENSE' then return '', 'DevIconLicense' end
|
||||
if filename == 'Makefile' then return '', 'DevIconMakefile' end
|
||||
if vim.endswith(filename, 'gif') then return '', 'DevIconGif' end
|
||||
if vim.endswith(filename, 'lua') then return '', 'DevIconLua' end
|
||||
if vim.endswith(filename, 'txt') then return '', 'DevIconTxt' end
|
||||
if (options or {}).default then return '', 'DevIconDefault' end
|
||||
end,
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
local mock_title = function(x)
|
||||
if type(x) ~= 'string' then return x end
|
||||
-- Make sure that full path title is same on any machine
|
||||
return x:gsub('^.*/tests/dir%-files', 'MOCK_ROOT/tests/dir-files')
|
||||
end
|
||||
|
||||
_G.nvim_open_win_orig = vim.api.nvim_open_win
|
||||
|
||||
vim.api.nvim_open_win = function(buf_id, enter, config)
|
||||
config.title = mock_title(config.title)
|
||||
return nvim_open_win_orig(buf_id, enter, config)
|
||||
end
|
||||
|
||||
_G.nvim_win_set_config_orig = vim.api.nvim_win_set_config
|
||||
|
||||
vim.api.nvim_win_set_config = function(win_id, config)
|
||||
config.title = mock_title(config.title)
|
||||
return nvim_win_set_config_orig(win_id, config)
|
||||
end
|
||||
@ -0,0 +1,3 @@
|
||||
VAR ?= 1
|
||||
|
||||
all: test
|
||||
@ -0,0 +1,5 @@
|
||||
local a = 1
|
||||
local t = {
|
||||
x = math.max(1, 2),
|
||||
y = math.min(1, 2),
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
Line 1
|
||||
Line 2
|
||||
Line 3
|
||||
Line 4
|
||||
Line 5
|
||||
Line 6
|
||||
Line 7
|
||||
Line 8
|
||||
Line 9
|
||||
Line 10
|
||||
Line 11
|
||||
Line 12
|
||||
Line 13
|
||||
Line 14
|
||||
Line 15
|
||||
Line 16
|
||||
Line 17
|
||||
Line 18
|
||||
Line 19
|
||||
Line 20
|
||||
Line 21
|
||||
Line 22
|
||||
Line 23
|
||||
Line 24
|
||||
Line 25
|
||||
Line 26
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 137 B |
Reference in New Issue
Block a user