]> git.madduck.net Git - etc/neovim.git/blobdiff - .config/nvim/init.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Clear highlights with <Esc>
[etc/neovim.git] / .config / nvim / init.lua
index be18f19b70af1f1fffeee04c0c205650b3f7af68..cd3df604a634770023ad937ff9a8f5ca11c14c11 100644 (file)
@@ -1,6 +1,14 @@
-vim.opt.background = 'light'
+vim.g.statedir = vim.fn.expand("~/.local/state/nvim/")
+vim.g.mapleader = ';'
+vim.g.maplocalleader = ';'
 
 
-vim.keymap.set({'n', 'v', 'o', 'i'}, '<F2>', '<cmd>set invpaste<CR>')
+vim.g.netrw_home = vim.g.statedir .. "netrw"
+
+vim.cmd.runtime 'options.lua'
+vim.cmd.runtime 'keymaps.lua'
+vim.cmd.runtime 'emojis.vim'
+
+vim.cmd 'packadd! gnupg'
 
 vim.call "plug#begin"
 
 
 vim.call "plug#begin"
 
@@ -12,6 +20,9 @@ Plug 'wimstefan/vim-artesanal'
 -- Git operations from within files
 Plug 'tpope/vim-fugitive'
 
 -- Git operations from within files
 Plug 'tpope/vim-fugitive'
 
+-- Detect tabstop and shiftwidth automatically
+Plug 'tpope/vim-sleuth'
+
 vim.call "plug#end"
 
 function hasPlug(plugin)
 vim.call "plug#end"
 
 function hasPlug(plugin)