diff --git a/init.lua b/init.lua index b73eca2e..6a03df82 100644 --- a/init.lua +++ b/init.lua @@ -1,15 +1,34 @@ --- disable netrw at the very start of your init.lua (strongly advised) vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 +vim.g.mapleader = " " +vim.g.maplocalleader = " " + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + + +require("lazy").setup("plugins", { + change_detection = { + notify = false, + }, +}) require 'user.options' require 'user.keymaps' -require 'user.plugins' require 'user.colorscheme' -require 'user.cmp' -require 'user.telescope' -require 'user.lsp' -require 'user.treesitter' -require 'user.autopairs' -require 'user.nvim-tree' -require 'user.bufferline' +-- require 'user.cmp' +-- require 'user.lsp' +-- require 'user.treesitter' +-- require 'user.autopairs' +-- require 'user.nvim-tree' +-- require 'user.bufferline' diff --git a/lua/user/autopairs.lua b/lua/Saved/autopairs.lua similarity index 100% rename from lua/user/autopairs.lua rename to lua/Saved/autopairs.lua diff --git a/lua/user/bufferline.lua b/lua/Saved/bufferline.lua similarity index 100% rename from lua/user/bufferline.lua rename to lua/Saved/bufferline.lua diff --git a/lua/user/cmp.lua b/lua/Saved/cmp.lua similarity index 100% rename from lua/user/cmp.lua rename to lua/Saved/cmp.lua diff --git a/lua/Saved/lazy.lua b/lua/Saved/lazy.lua new file mode 100644 index 00000000..efda595e --- /dev/null +++ b/lua/Saved/lazy.lua @@ -0,0 +1,37 @@ +-- Bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +-- Make sure to setup `mapleader` and `maplocalleader` before +-- loading lazy.nvim so that mappings are correct. +-- This is also a good place to setup other settings (vim.opt) +vim.g.mapleader = " " +vim.g.maplocalleader = " " + +-- My plugins here + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + install = { colorscheme = { "habamax" } }, + -- automatically check for plugin updates + checker = { enabled = true }, +}) diff --git a/lua/user/lsp/handlers.lua b/lua/Saved/lsp/handlers.lua similarity index 100% rename from lua/user/lsp/handlers.lua rename to lua/Saved/lsp/handlers.lua diff --git a/lua/user/lsp/init.lua b/lua/Saved/lsp/init.lua similarity index 100% rename from lua/user/lsp/init.lua rename to lua/Saved/lsp/init.lua diff --git a/lua/user/lsp/mason.lua b/lua/Saved/lsp/mason.lua similarity index 100% rename from lua/user/lsp/mason.lua rename to lua/Saved/lsp/mason.lua diff --git a/lua/user/lsp/null-ls.lua b/lua/Saved/lsp/null-ls.lua similarity index 100% rename from lua/user/lsp/null-ls.lua rename to lua/Saved/lsp/null-ls.lua diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/Saved/lsp/settings/jsonls.lua similarity index 100% rename from lua/user/lsp/settings/jsonls.lua rename to lua/Saved/lsp/settings/jsonls.lua diff --git a/lua/user/lsp/settings/lua_ls.lua b/lua/Saved/lsp/settings/lua_ls.lua similarity index 100% rename from lua/user/lsp/settings/lua_ls.lua rename to lua/Saved/lsp/settings/lua_ls.lua diff --git a/lua/user/lsp/settings/pyright.lua b/lua/Saved/lsp/settings/pyright.lua similarity index 100% rename from lua/user/lsp/settings/pyright.lua rename to lua/Saved/lsp/settings/pyright.lua diff --git a/lua/user/treesitter.lua b/lua/Saved/treesitter.lua similarity index 100% rename from lua/user/treesitter.lua rename to lua/Saved/treesitter.lua diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua deleted file mode 100644 index be0eb9d8..00000000 --- a/lua/custom/plugins/init.lua +++ /dev/null @@ -1,5 +0,0 @@ --- You can add your own plugins here or in other files in this directory! --- I promise not to create any merge conflicts in this directory :) --- --- See the kickstart.nvim README for more information -return {} diff --git a/lua/plugins.lua b/lua/plugins.lua new file mode 100644 index 00000000..1472c354 --- /dev/null +++ b/lua/plugins.lua @@ -0,0 +1,41 @@ +return { + { "wbthomason/packer.nvim" }, -- Have packer manage itself + { "nvim-lua/popup.nvim" }, -- An implementation of the Popup API from vim in Neovim + { "nvim-lua/plenary.nvim" }, -- Useful lua functions used ny lots of plugins + { "windwp/nvim-autopairs" }, -- Autopairs + -- "numToStr/Comment.nvim" -- Easily comment stuff + { 'kyazdani42/nvim-web-devicons' }, + { 'kyazdani42/nvim-tree.lua' }, + -- Colorschemes + -- "lunarvim/colorschemes" -- A bunch of colorschemes you can try out + { "lunarvim/darkplus.nvim" }, + { "akinsho/bufferline.nvim" }, + { "moll/vim-bbye" }, + -- cmp plugins + { "hrsh7th/nvim-cmp" }, -- The completion plugin + { "hrsh7th/cmp-buffer" }, -- buffer completions + { "hrsh7th/cmp-path" }, -- path completions + { "hrsh7th/cmp-cmdline" }, -- cmdline completions + { "saadparwaiz1/cmp_luasnip" }, -- snippet completions + { "hrsh7th/cmp-nvim-lsp" }, + + -- snippets + { "L3MON4D3/LuaSnip" }, --snippet engine + { "rafamadriz/friendly-snippets" }, -- a bunch of snippets to use + + -- LSP + { "neovim/nvim-lspconfig" }, -- enable LSP + { "williamboman/mason.nvim" }, -- simple to use language server installer + { "williamboman/mason-lspconfig.nvim" }, -- simple to use language server installer + + -- Telescope + { "nvim-telescope/telescope-media-files.nvim" }, + + -- Treesitter + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + }, + -- "p00f/nvim-ts-rainbow" + -- "nvim-treesitter/playground" +} \ No newline at end of file diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua new file mode 100644 index 00000000..51db910c --- /dev/null +++ b/lua/plugins/nvim-tree.lua @@ -0,0 +1,147 @@ +return { + { + "nvim-tree/nvim-tree.lua", + version = "*", + cmd = { "NvimTreeToggle", "NvimTreeFocus" }, + keys = { + { "e", "NvimTreeToggle", desc = "Toggle NvimTree" }, + { "fe", "NvimTreeFocus", desc = "Focus NvimTree" }, + }, + lazy = false, + dependencies = { + "nvim-tree/nvim-web-devicons", -- optional icons + }, + opts = function() + local api = require("nvim-tree.api") + + return { + -- disable_netrw = false, + -- hiack_netrw = true, + view = { + width = 35, + side = "left", + preserve_window_proportions = true, + }, + hijack_cursor = true, + view = { + adaptive_size = true, + }, + renderer = { + highlight_git = true, + highlight_opened_files = "name", + indent_markers = { + enable = true, + }, + icons = { + show = { + git = true, + folder = true, + file = true, + folder_arrow = true, + }, + }, + }, + git = { + enable = true, + ignore = false, + }, + actions = { + open_file = { + quit_on_open = true, + }, + }, + on_attach = function(bufnr) + api.config.mappings.default_on_attach(bufnr) + local function opts(desc) + return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } + end + + local map = vim.keymap.set + map("n", "", api.node.open.edit, opts("Open")) + map("n", "l", api.node.open.edit, opts("Open")) + map("n", "o", api.node.open.edit, opts("Open")) + map("n", "v", api.node.open.vertical, opts("Open Vertical")) + map("n", "s", api.node.open.horizontal, opts("Open Horizontal")) + map("n", "a", api.fs.create, opts("Create")) + map("n", "d", api.fs.remove, opts("Delete")) + map("n", "r", api.fs.rename, opts("Rename")) + map("n", "x", api.fs.cut, opts("Cut")) + map("n", "y", api.fs.copy.node, opts("Copy")) + map("n", "p", api.fs.paste, opts("Paste")) + map("n", "q", api.tree.close, opts("Close")) + + map("n", "?", api.tree.toggle_help, opts("Help")) + map("n", "", api.tree.change_root_to_parent, opts("Up")) + map("n", "h", api.node.navigate.parent_close, opts("close_node")) + end, + } + end, + } +} + + +-- local function opts(desc) +-- return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } +-- end + +-- -- default mappings +-- api.config.mappings.default_on_attach(bufnr) + +-- -- custom mappings +-- end + + +-- -- set termguicolors to enable highlight groups +-- vim.opt.termguicolors = true + +-- -- OR setup with some options +-- nvim_tree.setup({ +-- on_attach = my_on_attach, +-- sort_by = "case_sensitive", +-- renderer = { +-- highlight_git = true, +-- root_folder_modifier = ":t", +-- icons = { +-- show = { +-- file = true, +-- folder = true, +-- folder_arrow = true, +-- git = true, +-- }, +-- glyphs = { +-- default = "", +-- symlink = "", +-- git = { +-- unstaged = "", +-- staged = "S", +-- unmerged = "", +-- renamed = "➜", +-- deleted = "", +-- untracked = "U", +-- ignored = "◌", +-- }, +-- folder = { +-- default = "", +-- open = "", +-- empty = "", +-- empty_open = "", +-- symlink = "", +-- }, +-- } +-- } +-- }, +-- filters = { +-- dotfiles = true, +-- }, +-- update_cwd = true, +-- diagnostics = { +-- enable = true, +-- icons = { +-- hint = "", +-- info = "", +-- warning = "", +-- error = "", +-- }, +-- }, +-- }) +-- } \ No newline at end of file diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 00000000..cc34cd0b --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,115 @@ +return { + 'nvim-telescope/telescope.nvim', + dependencies = { {'nvim-lua/plenary.nvim'} }, + opts = function() + local actions = require "telescope.actions" + local builtin = require "telescope.builtin" + return { + defaults = { + prompt_prefix = ">> ", + selection_caret = "$ ", + path_display = { "smart" }, + + mappings = { + i = { + [""] = actions.cycle_history_next, + [""] = actions.cycle_history_prev, + + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + + [""] = actions.close, + + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + + [""] = actions.select_default, + [""] = actions.select_horizontal, + [""] = actions.select_vertical, + [""] = actions.select_tab, + + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_down, + + [""] = actions.results_scrolling_up, + [""] = actions.results_scrolling_down, + + [""] = actions.toggle_selection + actions.move_selection_worse, + [""] = actions.toggle_selection + actions.move_selection_better, + [""] = actions.send_to_qflist + actions.open_qflist, + [""] = actions.send_selected_to_qflist + actions.open_qflist, + [""] = actions.complete_tag, + [""] = actions.which_key, -- keys from pressing + }, + + n = { + [""] = actions.close, + [""] = actions.select_default, + [""] = actions.select_horizontal, + [""] = actions.select_vertical, + [""] = actions.select_tab, + + [""] = actions.toggle_selection + actions.move_selection_worse, + [""] = actions.toggle_selection + actions.move_selection_better, + [""] = actions.send_to_qflist + actions.open_qflist, + [""] = actions.send_selected_to_qflist + actions.open_qflist, + + ["j"] = actions.move_selection_next, + ["k"] = actions.move_selection_previous, + ["H"] = actions.move_to_top, + ["M"] = actions.move_to_middle, + ["L"] = actions.move_to_bottom, + + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + ["gg"] = actions.move_to_top, + ["G"] = actions.move_to_bottom, + + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_down, + + [""] = actions.results_scrolling_up, + [""] = actions.results_scrolling_down, + + ["?"] = actions.which_key, + + }, + }, + }, + } + end, +} + +-- local status_ok, telescope = pcall(require, "telescope") +-- if not status_ok then +-- return +-- end +-- telescope.load_extension('media_files') + + +-- telescope.setup { +-- pickers = { +-- -- find_files = { theme = 'dropdown'}, +-- -- Default configuration for builtin pickers goes here: +-- -- picker_name = { +-- -- picker_config_key = value, +-- -- ... +-- -- }, +-- -- Now the picker_config_key will be applied every time you call this +-- -- builtin picker +-- planets = { +-- show_pluto = true, +-- show_moon = true, +-- }, +-- }, + +-- extensions = { +-- media_files = { +-- -- filetypes whitelist +-- -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} +-- filetypes = {"png", "webp", "jpg", "jpeg"}, +-- -- find command (defaults to `fd`) +-- find_cmd = "rg" +-- } +-- }, +-- } diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua deleted file mode 100644 index 4fbe99e5..00000000 --- a/lua/user/nvim-tree.lua +++ /dev/null @@ -1,80 +0,0 @@ -local status_ok, nvim_tree = pcall(require, "nvim-tree") -if not status_ok then - return -end - -local function my_on_attach(bufnr) - local api = require "nvim-tree.api" - - local function opts(desc) - return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } - end - - -- default mappings - api.config.mappings.default_on_attach(bufnr) - - -- custom mappings - vim.keymap.set("n", "", api.tree.change_root_to_parent, opts("Up")) - vim.keymap.set("n", "?", api.tree.toggle_help, opts("Help")) - vim.keymap.set("n", "l", api.node.open.edit, opts("Open")) - vim.keymap.set("n", "h", api.node.navigate.parent_close, opts("close_node")) -end - - --- set termguicolors to enable highlight groups -vim.opt.termguicolors = true - --- OR setup with some options -nvim_tree.setup({ - on_attach = my_on_attach, - sort_by = "case_sensitive", - view = { - adaptive_size = true, - }, - hijack_cursor = true, - renderer = { - highlight_git = true, - root_folder_modifier = ":t", - icons = { - show = { - file = true, - folder = true, - folder_arrow = true, - git = true, - }, - glyphs = { - default = "", - symlink = "", - git = { - unstaged = "", - staged = "S", - unmerged = "", - renamed = "➜", - deleted = "", - untracked = "U", - ignored = "◌", - }, - folder = { - default = "", - open = "", - empty = "", - empty_open = "", - symlink = "", - }, - } - } - }, - filters = { - dotfiles = true, - }, - update_cwd = true, - diagnostics = { - enable = true, - icons = { - hint = "", - info = "", - warning = "", - error = "", - }, - }, -}) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua deleted file mode 100644 index 94506c10..00000000 --- a/lua/user/plugins.lua +++ /dev/null @@ -1,93 +0,0 @@ -local fn = vim.fn - --- Automatically install packer -local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" -if fn.empty(fn.glob(install_path)) > 0 then - PACKER_BOOTSTRAP = fn.system { - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - install_path, - } - print "Installing packer close and reopen Neovim..." - vim.cmd [[packadd packer.nvim]] -end - --- Autocommand that reloads neovim whenever you save the plugins.lua file -vim.cmd [[ - augroup packer_user_config - autocmd! - autocmd BufWritePost plugins.lua source | PackerSync - augroup end -]] - --- Use a protected call so we don't error out on first use -local status_ok, packer = pcall(require, "packer") -if not status_ok then - return -end - --- Have packer use a popup window -packer.init { - display = { - open_fn = function() - return require("packer.util").float { border = "rounded" } - end, - }, -} - --- Install your plugins here -return packer.startup(function(use) - -- My plugins here - use "wbthomason/packer.nvim" -- Have packer manage itself - use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim - use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins - use "windwp/nvim-autopairs" -- Autopairs - -- use "numToStr/Comment.nvim" -- Easily comment stuff - use 'kyazdani42/nvim-web-devicons' - use 'kyazdani42/nvim-tree.lua' - -- Colorschemes - -- use "lunarvim/colorschemes" -- A bunch of colorschemes you can try out - use "lunarvim/darkplus.nvim" - use "akinsho/bufferline.nvim" - use "moll/vim-bbye" - -- cmp plugins - use "hrsh7th/nvim-cmp" -- The completion plugin - use "hrsh7th/cmp-buffer" -- buffer completions - use "hrsh7th/cmp-path" -- path completions - use "hrsh7th/cmp-cmdline" -- cmdline completions - use "saadparwaiz1/cmp_luasnip" -- snippet completions - use "hrsh7th/cmp-nvim-lsp" - - -- snippets - use "L3MON4D3/LuaSnip" --snippet engine - use "rafamadriz/friendly-snippets" -- a bunch of snippets to use - - -- LSP - use "neovim/nvim-lspconfig" -- enable LSP - use "williamboman/mason.nvim" -- simple to use language server installer - use "williamboman/mason-lspconfig.nvim" -- simple to use language server installer - - -- Telescope - use { - 'nvim-telescope/telescope.nvim', - requires = { {'nvim-lua/plenary.nvim'} } - } - use "nvim-telescope/telescope-media-files.nvim" - - -- Treesitter - use { - "nvim-treesitter/nvim-treesitter", - run = ":TSUpdate", - } --- use "p00f/nvim-ts-rainbow" --- use "nvim-treesitter/playground" - - -- Automatically set up your configuration after cloning packer.nvim - -- Put this at the end after all plugins - if PACKER_BOOTSTRAP then - require("packer").sync() - end -end) diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua deleted file mode 100644 index e1dc156a..00000000 --- a/lua/user/telescope.lua +++ /dev/null @@ -1,108 +0,0 @@ -local status_ok, telescope = pcall(require, "telescope") -if not status_ok then - return -end - -telescope.load_extension('media_files') - -local actions = require "telescope.actions" -local builtin = require 'telescope.builtin' - -telescope.setup { - defaults = { - - prompt_prefix = " ", - selection_caret = " ", - path_display = { "smart" }, - - mappings = { - i = { - [""] = actions.cycle_history_next, - [""] = actions.cycle_history_prev, - - [""] = actions.move_selection_next, - [""] = actions.move_selection_previous, - - [""] = actions.close, - - [""] = actions.move_selection_next, - [""] = actions.move_selection_previous, - - [""] = actions.select_default, - [""] = actions.select_horizontal, - [""] = actions.select_vertical, - [""] = actions.select_tab, - - [""] = actions.preview_scrolling_up, - [""] = actions.preview_scrolling_down, - - [""] = actions.results_scrolling_up, - [""] = actions.results_scrolling_down, - - [""] = actions.toggle_selection + actions.move_selection_worse, - [""] = actions.toggle_selection + actions.move_selection_better, - [""] = actions.send_to_qflist + actions.open_qflist, - [""] = actions.send_selected_to_qflist + actions.open_qflist, - [""] = actions.complete_tag, - [""] = actions.which_key, -- keys from pressing - }, - - n = { - [""] = actions.close, - [""] = actions.select_default, - [""] = actions.select_horizontal, - [""] = actions.select_vertical, - [""] = actions.select_tab, - - [""] = actions.toggle_selection + actions.move_selection_worse, - [""] = actions.toggle_selection + actions.move_selection_better, - [""] = actions.send_to_qflist + actions.open_qflist, - [""] = actions.send_selected_to_qflist + actions.open_qflist, - - ["j"] = actions.move_selection_next, - ["k"] = actions.move_selection_previous, - ["H"] = actions.move_to_top, - ["M"] = actions.move_to_middle, - ["L"] = actions.move_to_bottom, - - [""] = actions.move_selection_next, - [""] = actions.move_selection_previous, - ["gg"] = actions.move_to_top, - ["G"] = actions.move_to_bottom, - - [""] = actions.preview_scrolling_up, - [""] = actions.preview_scrolling_down, - - [""] = actions.results_scrolling_up, - [""] = actions.results_scrolling_down, - - ["?"] = actions.which_key, - - }, - }, - }, - pickers = { - -- find_files = { theme = 'dropdown'}, - -- Default configuration for builtin pickers goes here: - -- picker_name = { - -- picker_config_key = value, - -- ... - -- }, - -- Now the picker_config_key will be applied every time you call this - -- builtin picker - planets = { - show_pluto = true, - show_moon = true, - }, - }, - - extensions = { - media_files = { - -- filetypes whitelist - -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} - filetypes = {"png", "webp", "jpg", "jpeg"}, - -- find command (defaults to `fd`) - find_cmd = "rg" - } - }, -} diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua deleted file mode 100644 index 1d9f3a7f..00000000 --- a/plugin/packer_compiled.lua +++ /dev/null @@ -1,209 +0,0 @@ --- Automatically generated packer.nvim plugin loader code - -if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then - vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') - return -end - -vim.api.nvim_command('packadd packer.nvim') - -local no_errors, error_msg = pcall(function() - -_G._packer = _G._packer or {} -_G._packer.inside_compile = true - -local time -local profile_info -local should_profile = false -if should_profile then - local hrtime = vim.loop.hrtime - profile_info = {} - time = function(chunk, start) - if start then - profile_info[chunk] = hrtime() - else - profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 - end - end -else - time = function(chunk, start) end -end - -local function save_profiles(threshold) - local sorted_times = {} - for chunk_name, time_taken in pairs(profile_info) do - sorted_times[#sorted_times + 1] = {chunk_name, time_taken} - end - table.sort(sorted_times, function(a, b) return a[2] > b[2] end) - local results = {} - for i, elem in ipairs(sorted_times) do - if not threshold or threshold and elem[2] > threshold then - results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' - end - end - if threshold then - table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') - end - - _G._packer.profile_output = results -end - -time([[Luarocks path setup]], true) -local package_path_str = "/Users/ds/.cache/nvim/packer_hererocks/2.1.1732813678/share/lua/5.1/?.lua;/Users/ds/.cache/nvim/packer_hererocks/2.1.1732813678/share/lua/5.1/?/init.lua;/Users/ds/.cache/nvim/packer_hererocks/2.1.1732813678/lib/luarocks/rocks-5.1/?.lua;/Users/ds/.cache/nvim/packer_hererocks/2.1.1732813678/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/Users/ds/.cache/nvim/packer_hererocks/2.1.1732813678/lib/lua/5.1/?.so" -if not string.find(package.path, package_path_str, 1, true) then - package.path = package.path .. ';' .. package_path_str -end - -if not string.find(package.cpath, install_cpath_pattern, 1, true) then - package.cpath = package.cpath .. ';' .. install_cpath_pattern -end - -time([[Luarocks path setup]], false) -time([[try_loadstring definition]], true) -local function try_loadstring(s, component, name) - local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) - if not success then - vim.schedule(function() - vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) - end) - end - return result -end - -time([[try_loadstring definition]], false) -time([[Defining packer_plugins]], true) -_G.packer_plugins = { - LuaSnip = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/LuaSnip", - url = "https://github.com/L3MON4D3/LuaSnip" - }, - ["bufferline.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/bufferline.nvim", - url = "https://github.com/akinsho/bufferline.nvim" - }, - ["cmp-buffer"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/cmp-buffer", - url = "https://github.com/hrsh7th/cmp-buffer" - }, - ["cmp-cmdline"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/cmp-cmdline", - url = "https://github.com/hrsh7th/cmp-cmdline" - }, - ["cmp-nvim-lsp"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", - url = "https://github.com/hrsh7th/cmp-nvim-lsp" - }, - ["cmp-path"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/cmp-path", - url = "https://github.com/hrsh7th/cmp-path" - }, - cmp_luasnip = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/cmp_luasnip", - url = "https://github.com/saadparwaiz1/cmp_luasnip" - }, - ["darkplus.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/darkplus.nvim", - url = "https://github.com/lunarvim/darkplus.nvim" - }, - ["friendly-snippets"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/friendly-snippets", - url = "https://github.com/rafamadriz/friendly-snippets" - }, - ["mason-lspconfig.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", - url = "https://github.com/williamboman/mason-lspconfig.nvim" - }, - ["mason.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/mason.nvim", - url = "https://github.com/williamboman/mason.nvim" - }, - ["nvim-autopairs"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-autopairs", - url = "https://github.com/windwp/nvim-autopairs" - }, - ["nvim-cmp"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-cmp", - url = "https://github.com/hrsh7th/nvim-cmp" - }, - ["nvim-lspconfig"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", - url = "https://github.com/neovim/nvim-lspconfig" - }, - ["nvim-tree.lua"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", - url = "https://github.com/kyazdani42/nvim-tree.lua" - }, - ["nvim-treesitter"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-treesitter", - url = "https://github.com/nvim-treesitter/nvim-treesitter" - }, - ["nvim-web-devicons"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", - url = "https://github.com/kyazdani42/nvim-web-devicons" - }, - ["packer.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/packer.nvim", - url = "https://github.com/wbthomason/packer.nvim" - }, - ["plenary.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/plenary.nvim", - url = "https://github.com/nvim-lua/plenary.nvim" - }, - ["popup.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/popup.nvim", - url = "https://github.com/nvim-lua/popup.nvim" - }, - ["telescope-media-files.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/telescope-media-files.nvim", - url = "https://github.com/nvim-telescope/telescope-media-files.nvim" - }, - ["telescope.nvim"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/telescope.nvim", - url = "https://github.com/nvim-telescope/telescope.nvim" - }, - ["vim-bbye"] = { - loaded = true, - path = "/Users/ds/.local/share/nvim/site/pack/packer/start/vim-bbye", - url = "https://github.com/moll/vim-bbye" - } -} - -time([[Defining packer_plugins]], false) - -_G._packer.inside_compile = false -if _G._packer.needs_bufread == true then - vim.cmd("doautocmd BufRead") -end -_G._packer.needs_bufread = false - -if should_profile then save_profiles() end - -end) - -if not no_errors then - error_msg = error_msg:gsub('"', '\\"') - vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') -end