-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
65 lines (47 loc) · 1.33 KB
/
init.lua
File metadata and controls
65 lines (47 loc) · 1.33 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
vim.api.nvim_create_user_command('NeovimOpenSettings', function()
vim.cmd.edit({ vim.fn.stdpath('config') })
end, {})
local conditions = require('libs.conditions')
if conditions.is_windows() then
vim.g.clipboard = "win32yank"
end
vim.o.shellslash = true
vim.o.isfname = table.concat({ vim.o.isfname, "(", ")" }, ",")
vim.o.textwidth = 89
vim.o.expandtab = true
vim.o.shiftwidth = 2
vim.o.tabstop = 2
vim.o.number = true
vim.o.relativenumber = true
vim.o.numberwidth = 5
vim.o.statuscolumn = " %s%=%{v:relnum ? v:relnum : v:lnum} "
vim.o.signcolumn = "yes:1"
vim.o.cursorline = true
vim.o.wrap = false
vim.o.scrolloff = 8
vim.o.sidescrolloff = 8
vim.o.winborder = "rounded"
vim.o.completeopt = "fuzzy,menu,menuone,noinsert,popup"
vim.o.autoindent = true
vim.o.smartindent = false
vim.o.cindent = false
vim.o.ff = "unix"
vim.o.swapfile = false
vim.o.termguicolors = true
vim.o.undofile = true
vim.o.incsearch = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.g.loaded_perl_provider = 0
vim.g.loaded_node_provider = 0
vim.g.loaded_python_provider = 0
vim.g.loaded_python3_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.mapleader = " "
require("libs.session").setup()
require("libs.exrc").setup()
require("configs.keymaps")
require("configs.plugins")
require("configs.diagnostics")
require("configs.lsp")
require("configs.autocmds")