nvim editorconfig

This commit is contained in:
thek4n 2024-01-23 19:21:59 +03:00
parent f46a0e5627
commit 146cb9745c
3 changed files with 20 additions and 7 deletions

View File

@ -1,5 +0,0 @@
local opt = vim.opt_local
opt.tabstop = 2
opt.softtabstop = 2
opt.shiftwidth = vim.bo.tabstop

View File

@ -1,4 +1,22 @@
root = true
[*]
end_of_line = lf
insert_final_newline = false
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