Skip to content

judaew/macports.nvim

Repository files navigation

MacPorts.nvim

Warning

This plugin is scheduled for a complete rewrite in the near future. I highly recommend using the legacy branch to avoid any configuration incompatibility issues

Neovim syntax plugin for support syntax Portfile in MacPorts.

Tested on Neovim v0.5.0.

Install

Use your favorite package manager:

{ 'judaew/macports.nvim', branch = 'legacy' },
use { 'judaew/macports.nvim', branch = 'legacy' }
Plug 'judaew/macports.nvim', { 'branch': 'legacy' }

Settings

Completion with completefunc can trigger in insert mode with <C-x><C-u>. To enable, add the following option:

-- For init.lua
vim.g.macports_completefunc = 1

" For init.vim
let g:macports_completefunc = 1

Snippets are in the ../snippets directory. To enable snippets for vim-vsnip:

-- For init.lua
vim.g.macports_snippets = 1

" For init.vim
let g:macports_snippets = 1

Contribution

Your PR’s welcomed with open hearts.

TODO

  • ✓ Add keywords from all Port Groups

  • ✓ Support completion for keywords

  • ❏ Linting with port lint --nitpick