From 61398a659cbc44739c2b53ea9378782c9894f600 Mon Sep 17 00:00:00 2001 From: aleidk Date: Thu, 24 Jul 2025 10:03:53 -0400 Subject: [PATCH] fix no statusline in nvim --- Configs/nvim/.config/nvim/init.lua | 2 +- .../nvim/.config/nvim/lua/aleidk/options.lua | 58 +++++++++---------- .../nvim/lua/aleidk/plugins/bookmarks.lua | 1 - .../.config/nvim/lua/aleidk/plugins/debug.lua | 13 +++++ .../.config/nvim/lua/aleidk/plugins/init.lua | 1 - .../.config/nvim/lua/aleidk/plugins/mini.lua | 2 +- 6 files changed, 43 insertions(+), 34 deletions(-) create mode 100644 Configs/nvim/.config/nvim/lua/aleidk/plugins/debug.lua diff --git a/Configs/nvim/.config/nvim/init.lua b/Configs/nvim/.config/nvim/init.lua index 149787a..ea65040 100644 --- a/Configs/nvim/.config/nvim/init.lua +++ b/Configs/nvim/.config/nvim/init.lua @@ -29,5 +29,5 @@ require("lazy").setup({ -- colorscheme that will be used when installing plugins. install = { colorscheme = { "habamax" } }, -- automatically check for plugin updates --- checker = { enabled = true }, + -- checker = { enabled = true }, }) diff --git a/Configs/nvim/.config/nvim/lua/aleidk/options.lua b/Configs/nvim/.config/nvim/lua/aleidk/options.lua index 08b00ec..07f633b 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/options.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/options.lua @@ -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.autowrite = true -- Enable auto write --- opt.completeopt = "menu,menuone,noselect" -vim.o.completeopt = 'noselect,menu,menuone,noinsert,popup' +-- 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.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 @@ -25,40 +27,36 @@ opt.expandtab = true -- Use spaces instead of tabs 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.mouse = "a" -- Enable mouse mode -opt.number = true -- Print line number +opt.ignorecase = true -- Ignore case +opt.inccommand = 'split' -- Preview substitutions live, as you type! +opt.mouse = "a" -- Enable mouse mode opt.nrformats = 'blank,bin,hex' -opt.pumblend = 10 -- Popup blend -opt.pumheight = 10 -- Maximum number of entries in a popup -opt.relativenumber = true -- Relative line numbers -opt.scrolloff = 15 -- Lines of context +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 +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 -opt.smartcase = true -- Don't ignore case with capitals -opt.smartindent = true -- Insert indents automatically +opt.shiftround = true -- Round indent +opt.shiftwidth = 2 -- Size of an indent +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 +opt.smartcase = true -- Don't ignore case with capitals +opt.smartindent = true -- Insert indents automatically opt.spelllang = { "en" } -opt.splitbelow = true -- Put new windows below current -opt.splitright = true -- Put new windows right of current -opt.tabstop = 2 -- Number of spaces tabs count for -opt.termguicolors = true -- True color support +opt.splitbelow = true -- Put new windows below current +opt.splitright = true -- Put new windows right of current +opt.tabstop = 2 -- Number of spaces tabs count for +opt.termguicolors = true -- True color support opt.undofile = true opt.undolevels = 10000 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" diff --git a/Configs/nvim/.config/nvim/lua/aleidk/plugins/bookmarks.lua b/Configs/nvim/.config/nvim/lua/aleidk/plugins/bookmarks.lua index fe3a1a2..f5e8aee 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/plugins/bookmarks.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/plugins/bookmarks.lua @@ -13,7 +13,6 @@ return { dependencies = { { "nvim-tree/nvim-web-devicons", lazy = true }, }, - lazy = false, cmd = "Grapple", keys = { { "a", "Grapple toggle", desc = "Toggle bookmark for current file" }, diff --git a/Configs/nvim/.config/nvim/lua/aleidk/plugins/debug.lua b/Configs/nvim/.config/nvim/lua/aleidk/plugins/debug.lua new file mode 100644 index 0000000..3dd6907 --- /dev/null +++ b/Configs/nvim/.config/nvim/lua/aleidk/plugins/debug.lua @@ -0,0 +1,13 @@ +return { + { + "mfussenegger/nvim-dap", + dependencies = { + { + "igorlfs/nvim-dap-view", + ---@module 'dap-view' + ---@type dapview.Config + opts = {}, + }, + } + } +} diff --git a/Configs/nvim/.config/nvim/lua/aleidk/plugins/init.lua b/Configs/nvim/.config/nvim/lua/aleidk/plugins/init.lua index beb326c..153e3f6 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/plugins/init.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/plugins/init.lua @@ -5,7 +5,6 @@ return { "mason-org/mason.nvim", opts = {} }, - { "nvim-tree/nvim-web-devicons", lazy = true }, { "ckolkey/ts-node-action", dependencies = { "nvim-treesitter" }, diff --git a/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua b/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua index eef25ad..4450c78 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua @@ -22,7 +22,7 @@ return { require('mini.notify').setup() vim.notify = require('mini.notify').make_notify() vim.keymap.set('n', '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({})