This commit is contained in:
2026-02-13 23:15:07 +11:00
parent 989755a978
commit c35d7b01f7
5 changed files with 20 additions and 40 deletions
+1 -29
View File
@@ -18,7 +18,7 @@ call plug#begin(stdpath('config') . '/plugged')
" Plug 'https://github.com/nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'junegunn/vim-easy-align'
Plug 'https://github.com/bfrg/vim-cpp-modern'
Plug 'https://github.com/ggandor/leap.nvim'
Plug 'https://codeberg.org/andyg/leap.nvim'
Plug 'https://github.com/sainnhe/gruvbox-material'
Plug 'https://github.com/Tetralux/odin.vim' "Odin Syntax highlighting
@@ -196,10 +196,6 @@ lua <<EOF
}
})
require'nvim-treesitter.configs'.setup {
auto_install = false,
}
-- Set spelling errors in a purple hint
vim.opt.spell = true
vim.api.nvim_create_autocmd("LspAttach", {
@@ -210,30 +206,6 @@ lua <<EOF
end,
})
-- Treesitter ////////////////////////////////////////////////////////////////////////////////////
-- TODO: 2022-06-19 Treesitter is too slow on large C++ files
-- require('nvim-treesitter.configs').setup {
-- ensure_installed = { "c", "cpp" }, -- A list of parser names, or "all"
-- sync_install = false, -- Install parsers synchronously (only applied to `ensure_installed`)
-- ignore_install = { }, -- List of parsers to ignore installing (for "all")
-- highlight = {
-- enable = false, -- `false` will disable the whole extension
-- -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
-- -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
-- -- the name of the parser)
-- -- list of language that will be disabled
-- disable = { },
-- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- -- Using this option may slow down your editor, and you may see some duplicate highlights.
-- -- Instead of true it can also be a list of languages
-- additional_vim_regex_highlighting = false,
-- },
-- }
-- Per-Project Bindings /////////////////////////////////////////////////////////////////////////////
-- Automatically load project file on buffer enter
vim.api.nvim_create_autocmd({"BufEnter"}, {