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
781777dd3b
commit
cb0d9961c1
1 changed files with 25 additions and 25 deletions
|
|
@ -90,29 +90,29 @@ return packer.startup(function(use)
|
||||||
use 'neovim/nvim-lspconfig'
|
use 'neovim/nvim-lspconfig'
|
||||||
use 'hrsh7th/nvim-compe'
|
use 'hrsh7th/nvim-compe'
|
||||||
use 'kabouzeid/nvim-lspinstall'
|
use 'kabouzeid/nvim-lspinstall'
|
||||||
|
|
||||||
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,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
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