summaryrefslogtreecommitdiff
path: root/dot_config/nvim/init.lua
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-13 12:04:06 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-13 12:04:06 -0400
commit0d6ff8797a492072bedfc2e2839840a306c671d0 (patch)
treeeb832a9ecc1b93f28332844f9ea49eb978394063 /dot_config/nvim/init.lua
parentmini: remove file_browser from starter telescope (diff)
options before plugins, do bindings
Diffstat (limited to '')
-rw-r--r--dot_config/nvim/init.lua39
1 files changed, 20 insertions, 19 deletions
diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua
index 4f85a38..b1d0b52 100644
--- a/dot_config/nvim/init.lua
+++ b/dot_config/nvim/init.lua
@@ -1,25 +1,6 @@
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
--- plugins
-if vim.fn.executable 'git' == 0 then
- require 'noplugins'
-else
- 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", {})
-end
-
-- options
local options = {
timeoutlen = 300,
@@ -43,3 +24,23 @@ local options = {
foldlevelstart = 99,
}
for k, v in pairs(options) do vim.opt[k] = v end
+
+-- plugins
+if vim.fn.executable 'git' == 0 then
+ require 'noplugins'
+else
+ 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", {})
+ require 'bindings'
+end