-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: Add minimal init files and update README
- Loading branch information
Showing
4 changed files
with
143 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- vim:foldenable foldmethod=marker: | ||
|
||
-- Install and initialize lazy.nvim {{{ | ||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||
if not vim.loop.fs_stat(lazypath) then | ||
vim.fn.system({ | ||
"git", | ||
"clone", | ||
"--filter=blob:none", | ||
"https://github.com/folke/lazy.nvim.git", | ||
"--branch=stable", | ||
lazypath, | ||
}) | ||
end | ||
vim.opt.rtp:prepend(lazypath) | ||
-- }}} | ||
|
||
require("lazy").setup({ | ||
{ | ||
"judaew/ronny.nvim", | ||
priority = 1000, | ||
config = function() | ||
vim.cmd.colorscheme("ronny") | ||
require("ronny").setup() | ||
end | ||
}, | ||
|
||
-- lualine.nvim is optional | ||
{ | ||
"nvim-lualine/lualine.nvim", | ||
dependencies = { | ||
"nvim-tree/nvim-web-devicons", opts = true | ||
}, | ||
config = function() require("lualine").setup() end | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-- vim:foldenable foldmethod=marker: | ||
|
||
-- Install and initialize packer.nvim {{{ | ||
local ensure_packer = function() | ||
local fn = vim.fn | ||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' | ||
if fn.empty(fn.glob(install_path)) > 0 then | ||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) | ||
vim.cmd [[packadd packer.nvim]] | ||
return true | ||
end | ||
return false | ||
end | ||
|
||
local packer_bootstrap = ensure_packer() | ||
-- }}} | ||
|
||
return require("packer").startup(function(use) | ||
use "wbthomason/packer.nvim" | ||
use { | ||
"judaew/ronny.nvim", | ||
config = function() | ||
vim.cmd.colorscheme("ronny") | ||
require("ronny").setup() | ||
end | ||
} | ||
|
||
-- lualine.nvim is optional | ||
use { | ||
"nvim-lualine/lualine.nvim", | ||
requires = { 'nvim-tree/nvim-web-devicons', opt = true }, | ||
config = function() require("lualine").setup() end | ||
} | ||
if packer_bootstrap then | ||
require('packer').sync() | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
" vim:foldenable foldmethod=marker: | ||
|
||
" Install and initialize vim-plug {{{ | ||
let data_dir = stdpath('data') . '/site' | ||
if empty(glob(data_dir . '/autoload/plug.vim')) | ||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | ||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | ||
endif | ||
|
||
" Run PlugInstall if there are missing plugins | ||
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) | ||
\| PlugInstall --sync | source $MYVIMRC | ||
\| endif | ||
" }}} | ||
|
||
call plug#begin() | ||
Plug 'judaew/ronny.nvim' | ||
|
||
" lualine.nvim is optional | ||
Plug 'nvim-lualine/lualine.nvim' | ||
Plug 'nvim-tree/nvim-web-devicons' | ||
call plug#end() | ||
|
||
colorscheme ronny | ||
lua require('ronny').setup() | ||
|
||
" lualine.nvim is optional | ||
lua require('lualine').setup() |