[init] Moved most config to Lua

This commit is contained in:
Alyxia Sother 2021-09-08 20:10:15 +02:00
parent d466d95bb7
commit 2e5ee60601
No known key found for this signature in database
GPG Key ID: 355968D14144B739
2 changed files with 21 additions and 24 deletions

19
nvim/init.lua Normal file
View File

@ -0,0 +1,19 @@
-- Disable airline to use barbar
vim.g.loaded_airline = 1
-- TODO: Refactor to Lua
-- This has stopped working...?
-- let g:dotfiles_plugin_manager_inhibited_plugins = {
-- \ 'vim-airline': 1,
-- \ }
-- Enable the clearly superior mode.
vim.g.vim_ide = 1
vim.g.dotfiles_build_coc_from_source = 1
-- Small plugin configs
vim.g.dashboard_default_executive ='fzf'
-- Styling
vim.g.termguicolors = 1
vim.g.airline_powerline_fonts = 1

View File

@ -1,27 +1,5 @@
let g:k_nvim_dotfiles_dir = expand('<sfile>:p:h')
let g:k_dotfiles_dir = expand('<sfile>:p:h:h')
let &runtimepath = g:k_nvim_dotfiles_dir.','.&runtimepath
" Disable airline to use barbar
let g:loaded_airline = 1
" This has stopped working...?
" let g:dotfiles_plugin_manager_inhibited_plugins = {
" \ 'vim-airline': 1,
" \ }
" Enable the clearly superior mode.
let g:vim_ide = 1
let g:dotfiles_build_coc_from_source = 1
" Small plugin configs
let g:dashboard_default_executive ='fzf'
" Source Dima's config
let &runtimepath = g:k_nvim_dotfiles_dir.','.&runtimepath.','.g:k_nvim_dotfiles_dir.'/after'
source <sfile>:p:h/../dmitmel-dotfiles/nvim/init.vim
let &runtimepath = &runtimepath.','.g:k_nvim_dotfiles_dir.'/after'
" Styling
set termguicolors
let airline_powerline_fonts = 1
luafile <sfile>:p:h/init.lua