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"}
}
local status = pcall(require, "material");
if not(status) then
if u.has_plugin("nvim-treesiter") then
paq.install();
end
else
-- Global options
o.number = true
@ -66,7 +65,7 @@ g.mapleader = " "
require "keymappings"
-- 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
require "lazy-git"
-- Autocommands
@ -91,3 +90,4 @@ opt.shortmess:append({c = true})
-- Autoformat
require "autoformatter"
end