From e6fed655e18343e6e399e8198346466effe8c3a8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 18 Mar 2021 22:19:57 +0100 Subject: Fix nvim lua scripts --- .config/nvim/lua/_telescope/init.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to '.config/nvim/lua/_telescope/init.lua') diff --git a/.config/nvim/lua/_telescope/init.lua b/.config/nvim/lua/_telescope/init.lua index 7466cd4..3d6df8e 100644 --- a/.config/nvim/lua/_telescope/init.lua +++ b/.config/nvim/lua/_telescope/init.lua @@ -25,14 +25,9 @@ require('telescope').setup { results_height = 1, results_width = 0.8, border = {}, - borderchars = { - { '─', '│', '─', '│', '┌', '┐', '┘', '└'}, - prompt = {"─", "│", " ", "│", '┌', '┐', "│", "│"}, - results = {"─", "│", "─", "│", "├", "┤", "┘", "└"}, - preview = { '─', '│', '─', '│', '┌', '┐', '┘', '└'}, - }, + borderchars = {'─', '│', '─', '│', '╭', '╮', '╯', '╰'}, color_devicons = true, - use_less = true, + use_less = true, set_env = {['COLORTERM'] = 'truecolor'}, -- default = nil, file_previewer = require'telescope.previewers'.vim_buffer_cat.new, grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new, @@ -47,6 +42,7 @@ require('telescope').setup { -- To disable a keymap, put [map] = false -- So, to not map "", just put -- [""] = false, + [""] = actions.close, -- Otherwise, just set the mapping to the function that you want it to be. -- [""] = actions.select_horizontal, @@ -60,7 +56,6 @@ require('telescope').setup { n = { [""] = actions.move_selection_next, [""] = actions.move_selection_previous - -- [""] = actions.close, -- [""] = my_cool_custom_action, } } @@ -76,8 +71,3 @@ require('telescope').setup { } } } - -vim.api.nvim_set_keymap('n', 'ff', 'lua require("telescope.builtin").find_files()', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', 'fg', 'lua require("telescope.builtin").live_grep()', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', 'fb', 'lua require("telescope.builtin").buffers()', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', 'fh', 'lua require("telescope.builtin").help_tags()', { noremap = true, silent = true }) -- cgit v1.2.3-70-g09d2