mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 15:39:47 +01:00
reduce table size
This commit is contained in:
parent
94003faec6
commit
32d17bcc15
1 changed files with 6 additions and 12 deletions
|
@ -147,20 +147,14 @@ in {
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add standard paths to the table
|
-- Add standard paths to the table
|
||||||
addPath(vim.fn.stdpath('config')) -- $HOME/.config/nvim
|
addPath(vim.fn.stdpath('config')) -- $XDG_CONFIG_HOME
|
||||||
addPath(vim.fn.stdpath('data')) -- $HOME/.local/share
|
addPath(vim.fn.stdpath('data')) -- $XDG_DATA_HOME
|
||||||
addPath(vim.fn.stdpath('state')) -- $HOME/.local/state
|
addPath(vim.fn.stdpath('state')) -- $XDG_STATE_HOME
|
||||||
addPath(vim.fn.stdpath('cache')) -- $HOME/.cache/nvim
|
addPath(vim.fn.stdpath('cache')) -- $XDG_CACHE_HOME
|
||||||
addPath(vim.fn.stdpath('config_dirs'))
|
|
||||||
addPath(vim.fn.stdpath('data_dirs'))
|
|
||||||
|
|
||||||
|
-- Remove paths that are already in runtimepath
|
||||||
for _, path in ipairs(defaultRuntimePaths) do
|
for _, path in ipairs(defaultRuntimePaths) do
|
||||||
-- Check if the path exists in runtimepath before removing it
|
vim.opt.runtimepath:remove(path)
|
||||||
if vim.fn.index(vim.opt.runtimepath, path) >= 0 then
|
|
||||||
vim.opt.runtimepath:remove(path)
|
|
||||||
else
|
|
||||||
print("Path does not exist in runtimepath:", path)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue