diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index ec52b28..e4663c5 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -23,21 +23,31 @@ vim.keymap.set("x", "ga", "(EasyAlign)") -- variables vim.g.mapleader = " " + vim.o.path = vim.o.path .. ",**" + vim.o.expandtab = true -vim.o.smartindent = true vim.o.shiftwidth = 4 +vim.o.smartindent = true vim.o.tabstop = 4 + +vim.o.list = true vim.o.number = true vim.o.relativenumber = true + vim.o.ignorecase = true vim.o.smartcase = true -vim.o.list = true + +vim.o.guicursor = "" vim.o.mouse = "a" + vim.o.suffixes = vim.o.suffixes .. ",.pyc" + vim.o.foldmethod = "indent" vim.o.foldlevel = 99 + vim.o.grepprg = "grep -rn" + vim.wo.cc = "80" -- keybindings @@ -50,4 +60,4 @@ vim.keymap.set("t", "", "" ) vim.keymap.set("n", "gf", "gF" ) -- remove trailing whitespaces -vim.keymap.set("n", "w", ":%s/\\s\\+$//e") +vim.keymap.set("n", "w", "%s/\\s\\+$//e")