nvim: hide cmd bar, when not needed

This commit is contained in:
Marco Thomas
2023-01-30 16:11:23 +01:00
parent a08402b8d3
commit dc07e72022
3 changed files with 5 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ local default_opts = { noremap = true, silent = true }
vim.g.mapleader = ' ' vim.g.mapleader = ' '
map("n", "<C-_>", "<cmd> noh<CR>", default_opts) map("n", "<C-_>", "<cmd> noh<CR>", default_opts)
map("n", "<C-n>", "<cmd> messages<CR>", default_opts) map("n", "<C-m>", "<cmd> messages<CR>", default_opts)
-- Telescope -- Telescope
local telescope = require 'telescope' local telescope = require 'telescope'

View File

@@ -145,12 +145,12 @@ return require('packer').startup(function(use)
-- fancy lsp loading animation -- fancy lsp loading animation
use({ use({
'j-hui/fidget.nvim', 'j-hui/fidget.nvim',
config = function() require"fidget".setup{} end, config = function() require "fidget".setup {} end,
}) })
-- latex synctex -- latex synctex
-- pip install pygobject dbus-python pynvim -- pip install pygobject dbus-python pynvim
use({"peterbjorgensen/sved"}) use({ "peterbjorgensen/sved" })
-- Automatically set up your configuration after cloning packer.nvim -- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins -- Put this at the end after all plugins

View File

@@ -14,6 +14,7 @@ opt.list = true -- Show trailing whitespaces
opt.wrap = false -- Show trailing whitespaces opt.wrap = false -- Show trailing whitespaces
opt.ignorecase = true -- Ignore case when searching opt.ignorecase = true -- Ignore case when searching
opt.smartcase = true -- -> unless capitol letters are used opt.smartcase = true -- -> unless capitol letters are used
opt.undofile = true -- Save undo history
opt.cmdheight = 0 -- Hide cmd bar, unless needed
vim.opt.undofile = true -- Save undo history
vim.o.mouse = 'a' -- Enable mouse vim.o.mouse = 'a' -- Enable mouse