Skip to content

felixmulder/metals-filewatcher.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

metals-filewatcher.nvim

This is a file watcher for the Scala metals project.

Installation

This plugin requires LanguageClient-neovim to be installed. As well as watchdog and neovim from pip3.

Watchdog and the neovim python lib can easily be installed with:

$ pip3 install neovim watchdog

The language client and the metals-filewatcher can be installed with:

Plug 'autozimu/LanguageClient-neovim', {
    \ 'branch': 'next',
    \ 'do': 'bash install.sh',
    \ }

Plug 'felixmulder/metals-filewatcher.nvim', { 'do': ':UpdateRemotePlugins' }

Usage

Currently, you have to start (and stop) the filewatcher, this can be automated when you open a scala file:

autocmd BufRead *.scala :call MetalsFilewatcherStart()

to manually stop and start the file watcher you can do:

" start:
:call MetalsFilewatcherStart()

" and to stop:
:call MetalsFilewatcherStop()

Future work

  • Automatic start/stop of file-watching in *.scala files (this can currently be scripted in init.vim)
  • Make sure that the plugin is only active if LanguageClient-neovim is installed
  • Add watchers for other files than *.semanticdb, see metals/docs/new-editor.md
  • Fix possible interferance with deoplete, not sure, have to investigate

About

Filewatcher for Scala Metals project 🤘

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages