dotfiles/nvim/init.lua

65 lines
1.5 KiB
Lua
Raw Permalink 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
2023-10-30 14:49:11 +01:00
vim.opt.completeopt = { 'menuone', 'noselect', 'noinsert' }
vim.opt.shortmess = vim.opt.shortmess + { c = true }
2023-06-19 19:41:04 +02:00
vim.opt.timeoutlen = 1000 -- For agda unicode chars to work properly
-- Languagetool stuff
vim.g.languagetool_server_command = '/usr/bin/languagetool --http'
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
2023-06-19 19:41:04 +02:00
vim.g.vimtex_compiler_latexmk = { -- Make vimtex allow shell-escape while compiling
2023-10-30 14:49:11 +01:00
options = {
'-shell-escape',
'-verbose',
'-file-line-error',
'-synctex=1',
'-interaction=nonstopmode'
}
2023-06-19 19:41:04 +02:00
}
2023-10-30 14:49:11 +01:00
-- Autoformat on save
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
2022-08-20 16:36:33 +02:00
-- TODO:
-- - Debugger integration (gdb?, java?/kotlin?, rust?, etc) - nvim-dap and friends