diff --git a/README.md b/README.md index 286f029..adafbaa 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ My goal with this repo was a relatively hands-free installation of nvim and ever **Note:** I recently gave this repo a major overhaul because I wanted autocomplete, better LSP support, and for nvim to feel like an actual editor. To view the old version of the config, you can view the `legacy` tag in this git repo + ## requirements * Neovim 0.12+ * npm installed globally @@ -39,6 +40,9 @@ rm ./tree-sitter-cli-linux-x64.zip # clone this repo to your nvim config git clone https://gitea.jovan04.com/evan/neovim-config ~/.config/nvim + +# it might also be helpful to set up an alias (also in .rc) +alias nv="nvim" ``` ## includes diff --git a/init.lua b/init.lua index 4c6dd6f..203d128 100644 --- a/init.lua +++ b/init.lua @@ -10,6 +10,13 @@ vim.opt.shiftwidth = 4 vim.opt.tabstop = 4 vim.opt.smarttab = true +vim.keymap.set('n', 'q', ':q', {}) +vim.keymap.set('n', 'w', ':w', {}) +vim.keymap.set('v', 'y', '"+y', {}) +vim.keymap.set('n', 'y', '"+yy', {}) +vim.keymap.set('n', 'p', '"+p', {}) +vim.keymap.set('n', 'P', '"+P', {}) + -- writing mode for markdown files vim.api.nvim_create_autocmd("FileType", { pattern = { "markdown", "text", "tex" },