-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
63 lines (48 loc) · 1.23 KB
/
Copy pathinit.lua
File metadata and controls
63 lines (48 loc) · 1.23 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
require("config")
vim.g.mapleader = " "
vim.o.relativenumber = true
vim.cmd("filetype plugin indent on")
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.o.smarttab = true
vim.o.autoindent = true
vim.o.incsearch = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.hlsearch = true
vim.o.wildmode = "longest,list,full"
vim.o.wildmenu = true
vim.o.ruler = true
vim.o.laststatus = 2
vim.o.showcmd = true
vim.o.showmode = true
vim.o.wrap = true
vim.o.breakindent = true
vim.o.encoding = "utf-8"
vim.o.textwidth = 0
vim.o.hidden = true
vim.o.number = true
vim.o.title = true
vim.o.scrolloff = 10
vim.o.foldmethod = "indent"
vim.o.foldenable = false
vim.cmd([[
autocmd InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.svelte,*.yaml,*.html PrettierAsync
]])
vim.g.clang_format_style = [[
]]
vim.cmd([[
let g:clang_format#style_options = {
\ "BasedOnStyle": "Google",
\ "IndentWidth": 4,
\ "TabWidth": 4,
\ "FixNamespaceComments": "true",
\ "AllowShortIfStatementsOnASingleLine": "false",
\ "AllowShortFunctionsOnASingleLine": "false",
\ "Standard" : "C++11"}
]])
vim.cmd([[
autocmd BufWritePre *.c,*.cpp,*.h,*.hpp ClangFormat
]])