aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-02-26 21:18:37 +0100
committerDamjan 9000 <damjan.9000@gmail.com>2024-02-26 21:18:37 +0100
commitf94c10e3bdffd7a327ae3f7f0f055c38cdb5b29a (patch)
tree9ba1d83892fa1bc32a03428493c8a47d4116fcef /lua
parent1ff3a155aab8ef8f9d14b51c382319fcd14e4da3 (diff)
parentaf4fd2355f211d4d19ec08ea6d57cbea483e2ee7 (diff)
Merge 'upstream/master' fixups (autocommand, auto_install)
fixup: change comment to reflect auto_install fixup: add autocommand link for help and description
Diffstat (limited to 'lua')
-rw-r--r--lua/keymaps.lua4
-rw-r--r--lua/kickstart/plugins/treesitter.lua2
2 files changed, 5 insertions, 1 deletions
diff --git a/lua/keymaps.lua b/lua/keymaps.lua
index 56a118f..d022dd2 100644
--- a/lua/keymaps.lua
+++ b/lua/keymaps.lua
@@ -34,10 +34,14 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
+-- [[ Basic Autocommands ]]
+-- See :help lua-guide-autocommands
+
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
vim.api.nvim_create_autocmd('TextYankPost', {
+ desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
callback = function()
vim.highlight.on_yank()
diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua
index a1c54e5..9bbe415 100644
--- a/lua/kickstart/plugins/treesitter.lua
+++ b/lua/kickstart/plugins/treesitter.lua
@@ -8,7 +8,7 @@ return {
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
- -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
+ -- Autoinstall languages that are not installed
auto_install = true,
highlight = { enable = true },
indent = { enable = true },