nix/home/file/nvim/module/config/Etc.nix

37 lines
978 B
Nix
Raw Normal View History

2024-11-04 04:37:29 +03:00
{ ... }: {
text = ''
-- TODO: Add comments and separate files.
vim.opt.clipboard = "unnamedplus"
vim.opt.cursorline = false
vim.opt.fixeol = false
vim.opt.incsearch = true
vim.opt.number = true
vim.opt.scrolloff = 4
vim.opt.splitbelow = true
vim.opt.splitright = true
vim.opt.termguicolors = true
vim.opt.ttyfast = true
vim.opt.wildmode = "longest,list"
-- vim.opt.completeopt = "menuone,noselect"
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
-- Disable continuing comments on newline.
vim.cmd("autocmd BufEnter * set fo-=c fo-=r fo-=o")
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
-- Disable mouse.
vim.cmd("set mouse=")
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
-- Disable signs for diagnostics.
vim.diagnostic.config({ signs = false })
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
-- Display invisible characters.
-- vim.cmd("set list listchars=tab:>\\ ,trail:-,eol:,lead:.")
vim.cmd("set list listchars=tab:>\\ ,trail:-,lead:·")
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
-- Relative line numbers.
vim.wo.relativenumber = true
2024-05-14 20:21:41 +03:00
2024-11-04 04:37:29 +03:00
-- Disable swap files.
vim.opt.swapfile = false
'';
2024-04-06 03:03:58 +03:00
}