1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

nvim: treesitter: move some parsers to their own config file in lang directory

This commit is contained in:
Henrik Hautakoski 2024-08-27 22:06:32 +02:00
parent bf1421c9c0
commit 71f2f5bb0d
7 changed files with 53 additions and 19 deletions

View file

@ -29,33 +29,16 @@ return {
},
},
opts = {
-- A list of parser names
-- Default parsers.
ensure_installed = {
"bash",
"c",
"cpp",
"ninja",
"cmake",
"dockerfile",
"make",
"vim",
"vimdoc",
"query",
"javascript",
-- "typescript",
"css",
"scss",
-- "html",
-- "vue",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"glsl",
"hlsl",
"markdown",
"markdown_inline",
"kdl",
},

View file

@ -2,7 +2,7 @@ return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "blade" }
ensure_installed = { "blade", "html" }
}
},
}

View file

@ -0,0 +1,8 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "cmake" }
}
},
}

View file

@ -0,0 +1,8 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "dockerfile" }
}
},
}

View file

@ -0,0 +1,23 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "markdown" }
}
}
},
opts = {
code = {
style = 'normal',
min_width = 45,
left_pad = 2,
right_pad = 2,
border = 'thick',
above = ' ',
below = ' ',
},
}
}

View file

@ -0,0 +1,8 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "ninja" }
}
},
}