Prevent startup errors on first run (#645)

This commit is contained in:
rob 2021-07-04 15:07:11 +01:00 committed by GitHub
parent 53d1e8b901
commit 1ed7392534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,7 @@
if not package.loaded['lspconfig'] then
return
end
local nvim_lsp = require'lspconfig'
local configs = require'lspconfig/configs'
local capabilities = vim.lsp.protocol.make_client_capabilities()

View file

@ -1,3 +1,7 @@
if not package.loaded['nvim-autopairs'] then
return
end
local npairs = require('nvim-autopairs')
local Rule = require('nvim-autopairs.rule')

View file

@ -1,3 +1,7 @@
if not package.loaded['compe'] then
return
end
local M = {}
M.config = function()

View file

@ -1,3 +1,7 @@
if not package.loaded['galaxyline'] then
return
end
local gl = require('galaxyline')
-- get my theme in galaxyline repo
-- local colors = require('galaxyline.theme').default

View file

@ -1,3 +1,7 @@
if not package.loaded['nvim-tree.view'] then
return
end
local M = {}
M.config = function()

View file

@ -1,3 +1,7 @@
if not package.loaded['nvim-treesitter'] then
return
end
require'nvim-treesitter.configs'.setup {
ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
ignore_install = O.treesitter.ignore_install,

View file

@ -1,3 +1,7 @@
if not package.loaded['which-key'] then
return
end
require("which-key").setup {
plugins = {
marks = true, -- shows a list of your marks on ' and `