nvim: Remove cmdline if not used, split buffers belowright
This commit is contained in:
parent
e6d7578198
commit
74bbaf4daf
1 changed files with 8 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
local default_builtins_disabled = {"netrw", "netrwPlugin"}
|
local default_builtins_disabled = { "netrw", "netrwPlugin" }
|
||||||
local disable_builtins = function(builtins)
|
local disable_builtins = function(builtins)
|
||||||
for _, plugin in pairs(builtins) do vim.g["loaded_" .. plugin] = 1 end
|
for _, plugin in pairs(builtins) do vim.g["loaded_" .. plugin] = 1 end
|
||||||
end
|
end
|
||||||
|
@ -12,23 +12,19 @@ local o = {
|
||||||
shiftwidth = 4,
|
shiftwidth = 4,
|
||||||
softtabstop = 4,
|
softtabstop = 4,
|
||||||
expandtab = true,
|
expandtab = true,
|
||||||
|
|
||||||
-- make jumplist behave more like browser, when jumping back
|
-- make jumplist behave more like browser, when jumping back
|
||||||
-- and then adding a new jump discards all the previous
|
-- and then adding a new jump discards all the previous
|
||||||
-- 'future-jump' tree, making more sense for wiki-like movement
|
-- 'future-jump' tree, making more sense for wiki-like movement
|
||||||
jumpoptions = 'stack',
|
jumpoptions = 'stack',
|
||||||
|
|
||||||
-- set cursor line highlighting, esp useful when using with bracket
|
-- set cursor line highlighting, esp useful when using with bracket
|
||||||
-- highlighting and you don't know which side of the brace the cursor is on
|
-- highlighting and you don't know which side of the brace the cursor is on
|
||||||
cursorline = true,
|
cursorline = true,
|
||||||
|
|
||||||
-- shows linenumbers relative to the one you are on, for easy movement and
|
-- shows linenumbers relative to the one you are on, for easy movement and
|
||||||
-- dNUMBERd deletions
|
-- dNUMBERd deletions
|
||||||
number = true,
|
number = true,
|
||||||
relativenumber = true,
|
relativenumber = true,
|
||||||
-- puts the numbers into the signcolumn so when git/lsp show signs there's no jump
|
-- puts the numbers into the signcolumn so when git/lsp show signs there's no jump
|
||||||
signcolumn = 'number',
|
signcolumn = 'number',
|
||||||
|
|
||||||
-- keeps an undofile next to files so that you can even undo if vim is closed
|
-- keeps an undofile next to files so that you can even undo if vim is closed
|
||||||
-- in between
|
-- in between
|
||||||
undofile = true,
|
undofile = true,
|
||||||
|
@ -38,32 +34,30 @@ local o = {
|
||||||
-- all lowercased
|
-- all lowercased
|
||||||
ignorecase = true,
|
ignorecase = true,
|
||||||
smartcase = true,
|
smartcase = true,
|
||||||
|
|
||||||
-- shows previews of what substitute command will do (and a couple others)
|
-- shows previews of what substitute command will do (and a couple others)
|
||||||
inccommand = 'split',
|
inccommand = 'split',
|
||||||
|
|
||||||
-- disables showing us the current mode in the command line since airline takes
|
-- disables showing us the current mode in the command line since airline takes
|
||||||
-- care of it
|
-- care of it
|
||||||
showmode = false,
|
showmode = false,
|
||||||
-- turn off modeline, to ensure security observation
|
-- turn off modeline, to ensure security observation
|
||||||
modeline = false,
|
modeline = false,
|
||||||
|
|
||||||
-- i feel foldlevel 2 is generally pretty usable, for headlines and similar
|
-- i feel foldlevel 2 is generally pretty usable, for headlines and similar
|
||||||
|
-- set to use treesitter in treesitter config
|
||||||
foldlevel = 2,
|
foldlevel = 2,
|
||||||
conceallevel = 2,
|
conceallevel = 2,
|
||||||
|
|
||||||
-- enable mouse, doesn't bug me and might come in useful at some point
|
-- enable mouse, doesn't bug me and might come in useful at some point
|
||||||
mouse = 'a',
|
mouse = 'a',
|
||||||
|
|
||||||
-- pump all clippings into the system clipboard
|
-- pump all clippings into the system clipboard
|
||||||
clipboard = 'unnamedplus',
|
clipboard = 'unnamedplus',
|
||||||
|
|
||||||
-- turn of automatic resizing of individual splits
|
-- turn of automatic resizing of individual splits
|
||||||
equalalways = false,
|
equalalways = false,
|
||||||
|
|
||||||
-- make sure there's always *some* context below cursor
|
-- make sure there's always *some* context below cursor
|
||||||
scrolloff = 4
|
scrolloff = 4,
|
||||||
|
-- open new buffers bottomright
|
||||||
|
splitright = true,
|
||||||
|
splitbelow = true,
|
||||||
|
-- remove command line if no command is currently present
|
||||||
|
cmdheight = 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v in pairs(o) do
|
for k, v in pairs(o) do
|
||||||
|
|
Loading…
Reference in a new issue