2

I've installed telescope.nvim plugin for NeoVim. Now, I would like to put some configuration code related to this plugin in this file:

~/.config/nvim/lua/telescope.lua

In my init.lua file, I've loaded the plugin, and I've added this line, intending it to load my custom telescope.lua:

require('telescope')

However, this fails silently. I know think the problem is a name conflict with the telescope plugin. If I rename my file to something else, like ~/.config/nvim/lua/tt.lua, and change the line correspondingly, it works as expected:

require('tt')

Is there a way to load the file I intend, without running into naming conflicts? Can I do something like this in my init.lua file?

require('~/.config/nvim/lua/telescope.lua')

1 Answer 1

3

Most configs I've seen handle this by putting a my directory inside the lua directory. This would allow you to do:

require("my.telescope")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.