Skip to content

Instantly share code, notes, and snippets.

@abanoubha
Last active April 29, 2024 12:47
Show Gist options
  • Save abanoubha/7aaf5ff87d8772d7d8a456a42c0bfaac to your computer and use it in GitHub Desktop.
Save abanoubha/7aaf5ff87d8772d7d8a456a42c0bfaac to your computer and use it in GitHub Desktop.
simple nvim config
vim.wo.number = true
vim.opt.relativenumber = true
vim.o.mouse = 'a'
vim.o.clipboard = 'unnamedplus'
vim.o.undofile = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.updatetime = 250
vim.o.timeoutlen = 300
-- Automatically remove trailing spaces when saving
vim.cmd[[autocmd BufWritePre * :%s/\s\+$//e]]
-- vim.cmd[[colorscheme murphy]]
vim.cmd.colorscheme("murphy")
-- tab is 2 spaces
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment