feat(line-length): update line length to 100 cols
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ continuation_indent = 4
|
||||
|
||||
# this mean utf8 length , if this is 'unset' then the line width is no longer checked
|
||||
# this option decides when to chopdown the code
|
||||
max_line_length = 80
|
||||
max_line_length = 100
|
||||
|
||||
# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
|
||||
# in neovim the value 'auto' is not a valid option, please use 'unset'
|
||||
|
||||
@@ -11,7 +11,6 @@ vim.keymap.set("n", "<C-s>", function ()
|
||||
vim.cmd.write({ mods = { silent = true, }, })
|
||||
end)
|
||||
-- Cycle buffers
|
||||
-- TODO: change to :bnext and :bprev
|
||||
vim.keymap.set("n", "<C-End>", vim.cmd.bnext)
|
||||
vim.keymap.set("n", "<C-Home>", vim.cmd.bprev)
|
||||
|
||||
@@ -20,6 +19,14 @@ vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
-- nnoremap <expr> j v:count ? 'j' : 'gj'
|
||||
-- nnoremap <expr> k v:count ? 'k' : 'gk'
|
||||
vim.keymap.set("n", "j", function ()
|
||||
return vim.v.count == 0 and "gj" or "j"
|
||||
end, { expr = true })
|
||||
vim.keymap.set("n", "k", function ()
|
||||
return vim.v.count == 0 and "gk" or "k"
|
||||
end, { expr = true })
|
||||
|
||||
--- General mappings ---
|
||||
-- yank/put using named register
|
||||
|
||||
@@ -77,7 +77,7 @@ vim.cmd.filetype("plugin on")
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.laststatus = 3
|
||||
vim.opt.textwidth = 0
|
||||
vim.opt.colorcolumn = "81"
|
||||
vim.opt.colorcolumn = "101"
|
||||
vim.opt.shortmess:append("a")
|
||||
vim.opt.autoread = true
|
||||
-- vim.opt.cmdheight = 0 -- To hide cmdline when not used. Disabled due to
|
||||
|
||||
@@ -34,6 +34,8 @@ return {
|
||||
flake8 = {
|
||||
command = "flake8",
|
||||
args = {
|
||||
"--max-line-length=100",
|
||||
"--max-doc-length=100",
|
||||
"--format",
|
||||
"%(row)d,%(col)d,%(code).1s,%(code)s: %(text)s",
|
||||
"-",
|
||||
@@ -131,7 +133,7 @@ return {
|
||||
black = {
|
||||
command = "black",
|
||||
args = {
|
||||
"--line-length", "80",
|
||||
"--line-length", "100",
|
||||
"--stdin-filename",
|
||||
"%filename",
|
||||
"--quiet",
|
||||
|
||||
Reference in New Issue
Block a user