nvim dot files
1-- Bootstrap lazy.nvim
2local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
3if not (vim.uv or vim.loop).fs_stat(lazypath) then
4 local lazyrepo = "https://github.com/folke/lazy.nvim.git"
5 local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
6 if vim.v.shell_error ~= 0 then
7 vim.api.nvim_echo({
8 { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
9 { out, "WarningMsg" },
10 { "\nPress any key to exit..." },
11 }, true, {})
12 vim.fn.getchar()
13 os.exit(1)
14 end
15end
16vim.opt.rtp:prepend(lazypath)
17
18-- Make sure to setup `mapleader` and `maplocalleader` before
19-- loading lazy.nvim so that mappings are correct.
20-- This is also a good place to setup other settings (vim.opt)
21vim.g.mapleader = " "
22vim.g.maplocalleader = "\\"
23
24vim.opt.nu = true
25vim.opt.relativenumber = true
26vim.opt.tabstop = 4
27vim.opt.softtabstop = 4
28vim.opt.shiftwidth = 4
29vim.opt.expandtab = true
30vim.opt.smartindent = true
31vim.opt.wrap = false
32vim.opt.background = "light"
33vim.opt.incsearch = true
34vim.opt.termguicolors = true
35vim.opt.updatetime = 50
36vim.opt.signcolumn = 'no'
37vim.opt.colorcolumn = '100'
38
39-- Setup lazy.nvim
40require("lazy").setup({
41 spec = {
42 -- import your plugins
43 { import = "plugins" },
44 },
45 -- Configure any other settings here. See the documentation for more details.
46 -- colorscheme that will be used when installing plugins.
47 install = { },
48 -- automatically check for plugin updates
49 checker = { enabled = true },
50})