aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/init.lua')
-rw-r--r--nvim/init.lua28
1 files changed, 20 insertions, 8 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index a997315..3d35d32 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -4,11 +4,27 @@
HOME = os.getenv("HOME")
+-- bootstrap lazynvim if not installed
+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", -- latest stable release
+ lazypath,
+ })
+end
+vim.opt.rtp:prepend(lazypath)
+
+-- leader
+vim.g.mapleader = ' '
+vim.g.maplocalleader = ' '
+
+require("lazy").setup('plugins')
require('keymap')
-require('plugins')
-require('colorscheme')
--- require('statusline')
--- require('bufferline')
+require('lsp')
-- General Config
vim.opt.number = true
@@ -45,9 +61,5 @@ vim.opt.visualbell = true
-- term settings
vim.opt.termguicolors = true
-
--- leader
-vim.g.mapleader = " "
-
-- tex syntax highlighting
vim.g.tex_flavor = "latex"