Ver Fonte

move colorscheme setting to settings

christianchiarulli há 4 anos atrás
pai
commit
ec814f60c5
2 ficheiros alterados com 4 adições e 5 exclusões
  1. 0 2
      init.lua
  2. 4 3
      lua/settings.lua

+ 0 - 2
init.lua

@@ -2,8 +2,6 @@ require('default-config')
 vim.cmd('luafile ' .. CONFIG_PATH .. '/lv-config.lua')
 require('settings')
 require('plugins')
-vim.g.colors_name = O.colorscheme
-vim.g.syntax = true
 require('lv-utils')
 require('keymappings')
 require('lv-galaxyline')

+ 4 - 3
lua/settings.lua

@@ -1,13 +1,11 @@
 ---  HELPERS  ---
 
-
 local cmd = vim.cmd
 local opt = vim.opt
 
 
 ---  VIM ONLY COMMANDS  ---
 
-
 cmd('filetype plugin on')               -- filetype detection
 cmd('let &titleold="'..TERMINAL..'"')   
 cmd('set inccommand=split')             -- show what you are substituting in real time
@@ -17,8 +15,11 @@ if O.transparent_window then
     cmd('au ColorScheme * hi Normal ctermbg=none guibg=none')
  end
 
----  SETTINGS  ---
+--- COLORSCHEME ---
 
+vim.g.colors_name = O.colorscheme
+
+---  SETTINGS  ---
 
 opt.backup          = false                     -- creates a backup file
 opt.clipboard       = "unnamedplus"             -- allows neovim to access the system clipboard