From a69141cce05fbae6a22625a01c84909ac1e02e20 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Mon, 20 Mar 2023 13:15:33 +0530 Subject: [PATCH] update 20032023 --- init.lua | 257 +++++++++++-------------------- lua/custom/plugins/null-ls.lua | 4 + lua/custom/plugins/telescope.lua | 158 ++++++++++--------- 3 files changed, 180 insertions(+), 239 deletions(-) diff --git a/init.lua b/init.lua index 08537543..4f6cc41f 100644 --- a/init.lua +++ b/init.lua @@ -34,9 +34,7 @@ I hope you enjoy your Neovim journey, - TJ P.S. You can delete this when you're done too. It's your config now :) ---]] - --- Set as the leader key +--]] -- Set as the leader key -- See `:help mapleader` -- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) vim.g.mapleader = ' ' @@ -48,12 +46,9 @@ vim.g.maplocalleader = ' ' local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system { - 'git', - 'clone', - '--filter=blob:none', - 'https://github.com/folke/lazy.nvim.git', + 'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', -- latest stable release - lazypath, + lazypath } end vim.opt.rtp:prepend(lazypath) @@ -67,60 +62,44 @@ require('lazy').setup({ -- NOTE: First, some plugins that don't require any configuration -- Git related plugins - 'tpope/vim-fugitive', - 'tpope/vim-rhubarb', - - -- Detect tabstop and shiftwidth automatically - 'tpope/vim-sleuth', - - -- NOTE: This is where your plugins related to LSP can be installed. + 'tpope/vim-fugitive', 'tpope/vim-rhubarb', -- Detect tabstop and shiftwidth automatically + 'tpope/vim-sleuth', -- NOTE: This is where your plugins related to LSP can be installed. -- The configuration is done below. Search for lspconfig to find it below. { -- LSP Configuration & Plugins 'neovim/nvim-lspconfig', dependencies = { -- Automatically install LSPs to stdpath for neovim - 'williamboman/mason.nvim', - 'williamboman/mason-lspconfig.nvim', + 'williamboman/mason.nvim', 'williamboman/mason-lspconfig.nvim', -- Useful status updates for LSP -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` - { 'j-hui/fidget.nvim', opts = {} }, - - -- Additional lua configuration, makes nvim stuff amazing! - 'folke/neodev.nvim', - }, - }, - - { -- Autocompletion + {'j-hui/fidget.nvim', opts = {}}, -- Additional lua configuration, makes nvim stuff amazing! + 'folke/neodev.nvim' + } + }, { -- Autocompletion 'hrsh7th/nvim-cmp', - dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' }, - }, - - -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', opts = {} }, + dependencies = {'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip'} + }, -- Useful plugin to show you pending keybinds. + {'folke/which-key.nvim', opts = {}}, { -- Adds git releated signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', opts = { -- See `:help gitsigns.txt` signs = { - add = { text = '+' }, - change = { text = '~' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - }, - }, - }, - - { -- Theme inspired by Atom + add = {text = '+'}, + change = {text = '~'}, + delete = {text = '_'}, + topdelete = {text = '‾'}, + changedelete = {text = '~'} + } + } + }, { -- Theme inspired by Atom 'navarasu/onedark.nvim', priority = 1000, config = function() vim.cmd.colorscheme 'onedark' - end, - }, - - { -- Set lualine as statusline + end + }, { -- Set lualine as statusline 'nvim-lualine/lualine.nvim', -- See `:help lualine.txt` opts = { @@ -128,26 +107,17 @@ require('lazy').setup({ icons_enabled = false, theme = 'onedark', component_separators = '|', - section_separators = '', - }, - }, - }, - - { -- Add indentation guides even on blank lines + section_separators = '' + } + } + }, { -- Add indentation guides even on blank lines 'lukas-reineke/indent-blankline.nvim', -- Enable `lukas-reineke/indent-blankline.nvim` -- See `:help indent_blankline.txt` - opts = { - char = '┊', - show_trailing_blankline_indent = false, - }, - }, - - -- "gc" to comment visual regions/lines - { 'numToStr/Comment.nvim', opts = {} }, - - -- Fuzzy Finder (files, lsp, etc) - { 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } }, + opts = {char = '┊', show_trailing_blankline_indent = false} + }, -- "gc" to comment visual regions/lines + {'numToStr/Comment.nvim', opts = {}}, -- Fuzzy Finder (files, lsp, etc) + {'nvim-telescope/telescope.nvim', version = '*', dependencies = {'nvim-lua/plenary.nvim'}}, -- Fuzzy Finder Algorithm which requires local dependencies to be built. -- Only load if `make` is available. Make sure you have the system @@ -159,25 +129,17 @@ require('lazy').setup({ build = 'make', cond = function() return vim.fn.executable 'make' == 1 - end, - }, - - { -- Highlight, edit, and navigate code + end + }, { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', - dependencies = { - 'nvim-treesitter/nvim-treesitter-textobjects', - }, + dependencies = {'nvim-treesitter/nvim-treesitter-textobjects'}, config = function() - pcall(require('nvim-treesitter.install').update { with_sync = true }) - end, - }, - - -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart + pcall(require('nvim-treesitter.install').update {with_sync = true}) + end + }, -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. - require 'kickstart.plugins.autoformat', - -- require 'kickstart.plugins.debug', - + -- require 'kickstart.plugins.autoformat', -- require 'kickstart.plugins.debug', -- NOTE: The import below automatically adds your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping -- up-to-date with whatever is in the kickstart repo. @@ -186,7 +148,7 @@ require('lazy').setup({ -- -- An additional note is that if you only copied in the `init.lua`, you can just comment this line -- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`. - { import = 'custom.plugins' }, + {import = 'custom.plugins'} }, {}) -- [[ Setting options ]] @@ -234,75 +196,71 @@ vim.o.termguicolors = true -- Keymaps for better default experience -- See `:help vim.keymap.set()` -vim.keymap.set({ 'n', 'v' }, '', '', { silent = true }) +vim.keymap.set({'n', 'v'}, '', '', {silent = true}) -- Remap for dealing with word wrap -vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) -vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) +vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", {expr = true, silent = true}) +vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", {expr = true, silent = true}) -- [[ Highlight on yank ]] -- See `:help vim.highlight.on_yank()` -local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) +local highlight_group = vim.api.nvim_create_augroup('YankHighlight', {clear = true}) vim.api.nvim_create_autocmd('TextYankPost', { callback = function() vim.highlight.on_yank() end, group = highlight_group, - pattern = '*', + pattern = '*' }) -- [[ Configure Telescope ]] -- See `:help telescope` and `:help telescope.setup()` -require('telescope').setup { - defaults = { - mappings = { - i = { - [''] = false, - [''] = false, - }, - }, - }, -} +require('telescope').setup {defaults = {mappings = {i = {[''] = false, [''] = false}}}} -- Enable telescope fzf native, if installed pcall(require('telescope').load_extension, 'fzf') -- See `:help telescope.builtin` -vim.keymap.set('n', '?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' }) -vim.keymap.set('n', '', require('telescope.builtin').buffers, { desc = '[ ] Find existing buffers' }) +vim.keymap.set('n', '?', require('telescope.builtin').oldfiles, + {desc = '[?] Find recently opened files'}) +vim.keymap.set('n', '', require('telescope.builtin').buffers, + {desc = '[ ] Find existing buffers'}) vim.keymap.set('n', '/', function() -- You can pass additional configuration to telescope to change theme, layout, etc. - require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes').get_dropdown { - winblend = 10, - previewer = false, - }) -end, { desc = '[/] Fuzzily search in current buffer' }) - -vim.keymap.set('n', 'sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' }) -vim.keymap.set('n', 'sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' }) -vim.keymap.set('n', 'sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' }) -vim.keymap.set('n', 'sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' }) -vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' }) + require('telescope.builtin').current_buffer_fuzzy_find( + require('telescope.themes').get_dropdown {winblend = 10, previewer = false}) +end, {desc = '[/] Fuzzily search in current buffer'}) + +vim.keymap.set('n', 'sf', require('telescope.builtin').find_files, + {desc = '[S]earch [F]iles'}) +vim.keymap + .set('n', 'sh', require('telescope.builtin').help_tags, {desc = '[S]earch [H]elp'}) +vim.keymap.set('n', 'sw', require('telescope.builtin').grep_string, + {desc = '[S]earch current [W]ord'}) +vim.keymap.set('n', 'sg', require('telescope.builtin').live_grep, + {desc = '[S]earch by [G]rep'}) +vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, + {desc = '[S]earch [D]iagnostics'}) -- [[ Configure Treesitter ]] -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim' }, + ensure_installed = {'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim'}, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, - highlight = { enable = true }, - indent = { enable = true, disable = { 'python' } }, + highlight = {enable = true}, + indent = {enable = true, disable = {'python'}}, incremental_selection = { enable = true, keymaps = { init_selection = '', node_incremental = '', scope_incremental = '', - node_decremental = '', - }, + node_decremental = '' + } }, textobjects = { select = { @@ -315,39 +273,23 @@ require('nvim-treesitter.configs').setup { ['af'] = '@function.outer', ['if'] = '@function.inner', ['ac'] = '@class.outer', - ['ic'] = '@class.inner', - }, + ['ic'] = '@class.inner' + } }, move = { enable = true, set_jumps = true, -- whether to set jumps in the jumplist - goto_next_start = { - [']m'] = '@function.outer', - [']]'] = '@class.outer', - }, - goto_next_end = { - [']M'] = '@function.outer', - [']['] = '@class.outer', - }, - goto_previous_start = { - ['[m'] = '@function.outer', - ['[['] = '@class.outer', - }, - goto_previous_end = { - ['[M'] = '@function.outer', - ['[]'] = '@class.outer', - }, + goto_next_start = {[']m'] = '@function.outer', [']]'] = '@class.outer'}, + goto_next_end = {[']M'] = '@function.outer', [']['] = '@class.outer'}, + goto_previous_start = {['[m'] = '@function.outer', ['[['] = '@class.outer'}, + goto_previous_end = {['[M'] = '@function.outer', ['[]'] = '@class.outer'} }, swap = { enable = true, - swap_next = { - ['a'] = '@parameter.inner', - }, - swap_previous = { - ['A'] = '@parameter.inner', - }, - }, - }, + swap_next = {['a'] = '@parameter.inner'}, + swap_previous = {['A'] = '@parameter.inner'} + } + } } -- Diagnostic keymaps @@ -366,11 +308,9 @@ local on_attach = function(_, bufnr) -- In this case, we create a function that lets us more easily define mappings specific -- for LSP related items. It sets the mode, buffer and description for us each time. local nmap = function(keys, func, desc) - if desc then - desc = 'LSP: ' .. desc - end + if desc then desc = 'LSP: ' .. desc end - vim.keymap.set('n', keys, func, { buffer = bufnr, desc = desc }) + vim.keymap.set('n', keys, func, {buffer = bufnr, desc = desc}) end nmap('rn', vim.lsp.buf.rename, '[R]e[n]ame') @@ -381,7 +321,8 @@ local on_attach = function(_, bufnr) nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation') nmap('D', vim.lsp.buf.type_definition, 'Type [D]efinition') nmap('ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols') - nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols') + nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, + '[W]orkspace [S]ymbols') -- See `:help K` for why this keymap -- nmap('k', vim.lsp.buf.hover, 'Hover Documentation') @@ -412,13 +353,9 @@ local servers = { -- pyright = {}, -- rust_analyzer = {}, tsserver = {}, - - lua_ls = { - Lua = { - workspace = { checkThirdParty = false }, - telemetry = { enable = false }, - }, - }, + cssls = {}, + html = {}, + lua_ls = {Lua = {workspace = {checkThirdParty = false}, telemetry = {enable = false}}} } -- Setup neovim lua configuration @@ -434,18 +371,16 @@ require('mason').setup() -- Ensure the servers above are installed local mason_lspconfig = require 'mason-lspconfig' -mason_lspconfig.setup { - ensure_installed = vim.tbl_keys(servers), -} +mason_lspconfig.setup {ensure_installed = vim.tbl_keys(servers)} mason_lspconfig.setup_handlers { function(server_name) require('lspconfig')[server_name].setup { capabilities = capabilities, on_attach = on_attach, - settings = servers[server_name], + settings = servers[server_name] } - end, + end } -- nvim-cmp setup @@ -458,16 +393,13 @@ cmp.setup { snippet = { expand = function(args) luasnip.lsp_expand(args.body) - end, + end }, mapping = cmp.mapping.preset.insert { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete {}, - [''] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = true, - }, + [''] = cmp.mapping.confirm {behavior = cmp.ConfirmBehavior.Replace, select = true}, [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -476,7 +408,7 @@ cmp.setup { else fallback() end - end, { 'i', 's' }), + end, {'i', 's'}), [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() @@ -485,12 +417,9 @@ cmp.setup { else fallback() end - end, { 'i', 's' }), - }, - sources = { - { name = 'nvim_lsp' }, - { name = 'luasnip' }, + end, {'i', 's'}) }, + sources = {{name = 'nvim_lsp'}, {name = 'luasnip'}} } -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/custom/plugins/null-ls.lua b/lua/custom/plugins/null-ls.lua index 323e9c6e..82353aec 100644 --- a/lua/custom/plugins/null-ls.lua +++ b/lua/custom/plugins/null-ls.lua @@ -27,6 +27,7 @@ return { local lsp_formatting = function(bufnr) vim.lsp.buf.format({ + -- async = true, filter = function(client) -- apply whatever logic you want (in this example, we'll only use null-ls) return client.name == "null-ls" @@ -39,6 +40,9 @@ return { local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) local on_attach = function(client, bufnr) + -- if client.name == "tsserver" or client.name == "cssls" or client.name == "html" then + -- client.server_capabilities.documentFormattingProvider = false -- 0.8 and later + -- end if client.supports_method("textDocument/formatting") then vim.api.nvim_clear_autocmds({group = augroup, buffer = bufnr}) vim.api.nvim_create_autocmd("BufWritePre", { diff --git a/lua/custom/plugins/telescope.lua b/lua/custom/plugins/telescope.lua index 09a4e40a..dfb16bf2 100644 --- a/lua/custom/plugins/telescope.lua +++ b/lua/custom/plugins/telescope.lua @@ -1,78 +1,86 @@ return { - 'nvim-telescope/telescope.nvim', - version = '*', - dependencies = {'nvim-lua/plenary.nvim'}, - config = function() - -- Find files using lua fuctions - local opts = {silent = true, noremap = true} - vim.api.nvim_set_keymap('n', 'ff', - "lua require'telescope.builtin'.find_files()", - {silent = false, noremap = true}) - vim.api.nvim_set_keymap('n', 'fg', - "lua require'telescope.builtin'.live_grep()", opts) - vim.api.nvim_set_keymap('n', 'fs', - "lua require'telescope.builtin'.grep_string()", opts) - vim.api.nvim_set_keymap('n', 'ft', - "lua require'telescope.builtin'.file_browser()", opts) - vim.api.nvim_set_keymap('n', 'fo', "lua require'telescope.builtin'.oldfiles()", - opts) - vim.api.nvim_set_keymap('n', 'gc', - "lua require'telescope.builtin'.git_commits()", opts) - vim.api.nvim_set_keymap('n', 'gb', - "lua require'telescope.builtin'.git_branches()", opts) - vim.api.nvim_set_keymap('n', 'fb', "lua require'telescope.builtin'.buffers()", - opts) - vim.api.nvim_set_keymap('n', 'fh', - "lua require'telescope.builtin'.help_tags()", opts) + 'nvim-telescope/telescope.nvim', + version = '*', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = function() + -- Find files using lua fuctions + local opts = { silent = true, noremap = true } + vim.api.nvim_set_keymap('n', 'ff', + "lua require'telescope.builtin'.find_files({ hidden = true })", + { silent = false, noremap = true }) + vim.api.nvim_set_keymap('n', 'fg', + "lua require'telescope.builtin'.live_grep()", + opts) + vim.api.nvim_set_keymap('n', 'fs', + "lua require'telescope.builtin'.grep_string()", + opts) + vim.api.nvim_set_keymap('n', 'ft', + "lua require'telescope.builtin'.file_browser()", + opts) + vim.api.nvim_set_keymap('n', 'fo', + "lua require'telescope.builtin'.oldfiles()", + opts) + vim.api.nvim_set_keymap('n', 'gc', + "lua require'telescope.builtin'.git_commits()", + opts) + vim.api.nvim_set_keymap('n', 'gb', + "lua require'telescope.builtin'.git_branches()", + opts) + vim.api.nvim_set_keymap('n', 'fb', + "lua require'telescope.builtin'.buffers()", + opts) + vim.api.nvim_set_keymap('n', 'fh', + "lua require'telescope.builtin'.help_tags()", + opts) - local actions = require('telescope.actions') - require('telescope').setup { - defaults = { - -- program to use for searching with its arguments - find_command = { - 'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case' - }, - -- prompt_position = 'top', -- have prompt at the top (has no effect on vertical configuration) - prompt_prefix = ' ', -- symbol on prompt window - selection_caret = ' ', -- symbol on selected row in results window - entry_prefix = ' ', -- symbol on non-selected rows in results window - initial_mode = 'insert', -- start in insert mode - selection_strategy = 'reset', -- what happens to selection when list changes - sorting_strategy = 'ascending', -- start with most important search on top - layout_strategy = 'horizontal', -- vertical layout - layout_config = {prompt_position = 'top'}, - file_sorter = require'telescope.sorters'.get_fuzzy_file, - file_ignore_patterns = {'node_modules/.*'}, -- never search in node_modules/ dir - generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter, - display_path = true, - winblend = 0, -- window should not be transparent - border = {}, -- no border? - borderchars = {'─', '│', '─', '│', '╭', '╮', '╯', '╰'}, -- border chars - color_devicons = true, -- colorize used icons - use_less = true, -- less is bash program for preview file contents - set_env = {['COLORTERM'] = 'truecolor'}, -- use all the colors - file_previewer = require'telescope.previewers'.vim_buffer_cat.new, - grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new, - qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new, - buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker, - -- preview_cutoff = 120, - mappings = { - i = { - [''] = actions.move_selection_next, - [''] = actions.move_selection_previous, - [''] = actions.smart_send_to_qflist + actions.open_qflist, - -- ['ć'] = actions.close, - [''] = actions.select_default + actions.center - }, - n = { - [''] = actions.move_selection_next, - [''] = actions.move_selection_previous, - [''] = actions.smart_send_to_qflist + actions.open_qflist, - ['ć'] = actions.close - } - } - }, - extensions = {fzy_native = {override_generic_sorter = false, override_file_sorter = true}} - } - end + local actions = require('telescope.actions') + require('telescope').setup { + defaults = { + -- program to use for searching with its arguments + find_command = { + 'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case' + }, + -- prompt_position = 'top', -- have prompt at the top (has no effect on vertical configuration) + prompt_prefix = ' ', -- symbol on prompt window + selection_caret = ' ', -- symbol on selected row in results window + entry_prefix = ' ', -- symbol on non-selected rows in results window + initial_mode = 'insert', -- start in insert mode + selection_strategy = 'reset', -- what happens to selection when list changes + sorting_strategy = 'ascending', -- start with most important search on top + layout_strategy = 'horizontal', -- vertical layout + layout_config = { prompt_position = 'top' }, + file_sorter = require 'telescope.sorters'.get_fuzzy_file, + file_ignore_patterns = { 'node_modules/.*', '.git/.*' }, -- never search in node_modules/ dir + generic_sorter = require 'telescope.sorters'.get_generic_fuzzy_sorter, + display_path = true, + winblend = 0, -- window should not be transparent + border = {}, -- no border? + borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' }, -- border chars + color_devicons = true, -- colorize used icons + use_less = true, -- less is bash program for preview file contents + set_env = { ['COLORTERM'] = 'truecolor' }, -- use all the colors + file_previewer = require 'telescope.previewers'.vim_buffer_cat.new, + grep_previewer = require 'telescope.previewers'.vim_buffer_vimgrep.new, + qflist_previewer = require 'telescope.previewers'.vim_buffer_qflist.new, + buffer_previewer_maker = require 'telescope.previewers'.buffer_previewer_maker, + -- preview_cutoff = 120, + mappings = { + i = { + [''] = actions.move_selection_next, + [''] = actions.move_selection_previous, + [''] = actions.smart_send_to_qflist + actions.open_qflist, + -- ['ć'] = actions.close, + [''] = actions.select_default + actions.center + }, + n = { + [''] = actions.move_selection_next, + [''] = actions.move_selection_previous, + [''] = actions.smart_send_to_qflist + actions.open_qflist, + ['ć'] = actions.close + } + } + }, + extensions = { fzy_native = { override_generic_sorter = false, override_file_sorter = true } } + } + end }