Updated tresiiter config

This commit is contained in:
Christoffer Martinsson 2023-05-29 10:25:30 +02:00
parent 59fd9ddcc8
commit eade86c9b2
3 changed files with 13 additions and 44 deletions

View File

@ -7,7 +7,7 @@ return {
spell = false, -- sets vim.opt.spell
signcolumn = "auto", -- sets vim.opt.signcolumn to auto
wrap = false, -- sets vim.opt.wrap
textwidth = 250, -- sets vim.opt.textwidth
textwidth = 200, -- sets vim.opt.textwidth
},
g = {
mapleader = " ", -- sets vim.g.mapleader

View File

@ -4,6 +4,18 @@ return {
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
"lua",
"c",
"vim",
"bash",
"json",
"yaml",
"html",
"css",
"javascript",
"typescript",
"python",
"dockerfile",
"cpp",
})
end,
}

View File

@ -20,47 +20,4 @@ return {
}
end,
},
{
"nvim-telescope/telescope.nvim",
opts = function()
local actions = require "telescope.actions"
local get_icon = require("astronvim.utils").get_icon
return {
defaults = {
prompt_prefix = string.format("%s ", get_icon "Search"),
selection_caret = string.format("%s ", get_icon "Selected"),
path_display = { "truncate" },
sorting_strategy = "ascending",
layout_config = {
horizontal = {
prompt_position = "bottom",
preview_width = 0.55,
},
vertical = {
mirror = false,
},
width = 0.87,
height = 0.80,
preview_cutoff = 120,
},
mappings = {
i = {
["<C-n>"] = actions.cycle_history_next,
["<C-p>"] = actions.cycle_history_prev,
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
},
n = { ["q"] = actions.close },
},
},
}
end,
-- the first parameter is the plugin specification
-- the second is the table of options as set up in Lazy with the `opts` key
config = function(plugin, opts)
-- run the core AstroNvim configuration function with the options table
require "plugins.configs.telescope"(plugin, opts)
end,
},
}