format lua files
This commit is contained in:
parent
c792c0839b
commit
c9c630ce61
@ -45,7 +45,8 @@ return require('packer').startup(function()
|
||||
{ 'nvim-lua/popup.nvim' },
|
||||
{ 'nvim-lua/plenary.nvim' },
|
||||
{ 'kyazdani42/nvim-web-devicons' },
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' },
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim',
|
||||
run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' },
|
||||
},
|
||||
config = get_setup('telescope'),
|
||||
})
|
||||
@ -84,19 +85,19 @@ return require('packer').startup(function()
|
||||
use({
|
||||
'hrsh7th/nvim-cmp',
|
||||
requires = {
|
||||
{ 'hrsh7th/cmp-buffer'},
|
||||
{ 'hrsh7th/cmp-nvim-lsp'},
|
||||
{ 'L3MON4D3/LuaSnip'},
|
||||
{ 'saadparwaiz1/cmp_luasnip'},
|
||||
{ 'hrsh7th/cmp-nvim-lua'},
|
||||
{ 'octaltree/cmp-look'},
|
||||
{ 'hrsh7th/cmp-path'},
|
||||
{ 'hrsh7th/cmp-calc'},
|
||||
{ 'f3fora/cmp-spell'},
|
||||
{ 'hrsh7th/cmp-emoji'},
|
||||
{ 'hrsh7th/cmp-cmdline'},
|
||||
{ 'ray-x/cmp-treesitter'},
|
||||
{ 'hrsh7th/cmp-nvim-lsp-signature-help'}
|
||||
{ 'hrsh7th/cmp-buffer' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'L3MON4D3/LuaSnip' },
|
||||
{ 'saadparwaiz1/cmp_luasnip' },
|
||||
{ 'hrsh7th/cmp-nvim-lua' },
|
||||
{ 'octaltree/cmp-look' },
|
||||
{ 'hrsh7th/cmp-path' },
|
||||
{ 'hrsh7th/cmp-calc' },
|
||||
{ 'f3fora/cmp-spell' },
|
||||
{ 'hrsh7th/cmp-emoji' },
|
||||
{ 'hrsh7th/cmp-cmdline' },
|
||||
{ 'ray-x/cmp-treesitter' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp-signature-help' }
|
||||
},
|
||||
config = get_setup('cmp'),
|
||||
})
|
||||
@ -199,12 +200,12 @@ return require('packer').startup(function()
|
||||
}
|
||||
use {
|
||||
'ggandor/leap.nvim',
|
||||
requires = {'tpope/vim-repeat'},
|
||||
requires = { 'tpope/vim-repeat' },
|
||||
config = get_setup('my_leap')
|
||||
}
|
||||
use {
|
||||
'mfussenegger/nvim-dap',
|
||||
requires = {'mfussenegger/nvim-dap-python'},
|
||||
requires = { 'mfussenegger/nvim-dap-python' },
|
||||
config = get_setup('my_dap')
|
||||
}
|
||||
if packer_bootstrap then
|
||||
|
@ -101,11 +101,11 @@ local on_attach = function(client, bufnr)
|
||||
require("aerial").on_attach(client, bufnr)
|
||||
end
|
||||
|
||||
require('lspconfig')['pyright'].setup{
|
||||
require('lspconfig')['pyright'].setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
require('lspconfig')['cmake'].setup{
|
||||
require('lspconfig')['cmake'].setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
@ -120,14 +120,14 @@ require('clangd_extensions').setup({
|
||||
},
|
||||
})
|
||||
|
||||
require('lspconfig')['jsonls'].setup{
|
||||
require('lspconfig')['jsonls'].setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
local lua_rtp = vim.split(package.path, ';')
|
||||
table.insert(lua_rtp, 'lua/?.lua')
|
||||
table.insert(lua_rtp, 'lua/?/init.lua')
|
||||
require('lspconfig').sumneko_lua.setup{
|
||||
require('lspconfig').sumneko_lua.setup {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
Lua = {
|
||||
@ -153,11 +153,11 @@ require('lspconfig').sumneko_lua.setup{
|
||||
}
|
||||
}
|
||||
|
||||
require('lspconfig')['dockerls'].setup{
|
||||
require('lspconfig')['dockerls'].setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
require('lspconfig')['yamlls'].setup{
|
||||
require('lspconfig')['yamlls'].setup {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
yaml = {
|
||||
@ -181,4 +181,3 @@ null_ls.setup({
|
||||
})
|
||||
|
||||
vim.diagnostic.config({ virtual_text = false })
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user