-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
92 lines (73 loc) · 1.73 KB
/
init.lua
File metadata and controls
92 lines (73 loc) · 1.73 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
-- Editor Settings
vim.opt.equalalways = false
vim.opt.clipboard = "unnamedplus"
vim.opt.mouse = ""
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.cursorline = true
vim.opt.termguicolors = true
vim.opt.autoindent = true
vim.opt.tabstop = 3
vim.opt.shiftwidth = 0
vim.opt.expandtab = false
vim.opt.list = true
vim.opt.listchars = {
["tab"] = "⟶ ",
["trail"] = "·",
["eol"] = "⏎",
}
vim.opt.termguicolors = true
vim.opt.fileformat = "unix"
vim.opt.fileformats = "unix"
-- goo goo ga ga ass progrmamers think spaces should be used instead of tabs.
-- baby need a binky? baby need to force their indent length on everyone else?
vim.cmd.filetype("plugin off")
vim.g.editorconfig = false
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
---@diagnostic disable-next-line: undefined-field
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", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
"neovim/nvim-lspconfig",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"hrsh7th/nvim-cmp",
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
},
"nvim-telescope/telescope.nvim",
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
})
vim.filetype.add({
extension = {
vs = "glsl",
fs = "glsl",
vsh = "glsl",
fsh = "glsl",
}
})
-- Tools
require("tools.quickterm")
-- require("tools.netrw_popup")
-- Config
require("config.colors")
require("config.border")
require("config.nvim-lspconfig")
require("config.lualine")
require("config.telescope")
require("config.treesitter")