1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Neovide config

This commit is contained in:
Daniel Barber 2023-05-02 22:19:25 -05:00
parent 8d11026e44
commit 7a3c86f0f4

View File

@ -4,6 +4,9 @@ local indent = 2
vim.opt.updatetime = 100
-- Local project config
vim.opt.exrc = true
-- Tabstops
vim.opt.expandtab = true
vim.opt.shiftwidth = indent
@ -14,9 +17,20 @@ vim.opt.tabstop = indent
vim.opt.number = true
-- Line width
vim.opt.textwidth = 120
vim.opt.colorcolumn = "+1"
local colorcolumns = {}
for i = 1, 40 do
table.insert(colorcolumns, string.format("+%i", i))
end
vim.opt.textwidth = 80
vim.opt.colorcolumn = table.concat(colorcolumns, ",")
-- Open new split panes to the right and bottom, which feels more natural
vim.opt.splitbelow = true
vim.opt.splitright = true
-- Neovide
if vim.g.neovide then
vim.g.neovide_cursor_animation_length = 0
vim.g.neovide_background_color = "#20252c"
end