sopa0 / telescope-makefile Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
I import this extenstions alongside my other extensions using LazyVim:
return {
{
"nvim-telescope/telescope.nvim",
dependencies = {
"sopa0/telescope-makefile",
"LinArcX/telescope-ports.nvim",
"axkirillov/telescope-changed-files",
"LinArcX/telescope-env.nvim",
"nvim-lua/plenary.nvim",
"debugloop/telescope-undo.nvim",
{
"AckslD/nvim-neoclip.lua",
dependencies = {
-- you'll need at least one of these
-- {'nvim-telescope/telescope.nvim'},
-- { "ibhagwan/fzf-lua" },
},
config = function()
require("neoclip").setup()
end,
},
{
"nvim-telescope/telescope-live-grep-args.nvim",
version = "^1.0.0",
build = "make",
},
{
"nvim-telescope/telescope-media-files.nvim",
dependencies = {
"nvim-lua/popup.nvim",
},
},
},
[...]
}
And then inside lazy.lua
, I do load it like everything else:
require("telescope").load_extension("changed_files")
require("telescope").load_extension("undo")
require("telescope").load_extension("live_grep_args")
require("telescope").load_extension("harpoon")
require("telescope").load_extension("env")
require("telescope").load_extension("media_files")
require("telescope").load_extension("neoclip")
require("telescope").load_extension("make")
And whenever I open neovim, i receive this error + it can't find the command Telescope make:
Error detected while processing /Users/foo/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'make' extension doesn't exist or isn't installed: ...zy/telescope-makefile/lua/tel
escope/_extensions/make.lua:6: module 'toggleterm.terminal' not found:
no field package.preload['toggleterm.terminal']
cache_loader: module toggleterm.terminal not found
cache_loader_lib: module toggleterm.terminal not found
no file './toggleterm/terminal.lua'
no file '/opt/homebrew/share/luajit-2.1.0-beta3/toggleterm/terminal.lua'
no file '/usr/local/share/lua/5.1/toggleterm/terminal.lua'
no file '/usr/local/share/lua/5.1/toggleterm/terminal/init.lua'
no file '/opt/homebrew/share/lua/5.1/toggleterm/terminal.lua'
no file '/opt/homebrew/share/lua/5.1/toggleterm/terminal/init.lua'
no file './toggleterm/terminal.so'
no file '/usr/local/lib/lua/5.1/toggleterm/terminal.so'
no file '/opt/homebrew/lib/lua/5.1/toggleterm/terminal.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './toggleterm.so'
no file '/usr/local/lib/lua/5.1/toggleterm.so'
no file '/opt/homebrew/lib/lua/5.1/toggleterm.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: in function 'load_extension'
...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:62: in function 'load_extension'
/Users/foo/.config/nvim/lua/config/lazy.lua:82: in main chunk
[C]: in function 'require'
/Users/foo/.config/nvim/init.lua:2: in main chunk
I'm not too familiar with Telescope configuration, is this possible? Currently when I open the picker, if I hit to try to run the target in a vertically split terminal, it tries to open the target as if it's a filename, not a make target.
Error executing Lua callback: ...rt/telescope-makefile/lua/telescope/_extensions/make.lua:51: attempt to call field 'merge' (a nil value)
stack traceback:
...rt/telescope-makefile/lua/telescope/_extensions/make.lua:51: in function 'get_targets'
...rt/telescope-makefile/lua/telescope/_extensions/make.lua:66: in function <...rt/telescope-makefile/lua/telescope/_extensions/make.lua:65>
...ck/packer/start/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
...ck/packer/start/telescope.nvim/lua/telescope/command.lua:253: in function 'load_command'
...te/pack/packer/start/telescope.nvim/plugin/telescope.lua:109: in function <...te/pack/packer/start/telescope.nvim/plugin/telescope.lua:108>
This is a helpful plugin but I don't use nvim-toggleterm.
As I know, we can open a terminal with commamd :terminal
easily.
System:
Ubuntu 20.04 running in WSL2
zsh 5.8
Neovim 0.8.1
GNU Make 4.2.1
Description:
When executing :Telescope make
, I get an information message 'No make target` even with a proper Makefile in the current directory. After investigation it appears that my make version is incorrectly detected as being BSD.
I suspect this is some behavior difference between bash and zsh leading the bash expression in make.lua to produce an unexpectedly empty result.
I'll have a PR fixing this problem and #5 asap.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.