Initial commit

This commit is contained in:
eneller
2023-07-09 04:07:30 +02:00
commit 1b55d91ce1
36 changed files with 3900 additions and 0 deletions

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

@@ -0,0 +1,43 @@
require("plugins")
require("keybinds")
--- Functional wrapper for mapping custom keybindings
--- GENERAL SETTINGS
function map(mode, lhs, rhs, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
map("i","<C-c>","<Esc>")
vim.o.termguicolors = true
vim.cmd('colorscheme monokai') -- set colorscheme
vim.o.syntax = 'on'
vim.cmd('set title')
vim.opt.titlestring = [[%{v:progname}: %f %h%m%r%w ]]
-- vim.opt.titlestring = [[%f %h%m%r%w %{v:progname} (%{tabpagenr()} of %{tabpagenr('$')})]]
vim.o.errorbells = false
vim.o.smartcase = true
vim.o.showmode = true
vim.o.ignorecase = true -- case-insensitive search
vim.bo.swapfile = false
vim.o.backup = false
vim.o.undodir = vim.fn.stdpath('config') .. '/undodir'
vim.o.undofile = true
vim.o.incsearch = true
vim.o.hidden = true
vim.o.completeopt='menuone,noinsert,noselect'
vim.bo.autoindent = true
vim.bo.smartindent = true
vim.o.tabstop = 2
vim.o.softtabstop = 2
vim.o.shiftwidth = 2
vim.o.expandtab = true
vim.wo.number = true
vim.wo.relativenumber = true
vim.o.scrolloff = 8
vim.wo.signcolumn = 'yes'
vim.wo.wrap = false
vim.opt.cursorline = true