diff --git a/config/nvim/lua/user/options.lua b/config/nvim/lua/user/options.lua index ff96953..23d6528 100644 --- a/config/nvim/lua/user/options.lua +++ b/config/nvim/lua/user/options.lua @@ -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 diff --git a/config/nvim/lua/user/plugins/treesitter.lua b/config/nvim/lua/user/plugins/treesitter.lua index 94bb375..1518f98 100644 --- a/config/nvim/lua/user/plugins/treesitter.lua +++ b/config/nvim/lua/user/plugins/treesitter.lua @@ -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, } diff --git a/config/nvim/lua/user/plugins/user.lua b/config/nvim/lua/user/plugins/user.lua index fa35ebb..e19f8a8 100644 --- a/config/nvim/lua/user/plugins/user.lua +++ b/config/nvim/lua/user/plugins/user.lua @@ -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 = { - [""] = actions.cycle_history_next, - [""] = actions.cycle_history_prev, - [""] = actions.move_selection_next, - [""] = 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, - }, }