[nvim] Comment about why resolving symlinks is necessary in config/nvim/after/ftplugin/lua.lua

This commit is contained in:
Eryn Wells 2023-03-25 08:09:09 -07:00
parent f392afe533
commit 970ed67788

View file

@ -4,9 +4,9 @@ local expand = vim.fn.expand
local resolve = vim.fn.resolve
local stdpath = vim.fn.stdpath
-- My dotfiles are usually symlinks. Resolve them so the path comparison makes sense.
local configPath = resolve(stdpath("config"))
local fullPath = resolve(expand("%:p"))
if string.find(fullPath, configPath) == 1 then
vim.opt_local.path = {
".",