mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
2 Commits
1608a36dd3
...
e53ee104ec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e53ee104ec | ||
|
|
671c78df9b |
@ -42,7 +42,7 @@ let g:Lf_UseMemoryCache = 0
|
|||||||
|
|
||||||
" Ignore certain files and directories when searching files
|
" Ignore certain files and directories when searching files
|
||||||
let g:Lf_WildIgnore = {
|
let g:Lf_WildIgnore = {
|
||||||
\ 'dir': ['.git', '__pycache__', '.DS_Store'],
|
\ 'dir': ['.git', '__pycache__', '.DS_Store', '*_cache'],
|
||||||
\ 'file': ['*.exe', '*.dll', '*.so', '*.o', '*.pyc', '*.jpg', '*.png',
|
\ 'file': ['*.exe', '*.dll', '*.so', '*.o', '*.pyc', '*.jpg', '*.png',
|
||||||
\ '*.gif', '*.svg', '*.ico', '*.db', '*.tgz', '*.tar.gz', '*.gz',
|
\ '*.gif', '*.svg', '*.ico', '*.db', '*.tgz', '*.tar.gz', '*.gz',
|
||||||
\ '*.zip', '*.bin', '*.pptx', '*.xlsx', '*.docx', '*.pdf', '*.tmp',
|
\ '*.zip', '*.bin', '*.pptx', '*.xlsx', '*.docx', '*.pdf', '*.tmp',
|
||||||
|
|||||||
13
init.lua
13
init.lua
@ -36,8 +36,13 @@ local core_conf_files = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- source all the core config files
|
-- source all the core config files
|
||||||
for _, name in ipairs(core_conf_files) do
|
for _, file_name in ipairs(core_conf_files) do
|
||||||
local path = string.format("%s/core/%s", vim.fn.stdpath("config"), name)
|
if vim.endswith(file_name, 'vim') then
|
||||||
local source_cmd = "source " .. path
|
local path = string.format("%s/core/%s", vim.fn.stdpath("config"), file_name)
|
||||||
vim.cmd(source_cmd)
|
local source_cmd = "source " .. path
|
||||||
|
vim.cmd(source_cmd)
|
||||||
|
else
|
||||||
|
local module_name, _ = string.gsub(file_name, "%.lua", "")
|
||||||
|
require(module_name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user