mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 10:05:37 +02:00
Prevent startup errors on first run (#645)
This commit is contained in:
parent
53d1e8b901
commit
1ed7392534
7 changed files with 28 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
if not package.loaded['nvim-autopairs'] then
|
||||
return
|
||||
end
|
||||
|
||||
local npairs = require('nvim-autopairs')
|
||||
local Rule = require('nvim-autopairs.rule')
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
if not package.loaded['compe'] then
|
||||
return
|
||||
end
|
||||
|
||||
local M = {}
|
||||
|
||||
M.config = function()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
if not package.loaded['nvim-tree.view'] then
|
||||
return
|
||||
end
|
||||
|
||||
local M = {}
|
||||
|
||||
M.config = function()
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue