chore(nvim): add support for Astro

This commit is contained in:
Stefan Imhoff
2022-08-12 13:33:17 +02:00
parent 7f84da2ae2
commit 8baedf8ef6
4 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
-- Astro https://github.com/wuelnerdotexe/vim-astro
vim.g.astro_typescript = "enable"

View File

@@ -134,6 +134,11 @@ M.on_attach = function(client, bufnr)
client.resolved_capabilities.document_formatting = false
end
-- Astro
if client.name == "astro" then
client.resolved_capabilities.document_formatting = false
end
lsp_keymaps(bufnr)
lsp_highlight_document(client)
end

View File

@@ -15,6 +15,7 @@ if not mason_lsp_config_status_ok then
end
local servers = {
"astro",
"cssls",
"cssmodules_ls",
"diagnosticls",

View File

@@ -145,6 +145,7 @@ return packer.startup(function(use)
use("tpope/vim-repeat") -- Repeat plugins
use("tpope/vim-surround") -- Replace, add, remove surroundings
use("mfussenegger/nvim-dap") -- Debug Adapter Protocol
use("wuelnerdotexe/vim-astro") -- Astro support
-- Custom Text Objects
use("christoomey/vim-titlecase")