mirror of https://github.com/wlcx/home.git
vim: Tweak textwidth, fix python autoindent
This commit is contained in:
parent
7ac16e425a
commit
d2d59eefa0
|
@ -2,12 +2,13 @@
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
vim.o.relativenumber = true -- number + relativenumber == hybrid
|
vim.o.relativenumber = true -- number + relativenumber == hybrid
|
||||||
vim.o.mouse = "nvi" -- mouse mode in normal, visual and insert
|
vim.o.mouse = "nvi" -- mouse mode in normal, visual and insert
|
||||||
vim.o.textwidth = 88 -- A vaguely sensible default textwidth
|
vim.o.textwidth = 88 -- a vaguely sensible default textwidth
|
||||||
vim.o.colorcolumn = "+0" -- Mark the textwidth
|
vim.o.formatoptions = "cqj" -- the default, but minus `t` which autowraps text.
|
||||||
|
vim.o.colorcolumn = "+0" -- mark the textwidth
|
||||||
vim.o.shiftwidth = 4
|
vim.o.shiftwidth = 4
|
||||||
vim.o.tabstop = 4
|
vim.o.tabstop = 4
|
||||||
vim.o.softtabstop = 4
|
vim.o.softtabstop = 4
|
||||||
vim.o.expandtab = true
|
vim.o.expandtab = true -- owo expands ur tab
|
||||||
|
|
||||||
vim.o.list = true
|
vim.o.list = true
|
||||||
vim.o.listchars = "trail:·" -- show trailing spaces
|
vim.o.listchars = "trail:·" -- show trailing spaces
|
||||||
|
@ -19,3 +20,6 @@ vim.o.termguicolors = true
|
||||||
-- Keybinds
|
-- Keybinds
|
||||||
vim.api.nvim_set_keymap('n','<C-P>', '<cmd> FZF<CR>', { noremap=true })
|
vim.api.nvim_set_keymap('n','<C-P>', '<cmd> FZF<CR>', { noremap=true })
|
||||||
|
|
||||||
|
-- Language-specific
|
||||||
|
vim.g.pyindent_open_paren = "shiftwidth()" -- Don't double indent after ( you villain.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue