treesitter playground
This commit is contained in:
parent
d10da3b71a
commit
15dc08f81a
2 changed files with 34 additions and 7 deletions
|
|
@ -152,7 +152,12 @@ vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
|||
require('lspkind').init({
|
||||
-- disables text annotations
|
||||
--with_text = false,
|
||||
with_text = true,
|
||||
--with_text = true,
|
||||
|
||||
-- defines how annotations are shown
|
||||
-- default: symbol
|
||||
-- options: 'text', 'text_symbol', 'symbol_text', 'symbol'
|
||||
mode = 'symbol',
|
||||
|
||||
-- default symbol map
|
||||
-- can be either 'default' or 'codicons'
|
||||
|
|
@ -264,18 +269,20 @@ require'nvim-treesitter.configs'.setup {
|
|||
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||
ensure_installed = {
|
||||
"c",
|
||||
"rust",
|
||||
"python",
|
||||
"cpp",
|
||||
"css",
|
||||
"fish",
|
||||
"go",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"markdown",
|
||||
"fish",
|
||||
"css",
|
||||
"json",
|
||||
"lua",
|
||||
"make",
|
||||
"markdown",
|
||||
"python",
|
||||
"query",
|
||||
"rust",
|
||||
"svelte",
|
||||
"typescript",
|
||||
"vim",
|
||||
"yaml",
|
||||
},
|
||||
|
|
@ -303,6 +310,25 @@ require'nvim-treesitter.configs'.setup {
|
|||
indent = {
|
||||
enable = true
|
||||
},
|
||||
|
||||
playground = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
|
||||
persist_queries = false, -- Whether the query persists across vim sessions
|
||||
keybindings = {
|
||||
toggle_query_editor = 'o',
|
||||
toggle_hl_groups = 'i',
|
||||
toggle_injected_languages = 't',
|
||||
toggle_anonymous_nodes = 'a',
|
||||
toggle_language_display = 'I',
|
||||
focus_language = 'f',
|
||||
unfocus_language = 'F',
|
||||
update = 'R',
|
||||
goto_node = '<cr>',
|
||||
show_help = '?',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
1
.vimrc
1
.vimrc
|
|
@ -224,6 +224,7 @@ Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
|||
Plug 'kristijanhusak/defx-icons'
|
||||
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'nvim-treesitter/playground'
|
||||
|
||||
"Plug 'ggandor/lightspeed.nvim'
|
||||
Plug 'justinmk/vim-sneak'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue