mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-03 01:25:33 +02:00
fix(options): only set splitkeep on Neovim 0.9.0
This commit is contained in:
parent
ddd014398c
commit
3b700fc28c
1 changed files with 5 additions and 2 deletions
|
@ -28,7 +28,6 @@ vim.opt.scrolloff = 4 -- Lines of context
|
|||
vim.opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
|
||||
vim.opt.shiftround = true -- Round indent
|
||||
vim.opt.shiftwidth = 2 -- Size of an indent
|
||||
vim.opt.shortmess = "filnxtToOFWIcC"
|
||||
vim.opt.showmode = false -- dont show mode since we have a statusline
|
||||
vim.opt.sidescrolloff = 8 -- Columns of context
|
||||
vim.opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
|
||||
|
@ -36,7 +35,6 @@ vim.opt.smartcase = true -- Don't ignore case with capitals
|
|||
vim.opt.smartindent = true -- Insert indents automatically
|
||||
vim.opt.spelllang = { "en" }
|
||||
vim.opt.splitbelow = true -- Put new windows below current
|
||||
vim.opt.splitkeep = "screen"
|
||||
vim.opt.splitright = true -- Put new windows right of current
|
||||
vim.opt.tabstop = 2 -- Number of spaces tabs count for
|
||||
vim.opt.termguicolors = true -- True color support
|
||||
|
@ -47,5 +45,10 @@ vim.opt.updatetime = 200 -- save swap file and trigger CursorHold
|
|||
vim.opt.wildmode = "longest:full,full" -- Command-line completion mode
|
||||
vim.opt.wrap = false -- Disable line wrap
|
||||
|
||||
if vim.fn.has("nvim-0.9.0") == 1 then
|
||||
vim.opt.splitkeep = "screen"
|
||||
vim.o.shortmess = "filnxtToOFWIcC"
|
||||
end
|
||||
|
||||
-- fix markdown indentation settings
|
||||
vim.g.markdown_recommended_style = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue