···11-require'nvim-treesitter.configs'.setup {
22- -- A list of parser names, or "all"
33- ensure_installed = { "c", "zig", "lua", "rust", "javascript", "typescript" },
44-55- -- Install parsers synchronously (only applied to `ensure_installed`)
66- sync_install = false,
77-88- -- Automatically install missing parsers when entering buffer
99- -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
1010- auto_install = true,
1111-1212- highlight = {
1313- -- `false` will disable the whole extension
1414- enable = true,
1515-1616- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
1717- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
1818- -- Using this option may slow down your editor, and you may see some duplicate highlights.
1919- -- Instead of true it can also be a list of languages
2020- additional_vim_regex_highlighting = false,
2121- },
2222-}
-19
after/plugin/trouble.lua
···11--- https://github.com/folke/trouble.nvim
22-33-local trouble = require('trouble')
44-55-trouble.setup{
66- icons = false,
77- fold_open = "v", -- icon used for open folds
88- fold_closed = ">", -- icon used for closed folds
99- indent_lines = false, -- add an indent guide below the fold icons
1010- signs = {
1111- -- icons / text used for a diagnostic
1212- error = "error",
1313- warning = "warn",
1414- hint = "hint",
1515- information = "info"
1616- },
1717-}
1818-1919-vim.keymap.set("n", "<leader>xx", function() trouble.toggle() end)