2023-01-14 04:05:17 +00:00
|
|
|
--Leader
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
--termguicolors
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
--Relative line numbers
|
|
|
|
vim.wo.number=true
|
|
|
|
vim.wo.relativenumber= true
|
|
|
|
--Remove search highlight
|
|
|
|
vim.opt.hlsearch = false
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
vim.opt.smartindent = true
|
2024-02-12 15:05:56 +00:00
|
|
|
--Change word definition
|
|
|
|
vim.opt.iskeyword:append("-")
|
|
|
|
vim.opt.iskeyword:append("_")
|
2023-01-14 04:05:17 +00:00
|
|
|
--Remove Wrap
|
|
|
|
vim.opt.wrap = false
|
|
|
|
--Not let cursor go bellow 10 chars.
|
|
|
|
vim.opt.scrolloff = 10
|
|
|
|
--4 space indent
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.softtabstop = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
--Undo dir
|
2024-06-08 18:04:38 +01:00
|
|
|
vim.opt.undodir = os.getenv("XDG_STATE_HOME") .. "/nvim/undodir"
|
2023-01-14 04:05:17 +00:00
|
|
|
vim.opt.undofile = true
|
2024-06-01 19:56:18 +01:00
|
|
|
--Backup dir
|
|
|
|
vim.opt.backup = true
|
2024-06-08 18:04:38 +01:00
|
|
|
vim.opt.backupdir = os.getenv("XDG_STATE_HOME") .. "/nvim/backupdir"
|
2023-01-29 02:08:14 +00:00
|
|
|
--Org mode hide links
|
|
|
|
vim.opt.conceallevel = 2
|
|
|
|
vim.opt.concealcursor = 'nc'
|
2023-09-27 12:46:33 +01:00
|
|
|
--Jupyter notebooks
|
|
|
|
vim.g.jukit_convert_overwrite_default = 1
|
2023-09-28 15:39:20 +01:00
|
|
|
vim.g.jukit_convert_open_default = 0
|
2023-09-27 12:46:33 +01:00
|
|
|
vim.g.jukit_shell_cmd = 'ipython3'
|
|
|
|
vim.g.jukit_terminal = 'nvimterm'
|
2023-09-28 15:39:20 +01:00
|
|
|
vim.g.jukit_show_prompt = 1
|
|
|
|
vim.g.jukit_pdf_viewer = 'zathura'
|
2024-02-22 11:32:07 +00:00
|
|
|
vim.g.jukit_mappings = 0
|
|
|
|
--Format Options
|
|
|
|
vim.opt.formatoptions:remove("ro")
|
2024-04-27 16:02:41 +01:00
|
|
|
--Sign gutter always on
|
2024-06-01 03:53:39 +01:00
|
|
|
vim.opt.signcolumn = "yes"
|
2024-09-12 21:41:01 +01:00
|
|
|
-- sync buffers automatically
|
|
|
|
vim.opt.autoread = true
|
|
|
|
-- disable swapfile
|
|
|
|
vim.opt.swapfile = false
|
2024-11-12 15:42:56 +00:00
|
|
|
vim.opt.laststatus = 3
|