This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/nvim/lua/config/Etc.lua

28 lines
791 B
Lua
Raw Normal View History

2024-02-06 15:25:18 +03:00
-- TODO: Add comments and separate files.
vim.opt.clipboard = "unnamedplus"
-- vim.opt.completeopt = "menuone,noselect"
2023-08-08 16:24:15 +03:00
vim.opt.cursorline = true
vim.opt.fixeol = false
2024-02-06 15:25:18 +03:00
vim.opt.number = true
vim.opt.splitbelow = true
vim.opt.splitright = true
2023-08-08 16:24:15 +03:00
vim.opt.termguicolors = true
2024-02-06 15:25:18 +03:00
vim.opt.ttyfast = true
vim.opt.wildmode = "longest,list"
2023-08-08 16:24:15 +03:00
2024-02-06 15:25:18 +03:00
-- Disable continuing comments on newline.
2023-08-08 16:24:15 +03:00
vim.cmd("autocmd BufEnter * set fo-=c fo-=r fo-=o")
2023-09-29 01:16:02 +03:00
2024-02-06 15:25:18 +03:00
-- Disable mouse.
vim.cmd("set mouse=")
-- Disable signs for diagnostics.
2023-09-29 01:16:02 +03:00
vim.diagnostic.config({ signs = false })
2023-11-18 04:58:23 +03:00
2024-02-06 15:25:18 +03:00
-- Display invisible characters.
2023-11-18 05:09:41 +03:00
-- vim.cmd("set list listchars=tab:>\\ ,trail:-,eol:,lead:.")
vim.cmd("set list listchars=tab:>\\ ,trail:-,lead:.")
2024-02-20 02:02:10 +03:00
-- Relative line numbers.
vim.wo.relativenumber = true