From 45022629cb619a94d8ca49cdfb436d93bc8d4955 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Tue, 13 Aug 2024 02:53:15 +0545 Subject: [PATCH] . --- init.lua | 27 +++++++++++++++++++++++++++ lua/keymaps.lua | 1 + lua/plugins.lua | 1 + lua/prefereneces.lua | 1 + lua/remaps.lua | 1 + 5 files changed, 31 insertions(+) create mode 100644 init.lua create mode 100644 lua/keymaps.lua create mode 100644 lua/plugins.lua create mode 100644 lua/prefereneces.lua create mode 100644 lua/remaps.lua diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..7ca9ad2 --- /dev/null +++ b/init.lua @@ -0,0 +1,27 @@ +require('preferences') +require('keymaps') +require('remaps') + +local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = 'https://github.com/folke/lazy.nvim.git' + local out = vim.fn.system({ 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { 'Failed to clone lazy.nvim:\n', 'ErrorMsg' }, + { out, 'WarningMsg' }, + { '\nPress any key to exit...' }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +require('lazy').setup({ + spec = { + { import = 'plugins' }, + }, +}) + +vim.cmd('colorscheme onedark') diff --git a/lua/keymaps.lua b/lua/keymaps.lua new file mode 100644 index 0000000..196b516 --- /dev/null +++ b/lua/keymaps.lua @@ -0,0 +1 @@ +return{} diff --git a/lua/plugins.lua b/lua/plugins.lua new file mode 100644 index 0000000..196b516 --- /dev/null +++ b/lua/plugins.lua @@ -0,0 +1 @@ +return{} diff --git a/lua/prefereneces.lua b/lua/prefereneces.lua new file mode 100644 index 0000000..196b516 --- /dev/null +++ b/lua/prefereneces.lua @@ -0,0 +1 @@ +return{} diff --git a/lua/remaps.lua b/lua/remaps.lua new file mode 100644 index 0000000..196b516 --- /dev/null +++ b/lua/remaps.lua @@ -0,0 +1 @@ +return{}