fix: init.lua

This commit is contained in:
max_richter 2021-08-19 17:14:34 +02:00
parent ab373fb15b
commit 104a2849db

View File

@ -31,10 +31,9 @@ paq:setup({verbose=true}) {
{url="git@github.com:akinsho/nvim-toggleterm.lua"} {url="git@github.com:akinsho/nvim-toggleterm.lua"}
} }
local status = pcall(require, "material"); if u.has_plugin("nvim-treesiter") then
if not(status) then
paq.install(); paq.install();
end else
-- Global options -- Global options
o.number = true o.number = true
@ -66,7 +65,7 @@ g.mapleader = " "
require "keymappings" require "keymappings"
-- Treesitter config -- Treesitter config
require "nvim-treesitter.configs".setup {ensure_installed = {"bash", "svelte", "css", "svelte", "typescript", "javascript", "xml", "go", "lua", "yaml"} highlight = {enable = true}} require "nvim-treesitter.configs".setup {ensure_installed = {"bash", "svelte", "css", "svelte", "typescript", "javascript", "go", "lua", "yaml"}, highlight = {enable = true}}
-- Toggleterm / Lazygit setup -- Toggleterm / Lazygit setup
require "lazy-git" require "lazy-git"
-- Autocommands -- Autocommands
@ -91,3 +90,4 @@ opt.shortmess:append({c = true})
-- Autoformat -- Autoformat
require "autoformatter" require "autoformatter"
end