Add laststatus = 3 so that we can see fillchars for splits, additionally, ran formatter

This commit is contained in:
Martin Larsson 2024-04-08 23:17:01 +02:00
parent a0167322fc
commit f6dee75d2c

View file

@ -1,16 +1,16 @@
local opt = vim.opt local opt = vim.opt
-- Disable tabs, will use telescope and harpoon instead -- Disable tabs, will use telescope and harpoon instead
opt.showtabline = 0 opt.showtabline = 0
-- Make Vim use the system clipboard -- Make Vim use the system clipboard
opt.clipboard = "unnamedplus" opt.clipboard = "unnamedplus"
-- Highlight the currently selected row -- Highlight the currently selected row
opt.cursorline = true opt.cursorline = true
opt.cursorlineopt = "both" opt.cursorlineopt = "both"
-- Indenting -- Indenting
opt.expandtab = true opt.expandtab = true
opt.smartindent = true opt.smartindent = true
opt.breakindent = true opt.breakindent = true
@ -18,41 +18,43 @@ opt.shiftwidth = 4
opt.tabstop = 4 opt.tabstop = 4
opt.softtabstop = 4 opt.softtabstop = 4
-- Disable home screen -- Disable home screen
opt.shortmess:append("sI") opt.shortmess:append("sI")
-- Signcolumn -- Signcolumn
opt.signcolumn = "yes:1" -- Adds a spacing to the left which can contain gutter icons opt.signcolumn = "yes:1" -- Adds a spacing to the left which can contain gutter icons
opt.fillchars = { eob = " " } -- Remove the fill character for empty lines which defaults to: "~" opt.fillchars = { eob = " " } -- Remove the fill character for empty lines which defaults to: "~"
-- Search -- Search
opt.ignorecase = true opt.ignorecase = true
opt.smartcase = true opt.smartcase = true
opt.incsearch = true opt.incsearch = true
-- Disable mouse support -- Disable mouse support
opt.mouse = "" opt.mouse = ""
-- Numbers -- Numbers
opt.number = true opt.number = true
opt.relativenumber = true opt.relativenumber = true
opt.numberwidth = 4 opt.numberwidth = 4
-- Decrease update time -- Decrease update time
opt.updatetime = 250 opt.updatetime = 250
opt.timeoutlen = 300 opt.timeoutlen = 300
-- Richer colors in terminal, not all terminals support this -- Richer colors in terminal, not all terminals support this
opt.termguicolors = true opt.termguicolors = true
-- Disable swapfile, 99/100 times it just gets in the way -- Disable swapfile, 99/100 times it just gets in the way
opt.swapfile = false opt.swapfile = false
-- Buffers -- Buffers
opt.splitright = true opt.splitright = true
opt.splitbelow = true opt.splitbelow = true
-- Removes the extra command line bar at the bottom, using lualine instead -- Removes the extra command line bar at the bottom, using lualine instead
opt.cmdheight = 0 opt.cmdheight = 0
opt.laststatus = 3
return opt return opt