-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
43 lines (38 loc) · 1.25 KB
/
init.lua
File metadata and controls
43 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.o.foldcolumn = "2" -- '0' is not bad
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true
vim.o.termguicolors = true
vim.opt.number = true
vim.opt.relativenumber = true
-- vim.opt.statuscolumn = " %s%#LineNr#%{printf('%3d',v:lnum)}|%#RelativeLineNr#%{printf('%-2d',v:relnum)}%#LineNr# "
-- In init.lua / config:
vim.opt.statuscolumn = "%!v:lua.require'statuscolumn'.render()"
vim.opt.cursorline = true
vim.cmd.colorscheme("pando")
-- LSP diagnostics configuration
vim.diagnostic.config({
virtual_text = false, -- Don't show error text inline
signs = true, -- Show error signs in gutter
underline = true, -- Show underlines for errors
update_in_insert = false,
severity_sort = true,
})
-- Bootstrap lazy.nvim (package manager)
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("keymaps")
require("lazy").setup("plugins")