From 2a2afe13a07837628b5fbcb1054ad9558eeee34f Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Fri, 15 Apr 2022 18:30:28 +0100 Subject: [PATCH] fix(statusline): use global statusline --- README.md | 2 +- neovim/init.lua | 4 ---- neovim/lua/options.lua | 7 ++++++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f3e8175..2d33bf5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # neovim-config -Neovim configuration \ No newline at end of file +Neovim configuration for neovim version 0.7.0+. diff --git a/neovim/init.lua b/neovim/init.lua index 0347199..9c5d0cc 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -1,7 +1,3 @@ require("plugins") require("options") require("keybindings") - --- load the status line -local statusline = require("statusline") -vim.opt.statusline = statusline.output() diff --git a/neovim/lua/options.lua b/neovim/lua/options.lua index a05afd5..9aee33b 100644 --- a/neovim/lua/options.lua +++ b/neovim/lua/options.lua @@ -63,5 +63,10 @@ g.netrw_altv = 1 -- open split to the right g.netrw_winsize = 10 -- set the size of the Explorer window g.netrw_keepdir = 0 -- keep the browsing directory the same as the current directory ---- Configure Omnifunc to use the LSP client. +-- Configure Omnifunc to use the LSP client set.omnifunc = "v:lua.vim.lsp.omnifunc" + +-- The Statusline +local statusline = require("statusline") +set.statusline = statusline.output() +set.laststatus = 3