add some more leader keymappings
This commit is contained in:
@@ -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
|
||||
|
||||
7
init.lua
7
init.lua
@@ -10,6 +10,13 @@ vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.smarttab = true
|
||||
|
||||
vim.keymap.set('n', '<leader>q', ':q<CR>', {})
|
||||
vim.keymap.set('n', '<leader>w', ':w<CR>', {})
|
||||
vim.keymap.set('v', '<leader>y', '"+y', {})
|
||||
vim.keymap.set('n', '<leader>y', '"+yy', {})
|
||||
vim.keymap.set('n', '<leader>p', '"+p', {})
|
||||
vim.keymap.set('n', '<leader>P', '"+P', {})
|
||||
|
||||
-- writing mode for markdown files
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "markdown", "text", "tex" },
|
||||
|
||||
Reference in New Issue
Block a user