mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Fixed lsp?
This commit is contained in:
parent
cb0d9961c1
commit
21a6f28e52
1 changed files with 2 additions and 26 deletions
|
|
@ -88,31 +88,7 @@ return packer.startup(function(use)
|
||||||
|
|
||||||
-- LSP Config
|
-- LSP Config
|
||||||
use 'neovim/nvim-lspconfig'
|
use 'neovim/nvim-lspconfig'
|
||||||
use 'hrsh7th/nvim-compe'
|
|
||||||
use 'kabouzeid/nvim-lspinstall'
|
use 'kabouzeid/nvim-lspinstall'
|
||||||
|
|
||||||
|
use 'hrsh7th/nvim-compe'
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local nvim_lsp = require('lspconfig')
|
|
||||||
local lspinstall = require('lspinstall')
|
|
||||||
|
|
||||||
lspinstall.setup()
|
|
||||||
|
|
||||||
for _, lsp in ipairs(lspinstall.installed_servers()) do
|
|
||||||
nvim_lsp[lsp].setup {
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
client.resolved_capabilities.document_formatting = false
|
|
||||||
require('lsp_signature').on_attach()
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
require('compe').setup({
|
|
||||||
enabled = true,
|
|
||||||
source = {
|
|
||||||
path = true,
|
|
||||||
buffer = true,
|
|
||||||
nvim_lsp = true,
|
|
||||||
nvim_lua = true,
|
|
||||||
treesitter = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue