Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit ce2c9da

Browse files
community: lua language pack
- Adds lua Treesitter parser - Adds lua_ls language server - Adds stylua formatter Lua file type format on save disabled, too agressive
1 parent 78c54ad commit ce2c9da

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ return {
3939
-- "go",
4040
},
4141
ignore_filetypes = { -- disable format on save for specified filetypes
42-
-- "python",
42+
"lua",
4343
},
4444
},
4545
disabled = { -- disable formatting capabilities for the listed language servers

plugins/community.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ return {
2424
{ import = "astrocommunity.pack.docker" },
2525
-- Treesitter: json & jsonc, Lsp: jsonls, Lint/format: stylua
2626
{ import = "astrocommunity.pack.json" },
27+
-- Treesitter: lua, Lsp: lua_ls, Lint/format: stylua
28+
{ import = "astrocommunity.pack.lua" },
2729

2830
-- Project
2931
{ import = "astrocommunity.project.project-nvim" }, -- very nice

plugins/mason.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ return {
77
opts = function(_, opts)
88
-- add more things to the ensure_installed table protecting against community packs modifying it
99
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
10-
"lua_ls",
1110
"marksman", -- Markdown structure
1211
"yamlls",
1312
})
@@ -21,7 +20,6 @@ return {
2120
-- add more things to the ensure_installed table protecting against community packs modifying it
2221
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
2322
-- "prettier",
24-
"stylua",
2523
"alex", -- neutral language lint
2624
"markdownlint", -- markdown lint & format
2725
})

plugins/treesitter.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ return {
33
opts = function(_, opts)
44
-- add more things to the ensure_installed table protecting against community packs modifying it
55
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
6-
-- "lua"
76
})
87
end,
98
}

0 commit comments

Comments
 (0)