diff options
author | Squibid <me@zacharyscheiman.com> | 2024-01-30 21:52:24 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-01-30 21:52:24 -0500 |
commit | d94b454eb61a0d0a99f9939560506c2db24f3315 (patch) | |
tree | 52dd40a8d51a79896750fa0fd0ea85fd3445405f /after/plugin/telescope.lua | |
parent | e669b3eb8e27069ed0c52ea269e3c27debb989b6 (diff) | |
download | nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.tar.gz nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.tar.bz2 nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.zip |
way too lazy to sort this out, adding kitchen sink
Diffstat (limited to 'after/plugin/telescope.lua')
-rw-r--r-- | after/plugin/telescope.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 601a800..1f2d34a 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -48,7 +48,7 @@ telescope.setup { local extension = split_path[#split_path] return vim.tbl_contains(image_extensions, extension) end - if is_image(filepath) then + if is_image(filepath) and vim.fn.executable('chafa') == 1 then local term = vim.api.nvim_open_term(bufnr, {}) local function send_output(_, data, _) for _, d in ipairs(data) do @@ -57,7 +57,7 @@ telescope.setup { end vim.fn.jobstart({ 'chafa', '-C', 'on', '--animate', 'off', '-s', - (telescopew() - 10)..'x20', '--clear', filepath + '23x18', '--clear', filepath }, { on_stdout = send_output, stdout_buffered = true, pty = true }) a.nvim_set_option_value("number", false, { buf = bufnr }) else @@ -87,6 +87,7 @@ telescope.setup { telescope.load_extension('file_browser') telescope.load_extension('projects') telescope.load_extension('fzf') +telescope.load_extension('harpoon') a.nvim_create_autocmd('User', { pattern = 'TelescopePreviewerLoaded', |