migrate neovim config to lua

This commit is contained in:
eneller
2022-05-22 09:11:50 +02:00
parent df27d8183d
commit 6549036f25
6 changed files with 2834 additions and 188 deletions

31
.config/nvim/init.lua Normal file
View File

@@ -0,0 +1,31 @@
local o = vim.o
local wo = vim.wo
local bo = vim.bo
-- Install packer https://github.com/wbthomason/packer.nvim#bootstrapping
-- GLOBAL SETTINGS
o.termguicolors = true
vim.cmd('colorscheme monokai') -- set colorscheme
o.syntax = 'on'
o.errorbells = false
o.smartcase = true
o.showmode = true
bo.swapfile = false
o.backup = false
o.undodir = vim.fn.stdpath('config') .. '/undodir'
o.undofile = true
o.incsearch = true
o.hidden = true
o.completeopt='menuone,noinsert,noselect'
bo.autoindent = true
bo.smartindent = true
o.tabstop = 2
o.softtabstop = 2
o.shiftwidth = 2
o.expandtab = true
wo.number = true
wo.relativenumber = true
o.scrolloff = 8
wo.signcolumn = 'yes'
wo.wrap = false
-- KEYBINDS