Install using vim-plug
Plug 'angluca/spectre.vim'Set lsp if you want
Plug 'yegappan/lsp'
setl omnifunc=LspOmniFunc
au filetype spectre call LspAddServer([#{
\ name: 'spectre',
\ filetype: ['spectre'],
\ path: 'spectre-ls',
\ }])