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
|
||||
})
|
||||
|
||||
-- language server
|
||||
use("neovim/nvim-lspconfig")
|
||||
|
||||
-- autocompletion
|
||||
use({
|
||||
"ms-jpq/coq_nvim",
|
||||
|
@ -55,6 +58,11 @@ return require('packer').startup(function(use)
|
|||
})
|
||||
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 ({
|
||||
'lewis6991/gitsigns.nvim',
|
||||
|
|
Loading…
Reference in a new issue