Skip to content

Instantly share code, notes, and snippets.

@B-Ricey763
Last active September 9, 2021 02:42
Show Gist options
  • Select an option

  • Save B-Ricey763/0c4cdc3fccb6bf8d73dc407bbfef60d0 to your computer and use it in GitHub Desktop.

Select an option

Save B-Ricey763/0c4cdc3fccb6bf8d73dc407bbfef60d0 to your computer and use it in GitHub Desktop.
My neovim configuration written in lua
local cmd = vim.cmd
local exec = vim.api.nvim_exec
require('plugins')
require('mappings')
cmd("set termguicolors")
cmd("set number")
-- Colorscheme stuff
vim.g.gruvbox_contrast_dark = 'soft'
cmd('colorscheme gruvbox')
-- Mappings
local map = vim.api.nvim_set_keymap
local opts = { noremap = true }
vim.g.mapleader = ','
map('', '<Leader>w', ':w <CR>', opts)
map('', '<Leader>x', ':x <CR>', opts)
map('', '<Leader>q', ':q! <CR>', opts)
map('t', '<Esc><Esc>', '<c-\\><c-n>', opts)
map('n', '<Tab>', '<c-w>', opts)
map('n', '<CR>', 'o<Esc>', opts)
local cmd = vim.cmd
local exec = vim.api.nvim_exec
require('plugins')
require('mappings')
cmd("set termguicolors")
cmd("set number")
-- Colorscheme stuff
vim.g.gruvbox_contrast_dark = 'soft'
cmd('colorscheme gruvbox')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment