mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
Added LSP
This commit is contained in:
parent
902175dfa8
commit
781777dd3b
1 changed files with 29 additions and 1 deletions
|
|
@ -86,5 +86,33 @@ return packer.startup(function(use)
|
|||
}
|
||||
}
|
||||
|
||||
end)
|
||||
-- LSP Config
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'hrsh7th/nvim-compe'
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue