From 18a5b3b627aff1536cd64c9a9576e41553ac0bb4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 13 Oct 2021 21:00:31 +0100 Subject: [PATCH] style: be more consistent with lua formatting --- .../nvim/lua/opdavies/plugins/completion.lua | 18 +++++++++--------- .../nvim/lua/opdavies/plugins/treesitter.lua | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nvim/.config/nvim/lua/opdavies/plugins/completion.lua b/nvim/.config/nvim/lua/opdavies/plugins/completion.lua index 8d4c249..fcea1de 100644 --- a/nvim/.config/nvim/lua/opdavies/plugins/completion.lua +++ b/nvim/.config/nvim/lua/opdavies/plugins/completion.lua @@ -1,4 +1,4 @@ -local cmp = require 'cmp' +local cmp = require "cmp" cmp.setup { mapping = { @@ -12,17 +12,17 @@ cmp.setup { }, sources = { - { name = 'buffer', priority = 2, keyword_length = 5, max_item_count = 5 }, - { name = 'calc' }, - { name = 'path' }, - { name = 'spell' }, - { name = 'treesitter' }, + { name = "buffer", priority = 2, keyword_length = 5, max_item_count = 5 }, + { name = "calc" }, + { name = "path" }, + { name = "spell" }, + { name = "treesitter" }, -- Neovim - { name = 'nvim_lsp', priority = 10 }, - { name = 'nvim_lua' }, + { name = "nvim_lsp", priority = 10 }, + { name = "nvim_lua" }, -- Plugins - { name = 'cmp_tabnine' }, + { name = "cmp_tabnine" }, }, } diff --git a/nvim/.config/nvim/lua/opdavies/plugins/treesitter.lua b/nvim/.config/nvim/lua/opdavies/plugins/treesitter.lua index e3f81b8..5d5d818 100644 --- a/nvim/.config/nvim/lua/opdavies/plugins/treesitter.lua +++ b/nvim/.config/nvim/lua/opdavies/plugins/treesitter.lua @@ -1,4 +1,4 @@ -local configs = require'nvim-treesitter.configs' +local configs = require "nvim-treesitter.configs" configs.setup { context_commenting = {