feat(cfg): enable auto install of treesitter languages

feat(cfg): remove unusual keybinding, since it alredy exist
- <leader>rn (rename)
This commit is contained in:
EGRrqq 2023-09-21 13:10:28 -05:00
parent 6ff24a02de
commit e1eb599844
1 changed files with 1 additions and 4 deletions

View File

@ -331,7 +331,7 @@ require('nvim-treesitter.configs').setup {
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
@ -576,6 +576,3 @@ vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
-- delete without buffer
vim.keymap.set("x", "<leader>p", [["_dP]])
-- replace current word
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])