diff options
author | 2024-04-04 00:48:58 +0200 | |
---|---|---|
committer | 2024-04-04 00:48:58 +0200 | |
commit | c511b5f4c99c152b56985cda8eef2d2bb42df412 (patch) | |
tree | afdfe3ce61fe3154b0fe9d44fbfa0073dabf8bea /nvim/init.lua | |
parent | d8ce34981ecc54f444cae2faf7757f25b28a93f2 (diff) | |
download | dotfiles-c511b5f4c99c152b56985cda8eef2d2bb42df412.tar.gz |
neovim with lazy.nvim
Diffstat (limited to 'nvim/init.lua')
-rw-r--r-- | nvim/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..f5be9f4 --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,17 @@ +-- load vim config +vim.cmd("source " .. vim.fn.stdpath("config") .. "/vimscript/*") + +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) + +require("lazy").setup("plugins") |