First draft after switching to lazy.nvim
This commit is contained in:
48
init.lua
48
init.lua
@@ -1,6 +1,46 @@
|
||||
-- init.lua
|
||||
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)
|
||||
vim.g.mapleader = " "
|
||||
require("lazy").setup("plugins")
|
||||
require("maps").init()
|
||||
require("commands")
|
||||
require("settings").init()
|
||||
|
||||
require('plugins')
|
||||
require('settings').init()
|
||||
require('maps').init()
|
||||
require('commands')
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = '/Users/fschmidt/.cache/nvim/undodir'
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.undofile = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.laststatus = 2
|
||||
vim.opt.hidden = true
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.scrolloff = 12
|
||||
vim.opt.sidescrolloff = 8
|
||||
vim.opt.mouse = 'a'
|
||||
vim.opt.autochdir = true
|
||||
vim.opt.clipboard = 'unnamed,unnamedplus'
|
||||
vim.opt.number = true
|
||||
vim.opt.wrap = false
|
||||
vim.opt.signcolumn = 'yes:2'
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = 'tab:▸ ,trail:·'
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.expandtab = false
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
|
Reference in New Issue
Block a user