summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 23:35:19 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 23:35:19 +0200
commitdcc38607f207af8e2c0cebe36e49018929057f1b (patch)
tree1847bda82ae7e247b371ca933aaf39fd134c315e /.config/nvim/lua/mango
parented82e4042b8bfc472a0796dedec1a9369e411cb8 (diff)
nvim: Format all the code with the lua LSP
Diffstat (limited to '.config/nvim/lua/mango')
-rw-r--r--.config/nvim/lua/mango/packer.lua16
-rw-r--r--.config/nvim/lua/mango/remap.lua4
-rw-r--r--.config/nvim/lua/mango/set.lua2
3 files changed, 11 insertions, 11 deletions
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', '<leader>p', '"_dP')
+remap('x', '<leader>p', '"_dP')
remap('nv', '<leader>d', '"_d')
-- Copy to system clipboard
remap('nv', '<leader>y', '"+y')
-remap('n', '<leader>Y', '"+Y')
+remap('n', '<leader>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,
})