[Bug] Basic configuration fails
71GA opened this issue · 3 comments
71GA commented
I installed feline with packer and it is listed as one of the installed packages.
But if I add the simplest configuration line:
require('feline').setup()
in my init.lua
, "Neovim" 0.6.1
reports an error:
Error detected while processing /home/ziga/.config/nvim/init.lua:
E5112: Error while creating lua chunk: /home/ziga/.config/nvim/init.lua:75: '<eof>' expected near 'require'
Press ENTER or type command to continue
My folder structure is like this:
ziga@EN3310278:~$ tree .config/nvim/
.config/nvim/
├── init.lua
└── plugin
└── packer_compiled.lua
And my init.lua
is like this:
----------------------------------------------------------------------------------------------------
-- Here we set options that are already part of "Neovim" and are not from "Neovim" plugins.
----------------------------------------------------------------------------------------------------
vim.opt.backup = false -- creates a backup file
vim.opt.swapfile = false -- creates a swapfile
vim.opt.writebackup = false -- if file is edited elsewhere it can't be edited.
vim.opt.undofile = true -- enable persistent undo
vim.opt.clipboard = "unnamedplus" -- allows neovim to access the system clipboard
vim.opt.fileencoding = "utf-8" -- the encoding written to a file
vim.opt.mouse = "a" -- allow the mouse to be used in neovim
vim.opt.list = true -- show tabs, spaces, eol
vim.opt.listchars = { -- character for tabs, spaces, eol
tab = '┊ ',
extends = '⟩',
precedes = '⟨',
trail = '×'
}
vim.opt.timeoutlen = 3000 -- time to wait (ms) for a key sequence to complete
vim.opt.updatetime = 300 -- faster completion (4000ms default)
vim.opt.hlsearch = true -- highlight all matches on previous search pattern
vim.opt.ignorecase = true -- ignore case in search patterns
vim.opt.smartcase = true -- smart case in search pattersn
vim.opt.splitbelow = true -- all horizontal splits open below the current window
vim.opt.splitright = true -- all vertical splits open right of the current window
vim.opt.scrolloff = 4 -- scroll X lines before bottom/top edge
vim.opt.sidescrolloff = 4 -- scroll X lines before right/left edge
vim.opt.wrap = false -- display lines as one long line
vim.opt.smartindent = false -- don't make indenting smart
vim.opt.expandtab = true -- convert tabs to spaces
vim.opt.shiftwidth = 4 -- the number of spaces inserted for each indentation
vim.opt.tabstop = 4 -- insert 2 spaces for a tab�
vim.opt.showtabline = 1 -- show tabs 0/1/2/
vim.opt.cursorline = false -- highlight the current line
vim.opt.number = true -- set numbered lines
vim.opt.relativenumber = false -- set relative numbered lines
vim.opt.numberwidth = 4 -- set number column width to 4 {default 4}
vim.opt.signcolumn = "yes" -- always show the sign column
vim.opt.pumheight = 10 -- pop up menu height
----------------------------------------------------------------------------------------------------
-- PLUGIN "PACKER": Package manager which installs itself (1st line) and other plugins.
----------------------------------------------------------------------------------------------------
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
use 'feline-nvim/feline.nvim'
use 'lewis6991/gitsigns.nvim'
end)
----------------------------------------------------------------------------------------------------
-- PLUGIN "FELINE": Bottom bar styling.
----------------------------------------------------------------------------------------------------
--require('feline').setup()
famiu commented
You return
ed from the script before require
ing Feline. Please try to at least put minimal effort into seeing if there's a flaw on your side before opening an issue
71GA commented
I am sorry I am no Lua expert. I will have to look at some Lua basics it seems. Thank you again for the hint!
famiu commented
I am sorry I am no Lua expert. I will have to look at some Lua basics it seems. Thank you again for the hint!
Yea it's not a problem. Apologies if the response felt harsh.