Skip to content

Commit

Permalink
feat(pack): Add nim pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Dec 30, 2023
1 parent 008194e commit f62b77e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/astrocommunity/pack/nim/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Nim Language pack

This plugin pack does the following:

- Adds `nim` Treesitter parsers
- Adds `nim_langserver` language server
16 changes: 16 additions & 0 deletions lua/astrocommunity/pack/nim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local utils = require "astronvim.utils"

return {
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "nim_langserver") end,
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "nim")
end
end,
},
}

0 comments on commit f62b77e

Please sign in to comment.