From f3313a47356b626231a871fa5bdbd9ff9f6a886f Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 23 Aug 2024 12:22:20 +0200 Subject: [PATCH] feat(core): update line length to 80 --- lua/core/options.lua | 2 +- lua/lsp/config/pyright.lua | 8 ++++---- stylua.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index 46b2d66..ed3001b 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -77,7 +77,7 @@ vim.cmd.filetype("plugin on") vim.opt.hlsearch = true vim.opt.laststatus = 3 vim.opt.textwidth = 0 -vim.opt.colorcolumn = "101" +vim.opt.colorcolumn = "81" vim.opt.shortmess:append("a") vim.opt.autoread = true -- vim.opt.cmdheight = 0 -- To hide cmdline when not used. Disabled due to diff --git a/lua/lsp/config/pyright.lua b/lua/lsp/config/pyright.lua index 44355ee..f5d491b 100644 --- a/lua/lsp/config/pyright.lua +++ b/lua/lsp/config/pyright.lua @@ -9,8 +9,8 @@ return { { cmd = { "flake8", - "--max-line-length=100", - "--max-doc-length=100", + "--max-line-length=80", + "--max-doc-length=80", "--format", "%(row)d,%(col)d,%(code).1s: %(text)s", "-", @@ -38,7 +38,7 @@ return { cmd = { "black", "--line-length", - "100", + "80", "--stdin-filename", "%filename%", "--quiet", @@ -64,7 +64,7 @@ return { cmd = { "black", "--line-length", - "100", + "80", "--stdin-filename", "%filename%", "--quiet", diff --git a/stylua.toml b/stylua.toml index 4329fd2..fc11b0b 100644 --- a/stylua.toml +++ b/stylua.toml @@ -1,4 +1,4 @@ -column_width = 100 +column_width = 80 line_endings = "Unix" indent_type = "Spaces" indent_width = 4