aboutsummaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-01 13:58:33 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-01 14:33:40 +0100
commit883bd793b4bbe14e1e80c581e3d5ffa612771452 (patch)
tree74d1778241b45acbcc437f30a2d7d5e9143796f5 /.editorconfig
parentfix: return string instead of table for find_mercurial_ancestor (diff)
downloadnvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar.gz
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar.bz2
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar.lz
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar.xz
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.tar.zst
nvim-lspconfig-883bd793b4bbe14e1e80c581e3d5ffa612771452.zip
build(editorconfig): set max_line_length to 120 only for lua files
Setting it for all filetypes is usually not correct. For example, git commits are also affected by this option which makes 120 columns too long.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/.editorconfig b/.editorconfig
index edf2a6d8..1a50d9c8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,13 +1,14 @@
root = true
[*]
-max_line_length = 120
indent_style = space
indent_size = 2
tab_width = 8
end_of_line = lf
insert_final_newline = true
-charset = utf-8
+
+[*.lua]
+max_line_length = 120
[{Makefile,**/Makefile,runtime/doc/*.txt}]
indent_style = tab