fix: fix type
This commit is contained in:
parent
ab3a130351
commit
a83a8409cc
@ -3,7 +3,6 @@ local map = require('utils.map')
|
|||||||
local actions = require('telescope.actions')
|
local actions = require('telescope.actions')
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
local previewers = require('telescope.previewers')
|
local previewers = require('telescope.previewers')
|
||||||
local cmd = vim.cmd
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local function sizelimit_maker(filepath, bufnr, opts)
|
local function sizelimit_maker(filepath, bufnr, opts)
|
||||||
@ -27,7 +26,7 @@ function M.project_files(opts)
|
|||||||
if not ok then builtin.find_files(opts) end
|
if not ok then builtin.find_files(opts) end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.edit_config(opts)
|
function M.edit_config(_opts)
|
||||||
return M.project_files{
|
return M.project_files{
|
||||||
cwd = "~/.config/nvim",
|
cwd = "~/.config/nvim",
|
||||||
prompt_title = "Neovim config"
|
prompt_title = "Neovim config"
|
||||||
@ -50,7 +49,7 @@ map('n', '<leader>cs', [[:lua require('telescope.builtin').colorscheme()<cr>]],
|
|||||||
|
|
||||||
telescope.setup{
|
telescope.setup{
|
||||||
defaults = {
|
defaults = {
|
||||||
buffer_previewer_maker = new_maker,
|
buffer_previewer_maker = sizelimit_maker,
|
||||||
path_display = { "shorten" },
|
path_display = { "shorten" },
|
||||||
color_devicons = true,
|
color_devicons = true,
|
||||||
mappings = {
|
mappings = {
|
||||||
|
Loading…
Reference in New Issue
Block a user