This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-04 01:19:26 +01:00
|
|
|
vim.g.mapleader = " "
|
|
|
|
|
|
|
|
-- 4 space tabs
|
|
|
|
vim.o.expandtab = true
|
2023-09-25 14:30:25 +01:00
|
|
|
vim.o.shiftwidth = 4
|
|
|
|
vim.o.tabstop = 4
|
2023-06-04 01:19:26 +01:00
|
|
|
vim.o.smartindent = true
|
|
|
|
|
|
|
|
vim.o.background = "dark"
|
|
|
|
vim.o.clipboard = "unnamedplus"
|
2023-08-30 20:23:45 +01:00
|
|
|
-- vim.o.mouse = ""
|
2023-06-04 01:19:26 +01:00
|
|
|
vim.o.termguicolors = true
|
|
|
|
vim.o.ignorecase = true
|
|
|
|
vim.o.smartcase = true
|
|
|
|
vim.o.wrap = false
|
|
|
|
vim.o.scrolloff = 8
|
|
|
|
|
|
|
|
vim.o.swapfile = false
|
|
|
|
vim.o.backup = false
|
|
|
|
vim.o.undodir = os.getenv("HOME") .. "/.local/share/nvim/undodir"
|
|
|
|
vim.o.undofile = true
|
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
vim.o.scrolloff = 8
|
|
|
|
|
2023-06-04 01:19:26 +01:00
|
|
|
vim.wo.number = true
|
|
|
|
vim.wo.relativenumber = true
|
2023-12-21 19:18:51 +00:00
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
2023-12-21 19:22:52 +00:00
|
|
|
pattern = "nix",
|
|
|
|
callback = function()
|
|
|
|
vim.opt_local.shiftwidth = 2
|
|
|
|
vim.opt_local.tabstop = 2
|
|
|
|
end,
|
2023-12-21 19:18:51 +00:00
|
|
|
})
|