lua error when installing `telescope-fzf-native`

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • telescope-fzf-native.nvim

    FZF sorter for telescope written in c

  • I'm trying to install telescope-fzf-native.nvim following the instructions in its page. I've added to my init.lua the following line of code:

  • Catppuccino.nvim

    Discontinued 🍨 Catppuccin theme for NeoVim [Moved to: https://github.com/catppuccin/nvim]

  • -- Add numbers to rows vim.wo.number = true vim.wo.colorcolumn = '120' -- Set indentation of files local indent = 2 vim.bo.expandtab = true vim.bo.shiftwidth = indent vim.bo.smartindent = true vim.bo.tabstop = indent vim.bo.autoindent = true vim.o.smarttab = true vim.bo.softtabstop = indent -- Enable the mouse vim.o.mouse = 'a' -- Set nocompatible mode for more powerful commands vim.o.compatible = false -- Set some search options vim.o.showmatch = true vim.o.ignorecase = true vim.o.hlsearch = true vim.o.incsearch = true -- Set options for color scheme vim.o.termguicolors = true --- Key Mappings --- vim.api.nvim_set_keymap('i', 'jj', '', {noremap = true}) vim.api.nvim_set_keymap('n', 'JJJJ', '', {noremap = true}) vim.api.nvim_set_keymap('n', ':', ';', {noremap = true}) vim.api.nvim_set_keymap('n', ';', ':', {noremap = true}) --- Plugins --- -- Start plugin section. Use this section in order to install new plugins to -- neovim. -- In order to install a new plugin, you need to put in this section the -- repository where it can be found, and then refresh the plugin list by -- installing them with the command: -- :PlugInstall -- Auto install vim-plug that's the plugin manager local vimplugrepository = '' local installpath = vim.fn.stdpath('config')..'/autoload' local vimpluginstallpath = installpath..'/plug.vim' local vimplugrepository = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' if vim.fn.empty(vim.fn.glob(vimpluginstallpath)) > 0 then vim.api.nvim_command('!curl -flo '..vimpluginstallpath..' --create-dirs '..vimplugrepository) vim.cmd 'autocmd VimEnter = PlugInstall' end local Plug = vim.fn['plug#'] -- Put plugins in this section. Define a Plug with the reposiutory of the -- plugin that you want vim.call('plug#begin', installpath) -- Nice theme Plug 'https://github.com/Pocco81/Catppuccino.nvim' -- Nvim-Tree for file browsing Plug 'nvim-tree/nvim-web-devicons' Plug 'nvim-tree/nvim-tree.lua' -- Installing mason with its dependencies Plug 'neovim/nvim-lspconfig' Plug 'williamboman/mason-lspconfig.nvim' Plug 'mfussenegger/nvim-dap' Plug 'mfussenegger/nvim-lint' Plug 'mhartington/formatter.nvim' Plug 'williamboman/mason.nvim' -- Telescope for find files and in files Plug 'nvim-lua/plenary.nvim' Plug 'BurntSushi/ripgrep' -- Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } Plug 'nvim-treesitter/nvim-treesitter' Plug 'nvim-telescope/telescope.nvim' -- Status line Plug 'nvim-lualine/lualine.nvim' -- Tabs Plug 'romgrk/barbar.nvim' vim.call('plug#end') --- Plugins configuration --- -- Color scheme vim.cmd[[colorscheme catppuccin]] -- nvim-tree require('nvim-tree').setup ({ sort_by = 'case_sensitive', view = { adaptive_size = true, mappings = { list = { { key = 'u', action = 'dir_up' }, }, }, }, renderer = { group_empty = true, }, filters = { dotfiles = true, }, }) vim.api.nvim_set_keymap('n', '', ':NvimTreeToggle', { noremap = true, silent = true }) -- Mason require('mason').setup() require('mason-lspconfig').setup() require'lspconfig'.clangd.setup{} require'lspconfig'.luau_lsp.setup{} -- Telescope local builtin_telescope = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin_telescope.find_files, {}) vim.keymap.set('n', 'fg', builtin_telescope.live_grep, {}) vim.keymap.set('n', 'fb', builtin_telescope.buffers, {}) vim.keymap.set('n', 'fh', builtin_telescope.help_tags, {}) require('telescope').setup {} -- require('telescope').load_extension('fzf') -- Lua line require('lualine').setup { options = { theme = 'ayu_mirage' } } -- Bars require('bufferline').setup() local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Move to previous/next map('n', '', 'BufferPrevious', opts) map('n', '', 'BufferNext', opts) -- Re-order to previous/next map('n', '', 'BufferMovePrevious', opts) map('n', '>', 'BufferMoveNext', opts) -- Goto buffer in position... map('n', '', 'BufferGoto 1', opts) map('n', '', 'BufferGoto 2', opts) map('n', '', 'BufferGoto 3', opts) map('n', '', 'BufferGoto 4', opts) map('n', '', 'BufferGoto 5', opts) map('n', '', 'BufferGoto 6', opts) map('n', '', 'BufferGoto 7', opts) map('n', '', 'BufferGoto 8', opts) map('n', '', 'BufferGoto 9', opts) map('n', '', 'BufferLast', opts) -- Pin/unpin buffer map('n', '', 'BufferPin', opts) -- Close buffer map('n', '', 'BufferClose', opts) -- Wipeout buffer -- :BufferWipeout -- Close commands -- :BufferCloseAllButCurrent -- :BufferCloseAllButPinned -- :BufferCloseAllButCurrentOrPinned -- :BufferCloseBuffersLeft -- :BufferCloseBuffersRight -- Magic buffer-picking mode map('n', '', 'BufferPick', opts) -- Sort automatically by... map('n', 'bb', 'BufferOrderByBufferNumber', opts) map('n', 'bd', 'BufferOrderByDirectory', opts) map('n', 'bl', 'BufferOrderByLanguage', opts) map('n', 'bw', 'BufferOrderByWindowNumber', opts)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts