feat: use language-servers
This commit is contained in:
parent
0f42b82bc2
commit
28057baf5f
1 changed files with 8 additions and 0 deletions
|
@ -48,6 +48,9 @@ return require('packer').startup(function(use)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- language server
|
||||||
|
use("neovim/nvim-lspconfig")
|
||||||
|
|
||||||
-- autocompletion
|
-- autocompletion
|
||||||
use({
|
use({
|
||||||
"ms-jpq/coq_nvim",
|
"ms-jpq/coq_nvim",
|
||||||
|
@ -55,6 +58,11 @@ return require('packer').startup(function(use)
|
||||||
})
|
})
|
||||||
use({'ms-jpq/coq.artifacts', branch = 'artifacts'})
|
use({'ms-jpq/coq.artifacts', branch = 'artifacts'})
|
||||||
|
|
||||||
|
local language_servers = { "bashls", "rls", "sumneko_lua" }
|
||||||
|
for _, server in pairs(language_servers) do
|
||||||
|
require("lspconfig")[server].setup(require("coq").lsp_ensure_capabilities({}))
|
||||||
|
end
|
||||||
|
|
||||||
use('tpope/vim-fugitive')
|
use('tpope/vim-fugitive')
|
||||||
use ({
|
use ({
|
||||||
'lewis6991/gitsigns.nvim',
|
'lewis6991/gitsigns.nvim',
|
||||||
|
|
Loading…
Reference in a new issue