diff options
-rw-r--r-- | .config/nvim/after/plugin/colors.lua | 2 | ||||
-rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 6 | ||||
-rw-r--r-- | .config/nvim/lua/mango/packer.lua | 16 | ||||
-rw-r--r-- | .config/nvim/lua/mango/remap.lua | 4 | ||||
-rw-r--r-- | .config/nvim/lua/mango/set.lua | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua index 654b217..e3d2d94 100644 --- a/.config/nvim/after/plugin/colors.lua +++ b/.config/nvim/after/plugin/colors.lua @@ -4,7 +4,7 @@ require('rose-pine').setup({ function SetTheme(color) vim.cmd.colorscheme(color or 'rose-pine') - vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) + vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) end diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 27703fa..dcf98f1 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -11,7 +11,7 @@ lsp.ensure_installed({ lsp.nvim_workspace() local cmp = require('cmp') -local cmp_select = {behavior = cmp.SelectBehavior.Select} +local cmp_select = { behavior = cmp.SelectBehavior.Select } local cmp_mappings = lsp.defaults.cmp_mappings({ ['<C-k>'] = cmp.mapping.select_prev_item(cmp_select), ['<C-j>'] = cmp.mapping.select_next_item(cmp_select), @@ -21,7 +21,7 @@ local cmp_mappings = lsp.defaults.cmp_mappings({ lsp.set_preferences({ suggest_lsp_servers = false, - sign_icons = { } + sign_icons = {} }) lsp.setup_nvim_cmp({ @@ -29,7 +29,7 @@ lsp.setup_nvim_cmp({ }) lsp.on_attach(function(_, bufnr) - local opts = {buffer = bufnr, remap = false} + local opts = { buffer = bufnr, remap = false } lib.remap('n', 'gd', vim.lsp.buf.definition, opts) lib.remap('n', '<leader>la', vim.lsp.buf.code_action, opts) 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, }) |