Skip to content

Commit 0927dde

Browse files
committed
Squashed commit of the following:
commit 2df5137 Author: TJ DeVries <devries.timothyj@gmail.com> Date: Wed Jul 17 21:37:31 2024 -0400 fix: add required parsers from nvim-treesitter commit 3e55ff1 Author: Folke Lemaitre <folke.lemaitre@gmail.com> Date: Tue Jul 16 18:06:47 2024 +0200 fix(lazy): added error handling for bootstrap (nvim-lua#1001) commit f5c9195 Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com> Date: Tue Jul 16 18:05:40 2024 +0200 which-key v3 update (nvim-lua#1022) * which-key v3 update * remove unneeded brackets from which-key registration
1 parent 237a54e commit 0927dde

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

init.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ vim.api.nvim_create_autocmd('TextYankPost', {
238238
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
239239
if not vim.uv.fs_stat(lazypath) then
240240
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
241-
vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
241+
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
242+
if vim.v.shell_error ~= 0 then
243+
error('Error cloning lazy.nvim:\n' .. out)
244+
end
242245
end ---@diagnostic disable-next-line: undefined-field
243246
vim.opt.rtp:prepend(lazypath)
244247

@@ -255,7 +258,6 @@ vim.opt.rtp:prepend(lazypath)
255258
-- NOTE: Here is where you install your plugins.
256259
require('lazy').setup({
257260
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
258-
259261
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
260262
'tpope/vim-fugitive',
261263
'dstein64/nvim-scrollview',
@@ -946,7 +948,7 @@ require('lazy').setup({
946948
'nvim-treesitter/nvim-treesitter',
947949
build = ':TSUpdate',
948950
opts = {
949-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
951+
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
950952
-- Autoinstall languages that are not installed
951953
auto_install = true,
952954
highlight = {

0 commit comments

Comments
 (0)