I’m following TJ DeVries video about telescope and in 1:32:09
he is explaining how to use telescope.actions.state.get_current_entry
I tried this code in my config but it doesn’t work, It doesn’t break my config nor it gives me an error but it just does nothing
here is my code
config = function(_, _)
local actions = require "telescope.actions"
local telescope = require('telescope')
local action_state = require 'telescope.actions.state'
-- some code here
telescope.setup {
defaults = {
-- some code here
mappings = {
i = {
["<C-j>"] = actions.move_selection_next, -- works fine
["<C-k>"] = actions.move_selection_previous, -- works fine
["<c-a>"] = function()
print(vim.inspect(action_state.get_selected_entry)) -- it does nothing why ????
end,
}
}
},
}
end,
any help appreaciated