From 078136af13890af6d88240e4e8dc91f470294b38 Mon Sep 17 00:00:00 2001 From: Daveanand Mannie Date: Wed, 4 Sep 2024 14:16:53 -0400 Subject: [PATCH] linting --- lua/plugins/telescope.lua | 76 +++++++++++++++++++------------------- lua/plugins/treesitter.lua | 3 +- 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index f1c0d96..b56a0b1 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -1,15 +1,15 @@ return { - "nvim-telescope/telescope.nvim", - dependencies = { - "nvim-lua/plenary.nvim", - { - "nvim-telescope/telescope-fzf-native.nvim", - build = "zig build-lib -dynamic -O ReleaseSafe -target x86_64-windows-gnu src/fzf.c -lc -femit-bin=./build/libfzf.dll", - }, - "nvim-tree/nvim-web-devicons", - }, + "nvim-telescope/telescope.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "zig build-lib -dynamic -O ReleaseSafe -target x86_64-windows-gnu src/fzf.c -lc -femit-bin=./build/libfzf.dll", + }, + "nvim-tree/nvim-web-devicons", + }, - keys = { + keys = { -- add a keymap to browse plugin files -- stylua: ignore { @@ -17,37 +17,37 @@ return { function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, desc = "Find Plugin File", }, - }, - opts = { + }, + opts = { defaults = { + layout_strategy = "horizontal", + layout_config = { prompt_position = "bottom" }, + sorting_strategy = "descending", + winblend = 0, + }, + }, + + config = function() + -- Telescope setup + require("telescope").setup({ + -- Telescope configuration + defaults = { layout_strategy = "horizontal", layout_config = { prompt_position = "bottom" }, sorting_strategy = "descending", winblend = 0, - }, - }, - - config = function() - -- Telescope setup - require("telescope").setup { - -- Telescope configuration - defaults = { - layout_strategy = "horizontal", - layout_config = { prompt_position = "bottom" }, - sorting_strategy = "descending", - winblend = 0, - vimgrep_arguments = { - 'rg', - '--color=never', - '--no-heading', - '--with-filename', - '--line-number', - '--column', - '--smart-case', - }, - }, - } - -- Load the fzf extension - require("telescope").load_extension("fzf") - end, + vimgrep_arguments = { + "rg", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + }, + }, + }) + -- Load the fzf extension + require("telescope").load_extension("fzf") + end, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index fbbfd12..8defa47 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -3,8 +3,7 @@ require("nvim-treesitter.install").prefer_git = false return { { "nvim-treesitter/nvim-treesitter", - build = function() - end, + build = function() end, opts = { highlight = { enable = true }, indent = { enable = true },