Compare commits

..

2 commits

Author SHA1 Message Date
leafee98 e46f348744 switch LSP provider for javascript to quick_lint_js 2023-07-08 16:22:02 +08:00
leafee98 2eccf9737c prefer using git to download treesitter's parser 2023-07-08 16:20:31 +08:00
2 changed files with 7 additions and 3 deletions

View file

@ -52,7 +52,7 @@ end
return {
"nvim-treesitter/nvim-treesitter",
main = "nvim-treesitter.configs",
name = "nvim-treesitter",
build = ":TSUpdate",
opts = {
indent = { enable = true },
@ -61,4 +61,8 @@ return {
auto_install = true,
sync_install = false,
},
config = function (this, opts)
require(this.name .. ".configs").setup(opts);
require(this.name .. ".install").prefer_git = true;
end
}

View file

@ -52,7 +52,7 @@ return {
config = function (_, opts)
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local servers = { "clangd", "rust_analyzer", "pyright", "gopls", "denols", "pylsp" }
local servers = { "clangd", "rust_analyzer", "pyright", "gopls", "quick_lint_js", "pylsp" }
for _, lsp in ipairs(servers) do
require("lspconfig")[lsp].setup{
capabilities = capabilities,