fix no statusline in nvim

This commit is contained in:
Alexander Navarro 2025-07-24 10:03:53 -04:00
parent 59656e019f
commit 61398a659c
6 changed files with 43 additions and 34 deletions

View file

@ -13,11 +13,13 @@ vim.schedule(function()
vim.opt.clipboard = 'unnamedplus'
end)
vim.o.winborder = 'rounded'
opt.breakindent = true -- Every wrapped line will continue visually indented
-- opt.shortmess:append({ W = true, I = true, c = true }) -- INFO: this control the format of some messages
-- vim.o.exrc = true
-- vim.opt.list = true -- Sets how neovim will display certain whitespace characters in the editor.
-- vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
opt.autowrite = true -- Enable auto write
-- opt.completeopt = "menu,menuone,noselect"
vim.o.completeopt = 'noselect,menu,menuone,noinsert,popup'
opt.breakindent = true -- Every wrapped line will continue visually indented
opt.completeopt = "menu,menuone,noselect"
opt.conceallevel = 2 -- Hide * markup for bold and italic
opt.confirm = true -- Confirm to save changes before exiting modified buffer
opt.cursorline = true -- Enable highlighting of the current line
@ -26,13 +28,10 @@ opt.formatoptions = "jcroqlnt" -- tcqj
opt.grepformat = "%f:%l:%c:%m"
opt.grepprg = "rg --vimgrep"
opt.ignorecase = true -- Ignore case
opt.inccommand = "nosplit" -- preview incremental substitute
opt.laststatus = 0
vim.opt.list = true -- Sets how neovim will display certain whitespace characters in the editor.
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
opt.inccommand = 'split' -- Preview substitutions live, as you type!
opt.mouse = "a" -- Enable mouse mode
opt.number = true -- Print line number
opt.nrformats = 'blank,bin,hex'
opt.number = true -- Print line number
opt.pumblend = 10 -- Popup blend
opt.pumheight = 10 -- Maximum number of entries in a popup
opt.relativenumber = true -- Relative line numbers
@ -40,7 +39,6 @@ opt.scrolloff = 15 -- Lines of context
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftround = true -- Round indent
opt.shiftwidth = 2 -- Size of an indent
-- opt.shortmess:append({ W = true, I = true, c = true }) -- INFO: this control the format of some messages
opt.showmode = false -- Don't show mode since we have a statusline
opt.sidescrolloff = 8 -- Columns of context
opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
@ -57,8 +55,8 @@ opt.updatetime = 200 -- Save swap file and trigger CursorHold
opt.wildmode = "longest,list:full" -- Command-line completion mode
opt.winminwidth = 5 -- Minimum window width
opt.wrap = false -- Disable line wrap
opt.inccommand = 'split' -- Preview substitutions live, as you type!
-- vim.o.exrc = true
vim.o.completeopt = 'noselect,menu,menuone,noinsert,popup'
vim.o.winborder = 'rounded'
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"

View file

@ -13,7 +13,6 @@ return {
dependencies = {
{ "nvim-tree/nvim-web-devicons", lazy = true },
},
lazy = false,
cmd = "Grapple",
keys = {
{ "<leader><leader>a", "<cmd>Grapple toggle<cr>", desc = "Toggle bookmark for current file" },

View file

@ -0,0 +1,13 @@
return {
{
"mfussenegger/nvim-dap",
dependencies = {
{
"igorlfs/nvim-dap-view",
---@module 'dap-view'
---@type dapview.Config
opts = {},
},
}
}
}

View file

@ -5,7 +5,6 @@ return {
"mason-org/mason.nvim",
opts = {}
},
{ "nvim-tree/nvim-web-devicons", lazy = true },
{
"ckolkey/ts-node-action",
dependencies = { "nvim-treesitter" },

View file

@ -22,7 +22,7 @@ return {
require('mini.notify').setup()
vim.notify = require('mini.notify').make_notify()
vim.keymap.set('n', '<Leader>un', require('mini.notify').show_history, { desc = 'Show notifications', silent = true })
require('mini.statusline').setup({})
require('mini.statusline').setup()
require('mini.diff').setup({ view = { style = 'sign' } })
require('mini.git').setup({})