added options for neovim
This commit is contained in:
parent
5c63bbe2d6
commit
02887a70f2
33
nix/users/base/neovim/core/options.lua
Normal file
33
nix/users/base/neovim/core/options.lua
Normal file
@ -0,0 +1,33 @@
|
||||
local opt = vim.opt
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.guicursor = "a:blinkon0" --Disable cursor blink
|
||||
opt.guicursor = "i:ver25-iCursor" --Change to beam cursor when in insert mode
|
||||
opt.mouse = "a"
|
||||
opt.smartcase = true
|
||||
opt.smartindent = true
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.cursorline = false
|
||||
opt.cursorlineopt='number'
|
||||
opt.wrap = false
|
||||
opt.shiftwidth = 4
|
||||
opt.softtabstop = 4
|
||||
opt.tabstop = 4
|
||||
opt.backupdir = vim.fn.expand("~/.local/share/nvim/data/backup")
|
||||
opt.undodir = vim.fn.expand("~/.local/share/nvim/data/undo")
|
||||
opt.directory = vim.fn.expand("~/.local/share/nvim/data/swap")
|
||||
opt.ignorecase = true
|
||||
opt.splitbelow = true
|
||||
opt.splitright = true
|
||||
opt.swapfile = false
|
||||
opt.undofile = true
|
||||
opt.backup = false
|
||||
opt.expandtab = true
|
||||
opt.termguicolors = true
|
||||
opt.scrolloff = 8
|
||||
opt.updatetime = 50
|
||||
opt.cursorline = true
|
||||
vim.api.nvim_create_autocmd("FileType", { --Set indentation to 2 spaces for nix files
|
||||
pattern = "nix",
|
||||
command = "setlocal shiftwidth=2 tabstop=2"
|
||||
})
|
Loading…
Reference in New Issue
Block a user