more sane default prefs

This commit is contained in:
Oliver Ladner 2024-01-29 16:21:23 +01:00
commit 7b88ff0512
3 changed files with 25 additions and 8 deletions

View file

@ -5,6 +5,7 @@
"gitsigns.nvim": { "branch": "main", "commit": "4aaacbf5e5e2218fd05eb75703fe9e0f85335803" },
"indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"lazygit.nvim": { "branch": "main", "commit": "1e08e3f5ac1152339690140e61a4a32b3bdc7de5" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "dec1c21204e2d9d49dad989b577c88958ed2c113" },
"lualine.nvim": { "branch": "master", "commit": "566b7036f717f3d676362742630518a47f132fff" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "56e435e09f8729af2d41973e81a0db440f8fe9c9" },

View file

@ -1,5 +1,6 @@
return {
"lukas-reineke/indent-blankline.nvim",
enabled = false,
lazy = true,
event = { "BufReadPre", "BufNewFile" },
main = "ibl",

View file

@ -4,8 +4,15 @@ vim.opt.hlsearch = true
-- Incremental search, helps to find 'regex' for search
vim.opt.incsearch = true
-- Make line numbers default
vim.opt.number = true
-- Faster search
vim.opt.ignorecase = true
-- If given an uppercase, only display results with uppercase
vim.opt.smartcase = true
-- Show line numbers default
--vim.opt.number = true
-- Show relative line numbers
vim.opt.relativenumber = true
-- Separate sign colum (extra column for Git/LSP)
@ -15,6 +22,7 @@ vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true -- indent using spaces instead of <Tab>
--vim.opt.breakindent = true
-- highlight columns
vim.opt.colorcolumn = "80,120"
@ -26,12 +34,8 @@ vim.opt.colorcolumn = "80,120"
-- Always keep this amount of lines above and below the cursor
vim.opt.scrolloff = 5
-- Always show tab bar
-- NOTE: I try to get away from this by using buffer management with Telescope
--vim.opt.showtabline = 2
-- Highlight current line
--vim.opt.cursorline = true
vim.opt.cursorline = true
-- Blink cursor in normal mode
--vim.opt.guicursor = 'n:blinkon300-blinkwait200-blinkoff300'
@ -41,7 +45,12 @@ vim.opt.wrap = false
vim.opt.termguicolors = true
vim.opt.background = "dark" -- light, dark
-- Themes: duskfox, tokyonight-night, tokyonight-storm, tokyonight-day, tokyonight-moon
-- Themes:
-- duskfox
-- tokyonight-night
-- tokyonight-storm
-- tokyonight-day
-- tokyonight-moon
vim.cmd.colorscheme("tokyonight-storm")
-- Decrease update time
@ -51,3 +60,9 @@ vim.opt.timeoutlen = 300
-- Set completeopt to have a better completion experience
-- https://neovim.io/doc/user/options.html
vim.opt.completeopt = "menuone,noselect"
-- Split windows appear below, not above
vim.opt.splitbelow = true
-- Split windows appear to the right instead of left
vim.opt.splitright = true