numToStr / FTerm.nvim

:fire: No-nonsense floating terminal plugin for neovim :fire:
MIT License
721 stars 24 forks source link

Invalid key 'border' #11

Closed basilgood closed 3 years ago

basilgood commented 3 years ago

nvim --version:

NVIM v0.5.0-dev
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: 
Compiled by nixbld

Features: +acl +iconv +tui
See ":help feature-compile"

minimal init.lua:

local path = vim.fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'

if vim.fn.empty(vim.fn.glob(path)) > 0 then
    vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim '..path)
end

-- Required if packer is in `opt` path
vim.cmd('packadd packer.nvim')

local packer = require('packer')

return packer.startup(function()
  local use = packer.use

  use { 'wbthomason/packer.nvim', opt = true }
  use {
    "numtostr/FTerm.nvim",
    config = function()
      require'FTerm'.setup()
    end
  }

end)

Commands FTermOpen or FTermToggle: E5108: Error executing lua ...site/pack/packer/start/FTerm.nvim/lua/FTerm/terminal.lua:93: Invalid key 'border' I tried:

require'FTerm'.setup({
    dimensions  = {
        height = 0.8,
        width = 0.8,
        x = 0.5,
        y = 0.5
    },
    border = 'single'
    -- border = '|'
})

with the same result. Thanks for your work.

numToStr commented 3 years ago

Thanks for raising the issue. FTerm now uses the native floating window border which is a very recent addition into the neovim. Please make sure you are using the latest nightly or HEAD.

basilgood commented 3 years ago

Yes, I updated neovim and it works perfectly. Very good plugin. Thanks.