mirror of
https://github.com/pnx/dotfiles
synced 2026-08-20 18:48:13 +02:00
nvim/lua/user/plugins/editor/treesitter.lua: switch to tree-sitter-manager
This commit is contained in:
parent
665fb375b0
commit
e4b7184d75
19 changed files with 88 additions and 140 deletions
|
|
@ -1,10 +1,7 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "bash" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("bash"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "c", "cpp" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("c", "cpp"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "cmake" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("cmake"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "css", "scss" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("css", "scss"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "dockerfile" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("dockerfile"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
gopls = {
|
||||
codelens = {
|
||||
|
|
@ -49,12 +51,7 @@ local lspservers = {
|
|||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "go", "gomod", "gowork", "gosum", "gotmpl" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("go", "gomod", "gowork", "gosum", "gotmpl"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "html" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("html"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "javascript", "javadoc" }
|
||||
}
|
||||
}
|
||||
spec.treesitter("javascript", "javadoc"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
lua_ls = {
|
||||
settings = {
|
||||
|
|
@ -18,12 +20,7 @@ local lspservers = {
|
|||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "lua" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("lua"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
ft = { "markdown" },
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "markdown" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("markdown"),
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "ninja" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("ninja"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "php", "blade", "php_only", "phpdoc", "sql", "csv" },
|
||||
alias = { phpx = "php_only" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("php", "blade", "php_only", "phpdoc", "sql", "csv"),
|
||||
spec.treesitter_alias({ phpx = "php_only" }),
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
qmlls = {}
|
||||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "qmljs" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("qmljs"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
rust_analyzer = {
|
||||
-- settings = {
|
||||
|
|
@ -22,12 +24,7 @@ local lspservers = {
|
|||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "rust", "toml" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("rust", "toml"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
sqlls = {}
|
||||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "sql" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("sql"),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
ts_ls = function()
|
||||
local vue_language_server_path = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server'
|
||||
|
|
@ -20,12 +22,7 @@ local lspservers = {
|
|||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "typescript", "tsx" }
|
||||
}
|
||||
},
|
||||
spec.treesitter("typescript", "tsx"),
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
local spec = require('user.utils.lang_spec')
|
||||
|
||||
local lspservers = {
|
||||
vue_ls = {
|
||||
init_options = {
|
||||
|
|
@ -10,16 +12,11 @@ local lspservers = {
|
|||
|
||||
|
||||
return {
|
||||
spec.treesitter("vue"),
|
||||
-- Vue needs typescript
|
||||
{ import = "user.plugins.lang.typescript" },
|
||||
-- And most likely css/scss aswell.
|
||||
{ import = "user.plugins.lang.css" },
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
install = { "vue" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
optional = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue