aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/init.lua
diff options
context:
space:
mode:
authorJean-Pierre Appel <jeanpierre.appel01@gmail.com>2023-08-26 21:18:50 -0400
committerJean-Pierre Appel <jeanpierre.appel01@gmail.com>2023-08-26 21:18:50 -0400
commitc1bec17f77ab5ad2522702849164e04884e1179f (patch)
tree8ea565ae10c0179914c59f3c856c4ca5dac28556 /nvim/init.lua
parentb5a73e484db3094b7729ab856dbe8cdfe68ce9db (diff)
moved to lazy.nvim, configured lsp
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"