some more fixes

This commit is contained in:
max_richter 2021-08-19 17:04:46 +02:00
parent 26c99d2e07
commit e763b71ee2
2 changed files with 7 additions and 10 deletions

View File

@ -1,11 +1,10 @@
local u = require("utils")
local o = vim.o local o = vim.o
local opt = vim.opt local opt = vim.opt
local g = vim.g local g = vim.g
local cmd = vim.cmd; local cmd = vim.cmd;
cmd [[highlight Normal guibg=none]]
cmd [[highlight NonText guibg=none]]
require("install-paq") require("install-paq")
local paq = require("paq"); local paq = require("paq");
@ -37,9 +36,6 @@ if not(status) then
paq.install(); paq.install();
end end
local u = require("utils")
-- Global options -- Global options
o.number = true o.number = true
o.tabstop = 2 o.tabstop = 2
@ -58,8 +54,9 @@ g.NERDTreeMinimalUI = true
g.NERDTreeDirArrows = true g.NERDTreeDirArrows = true
g.hidden = true g.hidden = true
g.material_theme_style = "ocean_community" g.material_theme_style = "ocean_community"
if u.has_plugin("material") then
c md [[colorscheme material]] c md [[colorscheme material]]
end
-- Remove background color -- Remove background color
cmd [[highlight Normal guibg=none]] cmd [[highlight Normal guibg=none]]
cmd [[highlight NonText guibg=none]] cmd [[highlight NonText guibg=none]]

View File

@ -24,8 +24,8 @@ local function dump(o)
end end
function M.has_plugin(pluginName) function M.has_plugin(pluginName)
local rtp = vim.api.nvim_eval('&rtp') local status = pcall(require, pluginName);
return rtp:match(pluginName) return status
end end
return M return M