vim.cmd([[set runtimepath=$VIMRUNTIME]]) vim.cmd([[set packpath=/tmp/nvim/site]]) local package_root = "/tmp/nvim/site/pack" local install_path = package_root .. "/packer/start/packer.nvim" local function load_plugins() require("packer").startup({ { "wbthomason/packer.nvim", { "folke/noice.nvim", requires = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify", }, }, { "folke/tokyonight.nvim", }, -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE }, config = { package_root = package_root, compile_path = install_path .. "/plugin/packer_compiled.lua", display = { non_interactive = true }, }, }) end _G.load_config = function() vim.opt.termguicolors = true vim.cmd([[colorscheme tokyonight]]) require("noice").setup({ popupmenu = { enabled = false, -- enables the Noice popupmenu UI }, notify = { enabled = false, }, lsp = { progress = { enabled = false, }, override = { -- override the default lsp markdown formatter with Noice ["vim.lsp.util.convert_input_to_markdown_lines"] = true, -- override the lsp markdown formatter with Noice ["vim.lsp.util.stylize_markdown"] = true, }, }, presets = { lsp_doc_border = true }, routes = { { filter = { event = "msg_show", ["not"] = { kind = { "confirm", "confirm_sub" }, }, }, opts = { skip = true }, }, }, }) local g = vim.g local opt = vim.opt local go = vim.go local wo = vim.wo local function status_line() local status = [[%=%#GreyStatusLine#%{%luaeval('require("noice.api.status").message.get() or ""')%}]] return status end go.autochdir = true go.cmdheight = 0 go.hlsearch = false go.ignorecase = true go.laststatus = 3 go.mouse = 'nicr' go.shell = "/bin/sh" go.shiftround = true go.smartcase = true go.splitbelow = true go.splitright = true go.statusline = status_line() go.termguicolors = true go.timeoutlen = 4000 wo.cursorline = true wo.foldtext = 'getline(v:foldstart+1)' wo.linebreak = true opt.formatoptions:remove { "ro" } opt.iskeyword:append { "-" } opt.matchpairs:append { ">:<" } opt.shortmess:append { c = true, I = true --[[A = true]]} end if vim.fn.isdirectory(install_path) == 0 then print("Installing Noice and dependencies.") vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }) end load_plugins() require("packer").sync() vim.cmd([[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]])