lua format

This commit is contained in:
Andrey Petrov 2023-11-16 12:42:29 -05:00
parent 892a470a6a
commit 2efeec969c

View File

@ -4,17 +4,23 @@ 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() {
'neovim/nvim-lspconfig',
config = function()
require 'lspconfig'.gopls.setup { 'gopls' } 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,7 +34,9 @@ return {
}) })
end end
}, },
{'hrsh7th/nvim-cmp', config = function() {
'hrsh7th/nvim-cmp',
config = function()
-- Completion Plugin Setup -- Completion Plugin Setup
local cmp = require 'cmp' local cmp = require 'cmp'
cmp.setup({ cmp.setup({
@ -108,7 +116,8 @@ return {
{ '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' },
@ -137,8 +146,9 @@ return {
{ '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 = {
'node_modules', './venv/' } } end },
{ 'nvim-telescope/telescope-project.nvim' }, { 'nvim-telescope/telescope-project.nvim' },
-- require'telescope'.load_extension('project') -- require'telescope'.load_extension('project')
@ -150,7 +160,9 @@ return {
{ '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)
@ -163,7 +175,10 @@ return {
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 },