nvim: plugins/lua: Add lspfuzzy

This commit is contained in:
Sanchayan Maity 2020-12-14 17:16:28 +05:30
parent d400d70e6b
commit 62553ba8c7
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,7 @@
local nvim_lsp = require('lspconfig')
local completion = require('completion')
local lsp_status = require('lsp-status')
local lsp_fuzzy = require('lspfuzzy')
-- Taken from https://www.reddit.com/r/neovim/comments/gyb077/nvimlsp_peek_defination_javascript_ttserver/
function preview_location(location, context, before_context)
@ -76,6 +77,7 @@ end
local servers = { 'hls', 'rust_analyzer' }
for _, lsp in ipairs(servers) do
lsp_fuzzy.setup {}
lsp_status.register_progress()
lsp_status.config({
status_symbol = '',

View file

@ -119,6 +119,7 @@ local init = function ()
-- LSP
use {
'neovim/nvim-lspconfig',
'ojroques/nvim-lspfuzzy',
config = "require('lsp')",
}
use 'nvim-lua/lsp-status.nvim'