[nvim] Move neovim config to /nvim
This commit is contained in:
parent
e45c1694af
commit
5b567ad2ad
28 changed files with 0 additions and 0 deletions
18
nvim/after/ftplugin/lua.lua
Normal file
18
nvim/after/ftplugin/lua.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
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 = {
|
||||
".",
|
||||
"",
|
||||
configPath .. "/**",
|
||||
}
|
||||
|
||||
vim.opt_local.suffixesadd:append(".lua")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue