Skip to content

Commit 3b5b79a

Browse files
committed
jsonc treesitter syntax, node 22 as default
1 parent dd5f6cb commit 3b5b79a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.vimrc

+9-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,15 @@ require'barbar'.setup {
129129

130130
-- https://github.com/nvim-treesitter/nvim-treesitter
131131
require'nvim-treesitter.configs'.setup {
132-
ensure_installed = { "java", "cpp", "rust", "python", "javascript", "typescript", "tsx", "bash", "markdown", "vim", "lua" },
133-
incremental_selection = {
132+
ensure_installed = { "java", "cpp", "rust", "python", "javascript", "jsonc", "typescript", "tsx", "bash", "markdown", "vim", "lua" },
133+
highlight = {
134+
enable = true,
135+
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
136+
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
137+
-- Using this option may slow down your editor, and you may see some duplicate highlights.
138+
-- Instead of true it can also be a list of languages
139+
additional_vim_regex_highlighting = "vim"
140+
}, incremental_selection = {
134141
enable = true,
135142
keymaps = {
136143
init_selection = "gnn",

setup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 160 --
4848
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 130 --slave /usr/bin/g++ g++ /usr/bin/g++-13
4949

5050
# https://github.com/nodesource/distributions/blob/master/README.md
51-
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
51+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
5252

5353
sudo apt install -y nodejs
5454
sudo npm install -g http-server serve nodemon
55-
sudo npm install -g typescript ts-node js-beautify tslint
55+
sudo npm install -g typescript ts-node js-beautify eslint
5656
#sudo npm update -g # update global packages

0 commit comments

Comments
 (0)