lua format
This commit is contained in:
parent
892a470a6a
commit
2efeec969c
@ -1,20 +1,26 @@
|
|||||||
-- NOTE: lazy.nvim reads plugins/*.lua, so feel free to break these up into convenient chunks
|
-- NOTE: lazy.nvim reads plugins/*.lua, so feel free to break these up into convenient chunks
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{'SirVer/ultisnips'},
|
{ 'SirVer/ultisnips' },
|
||||||
{'honza/vim-snippets'},
|
{ 'honza/vim-snippets' },
|
||||||
|
|
||||||
{'williamboman/mason.nvim', config = function()
|
{
|
||||||
|
'williamboman/mason.nvim',
|
||||||
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{'williamboman/mason-lspconfig.nvim'},
|
{ 'williamboman/mason-lspconfig.nvim' },
|
||||||
{'neovim/nvim-lspconfig', config = function()
|
{
|
||||||
require'lspconfig'.gopls.setup{ 'gopls' }
|
'neovim/nvim-lspconfig',
|
||||||
|
config = function()
|
||||||
|
require 'lspconfig'.gopls.setup { 'gopls' }
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
{'simrat39/rust-tools.nvim', config = function()
|
{
|
||||||
|
'simrat39/rust-tools.nvim',
|
||||||
|
config = function()
|
||||||
local rt = require('rust-tools')
|
local rt = require('rust-tools')
|
||||||
rt.setup({
|
rt.setup({
|
||||||
server = {
|
server = {
|
||||||
@ -28,99 +34,102 @@ return {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{'hrsh7th/nvim-cmp', config = function()
|
{
|
||||||
-- Completion Plugin Setup
|
'hrsh7th/nvim-cmp',
|
||||||
local cmp = require'cmp'
|
config = function()
|
||||||
cmp.setup({
|
-- Completion Plugin Setup
|
||||||
-- Enable LSP snippets
|
local cmp = require 'cmp'
|
||||||
snippet = {
|
cmp.setup({
|
||||||
expand = function(args)
|
-- Enable LSP snippets
|
||||||
vim.fn["vsnip#anonymous"](args.body)
|
snippet = {
|
||||||
end,
|
expand = function(args)
|
||||||
},
|
vim.fn["vsnip#anonymous"](args.body)
|
||||||
mapping = {
|
end,
|
||||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
},
|
||||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
mapping = {
|
||||||
-- Add tab support
|
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||||
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||||
['<Tab>'] = cmp.mapping.select_next_item(),
|
-- Add tab support
|
||||||
['<C-S-f>'] = cmp.mapping.scroll_docs(-4),
|
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<Tab>'] = cmp.mapping.select_next_item(),
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
['<C-S-f>'] = cmp.mapping.scroll_docs(-4),
|
||||||
['<C-e>'] = cmp.mapping.close(),
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
['<CR>'] = cmp.mapping.confirm({
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
behavior = cmp.ConfirmBehavior.Insert,
|
['<C-e>'] = cmp.mapping.close(),
|
||||||
select = true,
|
['<CR>'] = cmp.mapping.confirm({
|
||||||
})
|
behavior = cmp.ConfirmBehavior.Insert,
|
||||||
},
|
select = true,
|
||||||
-- Installed sources:
|
})
|
||||||
sources = {
|
},
|
||||||
{ name = 'path' }, -- file paths
|
-- Installed sources:
|
||||||
{ name = 'nvim_lsp', keyword_length = 3 }, -- from language server
|
sources = {
|
||||||
{ name = 'nvim_lsp_signature_help'}, -- display function signatures with current parameter emphasized
|
{ name = 'path' }, -- file paths
|
||||||
{ name = 'nvim_lua', keyword_length = 2}, -- complete neovim's Lua runtime API such vim.lsp.*
|
{ name = 'nvim_lsp', keyword_length = 3 }, -- from language server
|
||||||
{ name = 'buffer', keyword_length = 2 }, -- source current buffer
|
{ name = 'nvim_lsp_signature_help' }, -- display function signatures with current parameter emphasized
|
||||||
{ name = 'vsnip', keyword_length = 2 }, -- nvim-cmp source for vim-vsnip
|
{ name = 'nvim_lua', keyword_length = 2 }, -- complete neovim's Lua runtime API such vim.lsp.*
|
||||||
{ name = 'calc'}, -- source for math calculation
|
{ name = 'buffer', keyword_length = 2 }, -- source current buffer
|
||||||
},
|
{ name = 'vsnip', keyword_length = 2 }, -- nvim-cmp source for vim-vsnip
|
||||||
window = {
|
{ name = 'calc' }, -- source for math calculation
|
||||||
completion = cmp.config.window.bordered(),
|
},
|
||||||
documentation = cmp.config.window.bordered(),
|
window = {
|
||||||
},
|
completion = cmp.config.window.bordered(),
|
||||||
formatting = {
|
documentation = cmp.config.window.bordered(),
|
||||||
fields = {'menu', 'abbr', 'kind'},
|
},
|
||||||
format = function(entry, item)
|
formatting = {
|
||||||
local menu_icon ={
|
fields = { 'menu', 'abbr', 'kind' },
|
||||||
nvim_lsp = 'λ',
|
format = function(entry, item)
|
||||||
vsnip = '⋗',
|
local menu_icon = {
|
||||||
buffer = 'Ω',
|
nvim_lsp = 'λ',
|
||||||
path = '🖫',
|
vsnip = '⋗',
|
||||||
}
|
buffer = 'Ω',
|
||||||
item.menu = menu_icon[entry.source.name]
|
path = '🖫',
|
||||||
return item
|
}
|
||||||
end,
|
item.menu = menu_icon[entry.source.name]
|
||||||
},
|
return item
|
||||||
})
|
end,
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||||
{'hrsh7th/cmp-nvim-lua'},
|
{ 'hrsh7th/cmp-nvim-lua' },
|
||||||
{'hrsh7th/cmp-nvim-lsp-signature-help'},
|
{ 'hrsh7th/cmp-nvim-lsp-signature-help' },
|
||||||
{'hrsh7th/cmp-vsnip'},
|
{ 'hrsh7th/cmp-vsnip' },
|
||||||
{'hrsh7th/cmp-path'},
|
{ 'hrsh7th/cmp-path' },
|
||||||
{'hrsh7th/cmp-buffer'},
|
{ 'hrsh7th/cmp-buffer' },
|
||||||
{'hrsh7th/vim-vsnip'},
|
{ 'hrsh7th/vim-vsnip' },
|
||||||
|
|
||||||
{'atelierbram/vim-colors_atelier-schemes'},
|
{ 'atelierbram/vim-colors_atelier-schemes' },
|
||||||
-- {'liuchengxu/space-vim-dark'},
|
-- {'liuchengxu/space-vim-dark'},
|
||||||
|
|
||||||
{'robertmeta/nofrils'},
|
{ 'robertmeta/nofrils' },
|
||||||
{'vim-test/vim-test'},
|
{ 'vim-test/vim-test' },
|
||||||
{'hashivim/vim-terraform'},
|
{ 'hashivim/vim-terraform' },
|
||||||
{'rmagatti/auto-session'},
|
{ 'rmagatti/auto-session' },
|
||||||
{'ludovicchabant/vim-gutentags'},
|
{ 'ludovicchabant/vim-gutentags' },
|
||||||
{'preservim/nerdtree'},
|
{ 'preservim/nerdtree' },
|
||||||
{'junegunn/fzf', dir='~/.fzf'},
|
{ 'junegunn/fzf', dir = '~/.fzf' },
|
||||||
{'junegunn/fzf.vim'},
|
{ 'junegunn/fzf.vim' },
|
||||||
{'mhinz/vim-startify'},
|
{ 'mhinz/vim-startify' },
|
||||||
{'jeetsukumaran/vim-buffergator'},
|
{ 'jeetsukumaran/vim-buffergator' },
|
||||||
{'ap/vim-buftabline'},
|
{ 'ap/vim-buftabline' },
|
||||||
{'airblade/vim-gitgutter'},
|
{ 'airblade/vim-gitgutter' },
|
||||||
{'majutsushi/tagbar'},
|
{ 'majutsushi/tagbar' },
|
||||||
{'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } },
|
{ 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } },
|
||||||
{'arkav/lualine-lsp-progress',
|
{
|
||||||
|
'arkav/lualine-lsp-progress',
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup({
|
require('lualine').setup({
|
||||||
options = { theme = 'palenight' },
|
options = { theme = 'palenight' },
|
||||||
sections = {
|
sections = {
|
||||||
lualine_b ={ {'filename', path=1} },
|
lualine_b = { { 'filename', path = 1 } },
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
'lsp_progress'
|
'lsp_progress'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b ={ {'filename', path=1} },
|
lualine_b = { { 'filename', path = 1 } },
|
||||||
lualine_c = {},
|
lualine_c = {},
|
||||||
lualine_d = {},
|
lualine_d = {},
|
||||||
lualine_e = {},
|
lualine_e = {},
|
||||||
@ -128,42 +137,48 @@ return {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{'voldikss/vim-floaterm'},
|
{ 'voldikss/vim-floaterm' },
|
||||||
{'fatih/vim-go'},
|
{ 'fatih/vim-go' },
|
||||||
{'whatyouhide/vim-gotham'},
|
{ 'whatyouhide/vim-gotham' },
|
||||||
{'nanotech/jellybeans.vim'},
|
{ 'nanotech/jellybeans.vim' },
|
||||||
{'sickill/vim-monokai'},
|
{ 'sickill/vim-monokai' },
|
||||||
{'tpope/vim-fugitive'},
|
{ 'tpope/vim-fugitive' },
|
||||||
{'tpope/vim-rhubarb'},
|
{ 'tpope/vim-rhubarb' },
|
||||||
{'gf3/peg.vim'},
|
{ 'gf3/peg.vim' },
|
||||||
{'nvim-lua/plenary.nvim'},
|
{ 'nvim-lua/plenary.nvim' },
|
||||||
|
{ 'nvim-telescope/telescope.nvim',
|
||||||
{ 'nvim-telescope/telescope.nvim', config = function () require('telescope').setup{ file_ignore_patterns = {'node_modules','./venv/'} } end },
|
config = function() require('telescope').setup { file_ignore_patterns = {
|
||||||
{'nvim-telescope/telescope-project.nvim'},
|
'node_modules', './venv/' } } end },
|
||||||
|
{ 'nvim-telescope/telescope-project.nvim' },
|
||||||
-- require'telescope'.load_extension('project')
|
-- require'telescope'.load_extension('project')
|
||||||
|
|
||||||
{'puremourning/vimspector'},
|
{ 'puremourning/vimspector' },
|
||||||
{'airblade/vim-rooter'},
|
{ 'airblade/vim-rooter' },
|
||||||
|
|
||||||
-- Debugging
|
-- Debugging
|
||||||
{ 'mfussenegger/nvim-dap'},
|
{ 'mfussenegger/nvim-dap' },
|
||||||
|
|
||||||
{'lukas-reineke/indent-blankline.nvim'},
|
{ 'lukas-reineke/indent-blankline.nvim' },
|
||||||
|
|
||||||
{'fredeeb/tardis.nvim', config = function()
|
{
|
||||||
|
'fredeeb/tardis.nvim',
|
||||||
|
config = function()
|
||||||
require('tardis-nvim').setup({
|
require('tardis-nvim').setup({
|
||||||
keymap = {
|
keymap = {
|
||||||
next = '<C-n>', -- next entry in log (older)
|
next = '<C-n>', -- next entry in log (older)
|
||||||
prev = '<C-m>', -- previous entry in log (newer)
|
prev = '<C-m>', -- previous entry in log (newer)
|
||||||
quit = 'q', -- quit all
|
quit = 'q', -- quit all
|
||||||
commit_message = 'm', -- show commit message for current commit in buffer
|
commit_message = 'm', -- show commit message for current commit in buffer
|
||||||
},
|
},
|
||||||
commits = 32, -- max number of commits to read
|
commits = 32, -- max number of commits to read
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
{'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' , config = function()
|
{
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
run = ':TSUpdate',
|
||||||
|
config = function()
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = { enable = true, disable = { "lua" } },
|
highlight = { enable = true, disable = { "lua" } },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
@ -180,6 +195,6 @@ return {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{'nvim-treesitter/nvim-treesitter-refactor'},
|
{ 'nvim-treesitter/nvim-treesitter-refactor' },
|
||||||
{'RRethy/nvim-treesitter-textsubjects'},
|
{ 'RRethy/nvim-treesitter-textsubjects' },
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user