proteome (empty) → 0.1.0.0
raw patch · 7 files changed
+109/−0 lines, 7 filesdep +basedep +nvim-hs
Dependencies added: base, nvim-hs
Files
- LICENSE +21/−0
- README.md +3/−0
- lib/Proteome/Add.hs +13/−0
- lib/Proteome/Init.hs +15/−0
- lib/Proteome/Plugin.hs +23/−0
- nvim.hs +6/−0
- proteome.cabal +28/−0
+ LICENSE view
@@ -0,0 +1,21 @@+The MIT License (MIT)++Copyright (c) 2018 Torsten Schmits++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies+of the Software, and to permit persons to whom the Software is furnished to do+so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ README.md view
@@ -0,0 +1,3 @@+# Intro++A neovim plugin that provides project-specific configuration file loading.
+ lib/Proteome/Add.hs view
@@ -0,0 +1,13 @@+module Proteome.Add(+ proAdd,+ proteomePoll+)+where++import Neovim++proAdd :: Neovim env String+proAdd = return "foo"++proteomePoll :: Neovim env Bool+proteomePoll = return True
+ lib/Proteome/Init.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE TemplateHaskell #-}++module Proteome.Init+(+ initialize,+ env+) where++import Neovim++env :: Neovim startupEnv ()+env = return ()++initialize :: Neovim startupEnv ()+initialize = return ()
+ lib/Proteome/Plugin.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE TemplateHaskell #-}++module Proteome.Plugin(+ plugin+)+where++import Neovim++import Proteome.Init (initialize, env)+import Proteome.Add (proAdd, proteomePoll)++plugin :: Neovim (StartupConfig NeovimConfig) NeovimPlugin+plugin = do+ initialize+ wrapPlugin+ Plugin {+ environment = env,+ exports = [+ $(function' 'proteomePoll) Sync,+ $(function' 'proAdd) Async+ ]+ }
+ nvim.hs view
@@ -0,0 +1,6 @@+import Neovim++import Proteome.Plugin (plugin)++main :: IO ()+main = neovim defaultConfig {plugins = [plugin]}
+ proteome.cabal view
@@ -0,0 +1,28 @@+name: proteome+version: 0.1.0.0+synopsis: neovim project manager+description: neovim plugin for managing project-specific configuration and performing runtime tasks on projects+license: MIT+license-file: LICENSE+author: Torsten Schmits+maintainer: tek@tryp.io+copyright: 2018 Torsten Schmits+category: Neovim+build-type: Simple+extra-source-files: README.md+cabal-version: >=1.10+x-curation: uncurated-no-trustee-contact++executable proteome+ main-is: nvim.hs+ hs-source-dirs:+ .,+ lib+ other-modules:+ Proteome.Plugin,+ Proteome.Init,+ Proteome.Add+ build-depends:+ base >= 4.7 && < 5,+ nvim-hs >= 1 && < 2+ default-language: Haskell2010