Added swift.nvim plugin

This commit is contained in:
Michael Housh
2023-09-24 15:14:07 -04:00
parent ab1a45d421
commit 437b4f5002
5 changed files with 30 additions and 52 deletions

View File

@@ -6,8 +6,7 @@ return {
vim.g.vsnip_snippet_dir = os.getenv('HOME') .. '/.config/nvim/snippets/'
end
},
-- Local development plugin for swift.
{
dir = "~/LocalProjects/swift.nvim"
}
-- {
-- dir = "~/LocalProjects/plugins/m-housh/swift.nvim"
-- }
}

View File

@@ -0,0 +1,14 @@
return {
'm-housh/swift.nvim',
dependencies = {
'akinsho/toggleterm.nvim'
},
config = function()
require('swift').setup()
local default_options = { noremap = true, silent = true }
local actions = require('swift.actions')
vim.keymap.set('n', '<c-b>', actions.build, default_options)
vim.keymap.set('n', '<c-u>', actions.test, default_options)
end
}

View File

@@ -15,4 +15,12 @@ vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require("lazy").setup('plugin-config')
require("lazy").setup(
'plugin-config',
{
dev = {
path = '~/LocalProjects/plugins',
fallback = true
}
}
)