nvim/after/plugin/treesitter.lua
Simon Lasbrugnas 2c81514221
feat: update plugin configurations and add new ones
Update default configurations such as disabling netrw, setting 'isfname' option
 and better key mappings for several use cases including navigation, and deletion
 of buffers among others.

Add new plugins including Comment.nvim for easier code commenting, nvim-tree
 for file exploration, gitsigns for git activity within nvim, and several color
 scheme plugins for better aesthetics.

Also updated several existing plugins configurations, including telescope for
 file searching, trouble for diagnostics within nvim, and nvim-treesitter for
 better syntax highlighting.

The key mappings have been improved to serve a variety of use cases, including
, but not limited to, finding files, tab navigation, and various mappings for
 LSP functionalities.

The aesthetics of the editor has been updated by adding a variety of color schemes
 to choose from, including fleet-theme-nvim, catppuccin, rose-pine, and toky
onight.nvim

Features like comment toggling with Comment.nvim, file tree viewing with nv
im-tree and git activity per line with gitsigns.nvim have also been introduced
.
Some plugins like vim-bujo have also been removed as they no longer seem to
 be used in the configuration.

The packer.lua file has also been edited to reflect these changes, with additions
 of plugins and the removal of vim-bujo.

The lsp.lua file has been updated to include new commands that handles formatting
, eslint auto-fixing and added mappings for signature help and type definitions
.
Some key plugin configuration files have been newly created, like comment.lua
, gitsigns.lua, indent-blankline.lua, neoai.lua, nvim-tree.lua, which were not
 present before.

Existing plugins configuration files like telescope.lua, trouble.lua, zenmode
.lua have been updated for better usability.

Finally, netrw, the default vim file explorer has been disabled as it has been
 replaced by the nvim-tree plugin.

/!\ OPEN AI wrote that
2023-11-14 13:44:10 +01:00

26 lines
1,002 B
Lua

require'nvim-treesitter.configs'.setup {
indent = {
enable = true
},
-- A list of parser names, or "all"
ensure_installed = { "vimdoc", "javascript", "typescript", "c", "lua", "rust" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
highlight = {
-- `false` will disable the whole extension
enable = true,
-- 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 = { "php", "twig" }
},
}