diff options
author | mhsn <mail@mhsn.net> | 2025-01-22 00:44:19 +0000 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2025-01-22 00:44:19 +0000 |
commit | dc17ab2fb051efceafddc3b97ebe9f67c775e9b7 (patch) | |
tree | b9c65af3f8d64f1bd5f48488afd69f2596ab4dec /lua/config | |
parent | c0ee49298161bccb75b9e23ed64fe80aacec2fd4 (diff) | |
download | nvim-dc17ab2fb051efceafddc3b97ebe9f67c775e9b7.tar.gz nvim-dc17ab2fb051efceafddc3b97ebe9f67c775e9b7.zip |
split plugins into separate files and other changes
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/lazy.lua | 19 | ||||
-rw-r--r-- | lua/config/opt.lua | 1 |
2 files changed, 9 insertions, 11 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 7e90925..07420fd 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,17 +1,14 @@ -- Bootstrap lazy.nvim 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 + local out = vim.fn.system({ + "git", + "clone", + "https://github.com/folke/lazy.nvim.git", + "--filter=blob:none", + "--branch=stable", + lazypath, + }) end vim.opt.rtp:prepend(lazypath) diff --git a/lua/config/opt.lua b/lua/config/opt.lua index 60b1d5b..37b785c 100644 --- a/lua/config/opt.lua +++ b/lua/config/opt.lua @@ -7,6 +7,7 @@ vim.opt.tabstop = 4 vim.opt.softtabstop = 0 vim.opt.shiftwidth = 4 vim.opt.smarttab = true +vim.opt.expandtab = true -- Smart indenting vim.opt.autoindent = true |