Skip to content

Commit

Permalink
fix(xbase): Remove lsp, and treesitter logic from xbase, instead poin…
Browse files Browse the repository at this point in the history
…ting to swift pack (#679)

fix(xbase): Remove lsp logic from xbase, instead pointing to swift pack

Co-authored-by: Kai Löhnert <luxuspur@gmail.com>
  • Loading branch information
Uzaaft and luxus committed Dec 10, 2023
1 parent acd48ae commit fe24e95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
xbase is a WIP plugin, and the experience provided by this plugin might be
lackluster.

## Tip

You should also include the swift pack for basic language support. To add it into your setup, add:
```lua
...
{import ="astrocommunity.pack.swift"}
```

## Requirements

1. Make sure you have [sourcekit-lsp](https://github.com/apple/sourcekit-lsp)
Expand Down
16 changes: 0 additions & 16 deletions lua/astrocommunity/programming-language-support/xbase/init.lua
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
local utils = require "astronvim.utils"

return {
{
"xbase-lab/xbase",
ft = { "swift", "objcpp", "objc" },
run = "make install",
dependencies = {
"neovim/nvim-lspconfig",
{ "nvim-telescope/telescope.nvim", optional = true },
{ "nvim-lua/plenary.nvim", optional = true },
{ "stevearc/dressing.nvim", optional = true }, -- (in case you don't use telescope but something else)
},
init = function() require("astronvim.utils.lsp").setup "sourcekit" end,
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "swift")
end
end,
},
{
"jay-babu/mason-nvim-dap.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "codelldb") end,
},
}

0 comments on commit fe24e95

Please sign in to comment.