···1-require'nvim-treesitter.configs'.setup {
2- -- A list of parser names, or "all"
3- ensure_installed = { "c", "zig", "lua", "rust", "javascript", "typescript" },
4-5- -- Install parsers synchronously (only applied to `ensure_installed`)
6- sync_install = false,
7-8- -- Automatically install missing parsers when entering buffer
9- -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
10- auto_install = true,
11-12- highlight = {
13- -- `false` will disable the whole extension
14- enable = true,
15-16- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
17- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
18- -- Using this option may slow down your editor, and you may see some duplicate highlights.
19- -- Instead of true it can also be a list of languages
20- additional_vim_regex_highlighting = false,
21- },
22-}
···0000000000000000000000
-19
after/plugin/trouble.lua
···1--- https://github.com/folke/trouble.nvim
2-3-local trouble = require('trouble')
4-5-trouble.setup{
6- icons = false,
7- fold_open = "v", -- icon used for open folds
8- fold_closed = ">", -- icon used for closed folds
9- indent_lines = false, -- add an indent guide below the fold icons
10- signs = {
11- -- icons / text used for a diagnostic
12- error = "error",
13- warning = "warn",
14- hint = "hint",
15- information = "info"
16- },
17-}
18-19-vim.keymap.set("n", "<leader>xx", function() trouble.toggle() end)