diff --git a/nvim/lua/plugins/appearance.lua b/nvim/lua/plugins/appearance.lua index 2bf57cc..cc804e3 100644 --- a/nvim/lua/plugins/appearance.lua +++ b/nvim/lua/plugins/appearance.lua @@ -23,5 +23,5 @@ return { { "norcalli/nvim-colorizer.lua", config = true, - } + }, } diff --git a/nvim/lua/plugins/completion.lua b/nvim/lua/plugins/completion.lua index 8279801..3c5f822 100644 --- a/nvim/lua/plugins/completion.lua +++ b/nvim/lua/plugins/completion.lua @@ -17,7 +17,7 @@ return { cmp.setup({ snippet = { expand = function(args) - require('luasnip').lsp_expand(args.body) + require("luasnip").lsp_expand(args.body) end, }, @@ -38,7 +38,7 @@ return { [""] = cmp.mapping.select_next_item(), [""] = cmp.mapping.select_next_item(), [""] = cmp.mapping.select_prev_item(), - [""] = cmp.mapping.confirm { select = true }, + [""] = cmp.mapping.confirm({ select = true }), [""] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }), [""] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }), [""] = cmp.mapping({ diff --git a/nvim/lua/plugins/fuzzy-finder.lua b/nvim/lua/plugins/fuzzy-finder.lua index 0e5b77c..c32d41e 100644 --- a/nvim/lua/plugins/fuzzy-finder.lua +++ b/nvim/lua/plugins/fuzzy-finder.lua @@ -9,7 +9,7 @@ return { module = true, config = function() local telescope = require("telescope") - telescope.setup { + telescope.setup({ extensions = { project = { base_dirs = { @@ -19,7 +19,7 @@ return { }, }, }, - } + }) local builtins = require("telescope.builtin") local opts = { noremap = true } @@ -30,48 +30,28 @@ return { end end - vim.keymap.set( - "n", - "ff", - get_builtin("find_files", { hidden = true }), - opts - ) - vim.keymap.set( - "n", - "fF", - function() - builtins.find_files { - cwd = require("telescope.utils").buffer_dir(), - hidden = true, - } - end, - opts - ) + vim.keymap.set("n", "ff", get_builtin("find_files", { hidden = true }), opts) + vim.keymap.set("n", "fF", function() + builtins.find_files({ + cwd = require("telescope.utils").buffer_dir(), + hidden = true, + }) + end, opts) - vim.keymap.set("n", "fg", get_builtin "grep_string", opts) - vim.keymap.set("n", "fG", get_builtin "live_grep", opts) - vim.keymap.set("n", "fb", get_builtin "buffers", opts) - vim.keymap.set("n", "fh", get_builtin "help_tags", opts) - vim.keymap.set("n", "ft", get_builtin "treesitter", opts) - vim.keymap.set("n", "fb", get_builtin "buffers", opts) - vim.keymap.set("n", "fr", get_builtin "old_files", opts) - vim.keymap.set("n", "fM", get_builtin "man_pages", opts) - vim.keymap.set( - "n", - "fR", - get_builtin("old_files", { only_cwd = true }), - opts - ) + vim.keymap.set("n", "fg", get_builtin("grep_string"), opts) + vim.keymap.set("n", "fG", get_builtin("live_grep"), opts) + vim.keymap.set("n", "fb", get_builtin("buffers"), opts) + vim.keymap.set("n", "fh", get_builtin("help_tags"), opts) + vim.keymap.set("n", "ft", get_builtin("treesitter"), opts) + vim.keymap.set("n", "fb", get_builtin("buffers"), opts) + vim.keymap.set("n", "fr", get_builtin("old_files"), opts) + vim.keymap.set("n", "fM", get_builtin("man_pages"), opts) + vim.keymap.set("n", "fR", get_builtin("old_files", { only_cwd = true }), opts) - vim.keymap.set("n", "fA", get_builtin "resume", opts) + vim.keymap.set("n", "fA", get_builtin("resume"), opts) -- Ekeymap.set - vim.keymap.set( - "n", - "fp", - [[lua require("telescope").extensions.project.project({})]], - opts - ) + vim.keymap.set("n", "fp", [[lua require("telescope").extensions.project.project({})]], opts) end, }, @@ -88,5 +68,5 @@ return { end end, dependencies = { "nvim-lua/plenary.nvim" }, - } + }, } diff --git a/nvim/lua/plugins/snippets.lua b/nvim/lua/plugins/snippets.lua index f7caf55..a014e96 100644 --- a/nvim/lua/plugins/snippets.lua +++ b/nvim/lua/plugins/snippets.lua @@ -47,6 +47,5 @@ return { require("luasnip.extras.select_choice")() end) end, - } + }, } -