mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvim): add support for Astro
This commit is contained in:
3
nvim/after/plugin/astro.lua
Normal file
3
nvim/after/plugin/astro.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Astro – https://github.com/wuelnerdotexe/vim-astro
|
||||
|
||||
vim.g.astro_typescript = "enable"
|
||||
@@ -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
|
||||
|
||||
@@ -15,6 +15,7 @@ if not mason_lsp_config_status_ok then
|
||||
end
|
||||
|
||||
local servers = {
|
||||
"astro",
|
||||
"cssls",
|
||||
"cssmodules_ls",
|
||||
"diagnosticls",
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user