Skip to content

Commit 1d5f9a7

Browse files
committed
feat: sync with the main repo.
* re-enable treesitter, latex's problem can be fixed by install treesitter binary. * don't save history to file, I don't like undo histories across sessions.
1 parent 19d4bda commit 1d5f9a7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

init.lua

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ','
9191
vim.g.maplocalleader = ','
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.o`
@@ -129,7 +129,7 @@ vim.o.ignorecase = true
129129
vim.o.smartcase = true
130130

131131
-- Keep signcolumn on by default
132-
vim.o.signcolumn = 'no'
132+
vim.o.signcolumn = 'yes'
133133

134134
-- Decrease update time
135135
vim.o.updatetime = 250
@@ -953,31 +953,31 @@ require('lazy').setup({
953953
-- Check out: https://github.com/echasnovski/mini.nvim
954954
end,
955955
},
956-
-- { -- Highlight, edit, and navigate code
957-
-- 'nvim-treesitter/nvim-treesitter',
958-
-- build = ':TSUpdate',
959-
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
960-
-- -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
961-
-- opts = {
962-
-- ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
963-
-- -- Autoinstall languages that are not installed
964-
-- auto_install = true,
965-
-- highlight = {
966-
-- enable = true,
967-
-- -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
968-
-- -- If you are experiencing weird indenting issues, add the language to
969-
-- -- the list of additional_vim_regex_highlighting and disabled languages for indent.
970-
-- additional_vim_regex_highlighting = { 'ruby' },
971-
-- },
972-
-- indent = { enable = true, disable = { 'ruby' } },
973-
-- },
974-
-- -- There are additional nvim-treesitter modules that you can use to interact
975-
-- -- with nvim-treesitter. You should go explore a few and see what interests you:
976-
-- --
977-
-- -- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
978-
-- -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
979-
-- -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
980-
-- },
956+
{ -- Highlight, edit, and navigate code
957+
'nvim-treesitter/nvim-treesitter',
958+
build = ':TSUpdate',
959+
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
960+
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
961+
opts = {
962+
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'latex' },
963+
-- Autoinstall languages that are not installed
964+
auto_install = true,
965+
highlight = {
966+
enable = true,
967+
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
968+
-- If you are experiencing weird indenting issues, add the language to
969+
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
970+
additional_vim_regex_highlighting = { 'ruby' },
971+
},
972+
indent = { enable = true, disable = { 'ruby' } },
973+
},
974+
-- There are additional nvim-treesitter modules that you can use to interact
975+
-- with nvim-treesitter. You should go explore a few and see what interests you:
976+
--
977+
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
978+
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
979+
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
980+
},
981981

982982
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
983983
-- init.lua. If you want these files, they are in the repository, so you can just download them and

0 commit comments

Comments
 (0)