diff --git a/init.lua b/init.lua index c3df476..955269a 100644 --- a/init.lua +++ b/init.lua @@ -12,7 +12,7 @@ end vim.opt.rtp:prepend(lazypath) require('mappings') -require("lazy").setup("plugins") require('options') +require("lazy").setup("plugins") require('lsp_settings') require('autocmds') diff --git a/lua/options.lua b/lua/options.lua index 96fd247..fb8de93 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,12 +1,3 @@ --- globals -vim.g.colorizer_auto_color = 1 -vim.g.tmuxline_previm = "minimal" -vim.g.powerline_pycmd = "py3" -vim.g.tex_flavor = "latex" - --- dictionary -vim.o.dictionary = "/usr/dict/words" - -- colors vim.o.termguicolors = true diff --git a/lua/plugins.lua b/lua/plugins.lua index a180398..cfd328a 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -31,7 +31,9 @@ return { -- auto color hex/rgb { 'norcalli/nvim-colorizer.lua', - config = function() require('colorizer').setup() end, + config = function() + require('colorizer').setup() + end, }, { @@ -40,6 +42,7 @@ return { require('document-color').setup({ mode = "background", }) + vim.g.colorizer_auto_color = 1 end }, @@ -331,10 +334,7 @@ return { ":e $HOME/.config/nvim/init.lua | :cd %:p:h | split . | wincmd k | pwd"), dashboard.button("q", " Quit NVIM", ":qa"), } - local handle = assert(io.popen('fortune -s')) - local fortune = handle:read("*all") - handle:close() - dashboard.section.footer.val = fortune + dashboard.section.footer.val = require 'alpha.fortune' dashboard.section.header.opts.hl = "Title" dashboard.section.buttons.opts.hl = "Debug" dashboard.section.footer.opts.hl = "Conceal"