dotfiles/nvim/init.lua

47 lines
1013 B
Lua
Raw Normal View History

2022-08-20 16:36:33 +02:00
vim.opt.termguicolors = true
vim.opt.clipboard = 'unnamed,unnamedplus'
vim.opt.timeoutlen = 300
vim.opt.mouse = 'a'
vim.opt.listchars = 'tab:▸ ,extends:,precedes:'
2023-04-23 18:55:30 +02:00
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = vim.fn.expand('~/.cache/vim/undo')
vim.opt.undofile = true
vim.opt.number = true
2022-08-20 16:36:33 +02:00
vim.opt.relativenumber = true
vim.opt.list = true
2023-04-23 18:55:30 +02:00
vim.opt.wrap = false
vim.opt.scrolloff = 8
2022-08-20 16:36:33 +02:00
vim.opt.autoindent = true
vim.opt.expandtab = true
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.smartindent = true
vim.opt.modeline = true
vim.opt.spell = true
2022-08-20 16:36:33 +02:00
vim.g.mapleader = ' '
2023-04-23 18:55:30 +02:00
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.signcolumn = 'yes'
vim.opt.updatetime = 50
vim.opt.completeopt = {'menuone', 'noselect', 'noinsert'}
vim.opt.shortmess = vim.opt.shortmess + { c = true}
2022-08-20 16:36:33 +02:00
-- Load plugins
require('kalle.plugins')
2023-04-23 18:55:30 +02:00
vim.cmd.colorscheme('carbonfox')
2022-08-20 16:36:33 +02:00
-- TODO:
-- - Debugger integration (gdb?, java?/kotlin?, rust?, etc) - nvim-dap and friends