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

@ -29,5 +29,5 @@ require("lazy").setup({
-- colorscheme that will be used when installing plugins. -- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } }, install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates -- automatically check for plugin updates
-- checker = { enabled = true }, -- checker = { enabled = true },
}) })

View file

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

View file

@ -13,7 +13,6 @@ return {
dependencies = { dependencies = {
{ "nvim-tree/nvim-web-devicons", lazy = true }, { "nvim-tree/nvim-web-devicons", lazy = true },
}, },
lazy = false,
cmd = "Grapple", cmd = "Grapple",
keys = { keys = {
{ "<leader><leader>a", "<cmd>Grapple toggle<cr>", desc = "Toggle bookmark for current file" }, { "<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", "mason-org/mason.nvim",
opts = {} opts = {}
}, },
{ "nvim-tree/nvim-web-devicons", lazy = true },
{ {
"ckolkey/ts-node-action", "ckolkey/ts-node-action",
dependencies = { "nvim-treesitter" }, dependencies = { "nvim-treesitter" },

View file

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