mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Please work
This commit is contained in:
parent
21a6f28e52
commit
16d8ddf6a8
2 changed files with 29 additions and 1 deletions
|
|
@ -15,6 +15,21 @@
|
|||
end
|
||||
dofile(vim.fn.stdpath('config') .. '/plugins.lua')
|
||||
|
||||
-- LSP and LSPInstall setup
|
||||
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
|
||||
|
||||
-- Keep Cursor
|
||||
vim.o.guicursor = ''
|
||||
|
||||
|
|
|
|||
|
|
@ -90,5 +90,18 @@ return packer.startup(function(use)
|
|||
use 'neovim/nvim-lspconfig'
|
||||
use 'kabouzeid/nvim-lspinstall'
|
||||
|
||||
use 'hrsh7th/nvim-compe'
|
||||
use {'hrsh7th/nvim-compe',
|
||||
config = function()
|
||||
require('compe').setup({
|
||||
enabled = true,
|
||||
source = {
|
||||
path = true,
|
||||
buffer = true,
|
||||
nvim_lsp = true,
|
||||
nvim_lua = true,
|
||||
treesitter = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue