mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-12-07 01:25:43 -08:00
Compare commits
4 Commits
teej-fixup
...
cpatti_don
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31a9f266eb | ||
|
|
af4fd2355f | ||
|
|
1c89b024c8 | ||
|
|
8b5d48a199 |
@@ -183,6 +183,11 @@ return {
|
||||
|
||||
Installation may require installing build tools, and updating the run command for `telescope-fzf-native`
|
||||
|
||||
Users should follow the [Treesitter Windows
|
||||
Installation](https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support)
|
||||
instructions to allow Treesitter language extensions to be downloaded from
|
||||
Github.
|
||||
|
||||
See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation)
|
||||
|
||||
This requires:
|
||||
|
||||
9
init.lua
9
init.lua
@@ -184,10 +184,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()
|
||||
@@ -767,11 +771,14 @@ require('lazy').setup({
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||
-- Use precompiled binaries for faster startup.
|
||||
-- This also means Windows users won't fail on startup by default.
|
||||
require('nvim-treesitter.install').prefer_git = false
|
||||
|
||||
---@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 },
|
||||
|
||||
Reference in New Issue
Block a user