From b20371a2f5581474dc73102f8fb2cd6802c688c5 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Tue, 8 Feb 2022 15:24:33 -0800 Subject: [PATCH] update --- nvim/init.vim | 8 ++++++-- nvim/plugins/treesitter.lua | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 nvim/plugins/treesitter.lua diff --git a/nvim/init.vim b/nvim/init.vim index fa7dd9d..288b58c 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -79,12 +79,13 @@ Plug 'osyo-manga/vim-over' if has('nvim') Plug 'akinsho/bufferline.nvim' - Plug 'chentau/marks.nvim' + " Plug 'chentau/marks.nvim' Plug 'folke/which-key.nvim' Plug 'github/copilot.vim' Plug 'glepnir/dashboard-nvim' Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-tree.lua' + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'NTBBloodbath/doom-one.nvim' Plug 'Mofiqul/dracula.nvim' @@ -106,10 +107,13 @@ call plug#end() if has('nvim') source ~/.config/nvim/plugins/bufferline.lua - source ~/.config/nvim/plugins/marks.lua + " source ~/.config/nvim/plugins/marks.lua source ~/.config/nvim/plugins/whichkey.lua source ~/.config/nvim/plugins/dashboard-nvim.lua source ~/.config/nvim/plugins/nvimtree.lua + source ~/.config/nvim/plugins/treesitter.lua + + source ~/.config/nvim/plugins/doomone.lua " source ~/.config/nvim/plugins/dracula.lua " source ~/.config/nvim/plugins/github-theme.lua diff --git a/nvim/plugins/treesitter.lua b/nvim/plugins/treesitter.lua new file mode 100644 index 0000000..c68e5ea --- /dev/null +++ b/nvim/plugins/treesitter.lua @@ -0,0 +1,24 @@ +require'nvim-treesitter.configs'.setup { + -- One of "all", "maintained" (parsers with maintainers), or a list of languages + ensure_installed = "maintained", + + -- Install languages synchronously (only applied to `ensure_installed`) + sync_install = false, + + -- List of parsers to ignore installing + -- ignore_install = { "javascript" }, + + highlight = { + -- `false` will disable the whole extension + enable = true, + + -- list of language that will be disabled + -- disable = { "c", "rust" }, + + -- 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, + }, +}