From 779f17b04d680cb770d1c910583d751e680b4f3a Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 28 May 2023 05:51:16 +0200 Subject: [PATCH] Changed lua formatter and check to 200 lines --- config/nvim/lua/user/.stylua.toml | 2 +- luacheckrc | 4 ++++ update.sh | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 luacheckrc diff --git a/config/nvim/lua/user/.stylua.toml b/config/nvim/lua/user/.stylua.toml index bfcffff..ae75a92 100644 --- a/config/nvim/lua/user/.stylua.toml +++ b/config/nvim/lua/user/.stylua.toml @@ -1,4 +1,4 @@ -column_width = 120 +column_width = 200 line_endings = "Unix" indent_type = "Spaces" indent_width = 2 diff --git a/luacheckrc b/luacheckrc new file mode 100644 index 0000000..81e0a72 --- /dev/null +++ b/luacheckrc @@ -0,0 +1,4 @@ +max_line_length = 200 +max_code_line_length = 200 +max_string_line_length = 200 +max_comment_line_length = 200 diff --git a/update.sh b/update.sh index 6344040..11dd0df 100755 --- a/update.sh +++ b/update.sh @@ -105,6 +105,9 @@ ln -sf ~/code_server/config/nvim/lua/user ~/.config/nvim/lua/user && \ # Symlink lazygit config ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml && \ +# Symlink luacheck config +ln -sf ~/code_server/luacheckrc ~/.luacheckrc && \ + # Restore default .bashrc sudo /bin/cp /etc/skel/.bashrc ~/.bashrc && \