diff options
| author | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2025-10-30 15:30:09 +0100 |
|---|---|---|
| committer | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2025-10-30 15:30:09 +0100 |
| commit | f4168dd73f11a896ed00180fec5b5159a4019ade (patch) | |
| tree | 341e7ca745c19b0e0701d1e60d19725b0eb22df4 | |
| parent | aac0e96aee64454f30032ee9ceb39ce0066b566d (diff) | |
| download | gabrielgio.lua-f4168dd73f11a896ed00180fec5b5159a4019ade.tar.gz gabrielgio.lua-f4168dd73f11a896ed00180fec5b5159a4019ade.tar.bz2 gabrielgio.lua-f4168dd73f11a896ed00180fec5b5159a4019ade.zip | |
Update nvim usage along with enable dark theme
| -rw-r--r-- | init.lua | 7 | ||||
| -rw-r--r-- | lua/gabrielgio/lazy.lua | 20 | ||||
| -rw-r--r-- | lua/gabrielgio/mini.lua | 8 | ||||
| -rw-r--r-- | lua/gabrielgio/settable.lua | 2 |
4 files changed, 31 insertions, 6 deletions
@@ -31,11 +31,10 @@ local pkgs = { "TimUntersberger/neogit", -- magit "vimwiki/vimwiki", -- wiki "f-person/git-blame.nvim", -- more git info - "echasnovski/mini.nvim", -- provides many things + "nvim-mini/mini.nvim", -- provides many things "mhartington/formatter.nvim", -- provider formatter "mfussenegger/nvim-lint", -- general linter "nvim-treesitter/nvim-treesitter-context", -- show context of where it is at the code - "theHamsta/nvim-dap-virtual-text", -- support lib from tree sitter "mbbill/undotree", -- keep track of undos "hedyhli/outline.nvim", -- symbols tree (lsp aware) "akinsho/toggleterm.nvim", -- terminal @@ -61,11 +60,11 @@ add({ -- work related ai plugins if vim.fn.executable("copilot") == 1 then - table.insert(pkgs, "github/copilot.vim") -- copilot + table.insert(pkgs, "github/copilot.vim") end if vim.fn.executable("claude") == 1 then - table.insert(pkgs, "coder/claudecode.nvim") -- claude + table.insert(pkgs, "coder/claudecode.nvim") end for _, value in ipairs(pkgs) do diff --git a/lua/gabrielgio/lazy.lua b/lua/gabrielgio/lazy.lua index e8b76cc..03e68d1 100644 --- a/lua/gabrielgio/lazy.lua +++ b/lua/gabrielgio/lazy.lua @@ -3,7 +3,6 @@ require("gitblame").setup() require("neogit").setup() require("mason").setup() -require("nvim-dap-virtual-text").setup() require("treesitter-context").setup() require("mason-lspconfig").setup({ ensure_installed = { @@ -19,3 +18,22 @@ require("mason-lspconfig").setup({ -- "clangd" not working on alpine }, }) + +vim.diagnostic.config({ + signs = { + text = { + [vim.diagnostic.severity.ERROR] = "", + [vim.diagnostic.severity.WARN] = "", + [vim.diagnostic.severity.INFO] = "", + [vim.diagnostic.severity.HINT] = "", + }, + }, + virtual_text = false, + virtual_lines = { + format = function(d) + return d.message + end, + current_line = true, + }, + severity_sort = true, +}) diff --git a/lua/gabrielgio/mini.lua b/lua/gabrielgio/mini.lua index 087e5be..bc5f347 100644 --- a/lua/gabrielgio/mini.lua +++ b/lua/gabrielgio/mini.lua @@ -5,6 +5,8 @@ local notify = require("mini.notify") local status = require("mini.statusline") local tabline = require("mini.tabline") local ai = require("mini.ai") +local trailspace = require("mini.trailspace") +local indentscope = require("mini.indentscope") cmp.setup() diff.setup({ view = { style = "sign" } }) @@ -13,3 +15,9 @@ notify.setup() status.setup() tabline.setup() ai.setup() +trailspace.setup() +indentscope.setup({ + draw = { + animation = indentscope.gen_animation.none(), + }, +}) diff --git a/lua/gabrielgio/settable.lua b/lua/gabrielgio/settable.lua index 76aa8d6..8c4814b 100644 --- a/lua/gabrielgio/settable.lua +++ b/lua/gabrielgio/settable.lua @@ -47,7 +47,7 @@ vim.opt.updatetime = 100 vim.opt.foldmethod = "expr" vim.opt.foldexpr = "nvim_treesitter#foldexpr()" vim.opt.foldenable = false -vim.o.background = "light" +vim.o.background = "dark" if 1 == 1 then vim.cmd("colorscheme edge") else |
