Skip to content

Commit

Permalink
neovim: reduce the number of consecutive vim.cmd calls
Browse files Browse the repository at this point in the history
  • Loading branch information
adomixaszvers committed Jan 11, 2025
1 parent 4980990 commit 0ab1709
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions profiles/cli/neovim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@ if vim.env.TERM == 'linux' then
elseif vim.env.TERM == 'xterm' then
vim.cmd('colorscheme default')
else
vim.cmd('colorscheme nordic')
vim.cmd('packadd lualine-nvim')
vim.cmd([[
colorscheme nordic
packadd lualine.nvim
packadd nvim-web-devicons
]])
require('lualine').setup({
options = {
-- disabling section separators fixes
-- the disappearing start screen issue
section_separators = '',
},
})
vim.cmd('packadd nvim-web-devicons')
end

local nix_flakes_ag = vim.api.nvim_create_augroup('nix-flakes', { clear = true })
Expand Down

0 comments on commit 0ab1709

Please sign in to comment.