mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim: treesitter: move some parsers to their own config file in lang directory
This commit is contained in:
parent
bf1421c9c0
commit
71f2f5bb0d
7 changed files with 53 additions and 19 deletions
|
|
@ -27,12 +27,16 @@ require("lazy").setup({
|
||||||
{ import = "user.plugins.lang.lua" },
|
{ import = "user.plugins.lang.lua" },
|
||||||
{ import = "user.plugins.lang.bash" },
|
{ import = "user.plugins.lang.bash" },
|
||||||
{ import = "user.plugins.lang.clangd" },
|
{ import = "user.plugins.lang.clangd" },
|
||||||
|
{ import = "user.plugins.lang.cmake" },
|
||||||
|
{ import = "user.plugins.lang.ninja" },
|
||||||
|
{ import = "user.plugins.lang.docker" },
|
||||||
{ import = "user.plugins.lang.go" },
|
{ import = "user.plugins.lang.go" },
|
||||||
{ import = "user.plugins.lang.rust" },
|
{ import = "user.plugins.lang.rust" },
|
||||||
{ import = "user.plugins.lang.php" },
|
{ import = "user.plugins.lang.php" },
|
||||||
{ import = "user.plugins.lang.css" },
|
{ import = "user.plugins.lang.css" },
|
||||||
{ import = "user.plugins.lang.typescript" },
|
{ import = "user.plugins.lang.typescript" },
|
||||||
{ import = "user.plugins.lang.vue" },
|
{ import = "user.plugins.lang.vue" },
|
||||||
|
{ import = "user.plugins.lang.markdown" },
|
||||||
},
|
},
|
||||||
pkg = {
|
pkg = {
|
||||||
sources = {
|
sources = {
|
||||||
|
|
|
||||||
|
|
@ -29,33 +29,16 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
-- A list of parser names
|
-- Default parsers.
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"ninja",
|
|
||||||
"cmake",
|
|
||||||
"dockerfile",
|
|
||||||
"make",
|
|
||||||
"vim",
|
"vim",
|
||||||
"vimdoc",
|
"vimdoc",
|
||||||
"query",
|
"query",
|
||||||
"javascript",
|
|
||||||
-- "typescript",
|
|
||||||
"css",
|
|
||||||
"scss",
|
|
||||||
-- "html",
|
|
||||||
-- "vue",
|
|
||||||
"json",
|
"json",
|
||||||
"jsonc",
|
"jsonc",
|
||||||
"yaml",
|
"yaml",
|
||||||
"toml",
|
"toml",
|
||||||
"xml",
|
"xml",
|
||||||
"glsl",
|
|
||||||
"hlsl",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
"kdl",
|
"kdl",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = { "blade" }
|
ensure_installed = { "blade", "html" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
nvim/lua/user/plugins/lang/cmake.lua
Normal file
8
nvim/lua/user/plugins/lang/cmake.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = { "cmake" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
8
nvim/lua/user/plugins/lang/docker.lua
Normal file
8
nvim/lua/user/plugins/lang/docker.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = { "dockerfile" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
23
nvim/lua/user/plugins/lang/markdown.lua
Normal file
23
nvim/lua/user/plugins/lang/markdown.lua
Normal 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 = ' ',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
8
nvim/lua/user/plugins/lang/ninja.lua
Normal file
8
nvim/lua/user/plugins/lang/ninja.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = { "ninja" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue