nvim editorconfig
This commit is contained in:
parent
f46a0e5627
commit
146cb9745c
@ -1,5 +0,0 @@
|
|||||||
local opt = vim.opt_local
|
|
||||||
|
|
||||||
opt.tabstop = 2
|
|
||||||
opt.softtabstop = 2
|
|
||||||
opt.shiftwidth = vim.bo.tabstop
|
|
||||||
@ -132,4 +132,4 @@ vim.api.nvim_create_autocmd("BufReadPost", {
|
|||||||
vim.api.nvim_exec("normal! g'\"",false)
|
vim.api.nvim_exec("normal! g'\"",false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
@ -1,4 +1,22 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
tab_width = 4
|
||||||
|
|
||||||
|
[*.{cpp,h}]
|
||||||
|
indent_size = 2
|
||||||
|
tab_width = 2
|
||||||
|
|
||||||
|
[*.py]
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = tab
|
||||||
|
tab_width = 4
|
||||||
Loading…
x
Reference in New Issue
Block a user