From 970ed67788686ab2df1ad0564e5d7fedd9aa15f2 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 25 Mar 2023 08:09:09 -0700 Subject: [PATCH] [nvim] Comment about why resolving symlinks is necessary in config/nvim/after/ftplugin/lua.lua --- config/nvim/after/ftplugin/lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nvim/after/ftplugin/lua.lua b/config/nvim/after/ftplugin/lua.lua index 122b396..2deb764 100644 --- a/config/nvim/after/ftplugin/lua.lua +++ b/config/nvim/after/ftplugin/lua.lua @@ -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 = { ".",