From dcc38607f207af8e2c0cebe36e49018929057f1b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 12 Sep 2023 23:35:19 +0200 Subject: nvim: Format all the code with the lua LSP --- .config/nvim/lua/mango/packer.lua | 16 ++++++++-------- .config/nvim/lua/mango/remap.lua | 4 ++-- .config/nvim/lua/mango/set.lua | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/mango/packer.lua b/.config/nvim/lua/mango/packer.lua index ae250e7..ac0af6c 100644 --- a/.config/nvim/lua/mango/packer.lua +++ b/.config/nvim/lua/mango/packer.lua @@ -6,7 +6,7 @@ return require('packer').startup(function(use) use { 'nvim-telescope/telescope.nvim', tag = '0.1.2', - requires = { {'nvim-lua/plenary.nvim'} } + requires = { { 'nvim-lua/plenary.nvim' } } } use { @@ -17,7 +17,7 @@ return require('packer').startup(function(use) end } - use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) + use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use 'mbbill/undotree' use 'tpope/vim-fugitive' @@ -26,14 +26,14 @@ return require('packer').startup(function(use) branch = 'v2.x', requires = { -- LSP Support - {'neovim/nvim-lspconfig'}, - {'williamboman/mason.nvim'}, - {'williamboman/mason-lspconfig.nvim'}, + { 'neovim/nvim-lspconfig' }, + { 'williamboman/mason.nvim' }, + { 'williamboman/mason-lspconfig.nvim' }, -- Autocompletion - {'hrsh7th/nvim-cmp'}, - {'hrsh7th/cmp-nvim-lsp'}, - {'L3MON4D3/LuaSnip'}, + { 'hrsh7th/nvim-cmp' }, + { 'hrsh7th/cmp-nvim-lsp' }, + { 'L3MON4D3/LuaSnip' }, } } end) diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index bcc34f3..a43ba19 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -35,12 +35,12 @@ remap('n', 'n', 'nzzzv') remap('n', 'N', 'Nzzzv') -- Paste and delete without clobbering primary register -remap('x', 'p', '"_dP') +remap('x', 'p', '"_dP') remap('nv', 'd', '"_d') -- Copy to system clipboard remap('nv', 'y', '"+y') -remap('n', 'Y', '"+Y') +remap('n', 'Y', '"+Y') -- Swap the jump-to-mark bindings remap('nv', "'", '`') diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index d082916..c80970a 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -38,7 +38,7 @@ opt.splitbelow = true -- Disable auto commenting api.nvim_create_autocmd('BufEnter', { callback = function() - opt.formatoptions:remove({'c', 'r', 'o'}) + opt.formatoptions:remove({ 'c', 'r', 'o' }) end, group = augroup, }) -- cgit v1.2.3