NvChad statusline working!

This commit is contained in:
ChrisHilborne 2023-10-26 12:25:02 +02:00
parent d587a8ac3e
commit 557468856d
3 changed files with 10 additions and 3 deletions

View file

@ -206,7 +206,7 @@ vim.g.theme = "tokyonight"
-- NOTE: You can change these options as you wish!
-- Set highlight on search
vim.o.hlsearch = true
vim.o.hlsearch = false
-- Make line numbers default
vim.wo.number = true
@ -252,8 +252,11 @@ vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
-- Remap for navigating between buffers
vim.keymap.set('n', '<leader>x', '<cmd>bd<CR>', { silent = true })
vim.keymap.set('n', '<leader>l', '<cmd>bnext<CR>', { silent = true })
vim.keymap.set('n', '<leader>h', '<cmd>bprev<CR>', { silent = true })
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
@ -496,6 +499,7 @@ cmp.setup {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
},
['<CR>'] = cmp.mapping.confirm({ select = false }),
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()