From 156be53fdc488ca31c769c9b6f0746cc858cc8c7 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 18 May 2025 21:43:45 +0200 Subject: [PATCH] Updated script --- config/nvim/init.lua | 48 +++++++++++++------------------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 0d92fa4..12fd41d 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -101,7 +101,6 @@ vim.opt.rtp:prepend(lazypath) ------------------------------------------------------------------- require("lazy").setup({ - -- Color scheme ------------------------------------------ { dir = "~/linuxbox/nightly_cm.nvim", lazy = false, @@ -111,7 +110,6 @@ require("lazy").setup({ end, }, - -- LSP ---------------------------------------------------- { "folke/lazydev.nvim", ft = "lua", -- only load on lua files @@ -123,7 +121,6 @@ require("lazy").setup({ }, { - -- Main LSP Configuration "neovim/nvim-lspconfig", dependencies = { { "j-hui/fidget.nvim", opts = {} }, @@ -165,12 +162,11 @@ require("lazy").setup({ end, }) - -- Diagnostic Config vim.diagnostic.config({ severity_sort = true, float = { border = "rounded", source = "if_many" }, underline = { severity = vim.diagnostic.severity.ERROR }, - signs = vim.g.have_nerd_font and { + signs = { text = { [vim.diagnostic.severity.ERROR] = "󰅚 ", [vim.diagnostic.severity.WARN] = "󰀪 ", @@ -255,7 +251,7 @@ require("lazy").setup({ }, }, - { -- Autocompletion + { "saghen/blink.cmp", event = "VimEnter", version = "1.*", @@ -303,7 +299,7 @@ require("lazy").setup({ }, }, - { -- Highlight, edit, and navigate code + { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", main = "nvim-treesitter.configs", -- Sets main module to use for opts @@ -332,7 +328,6 @@ require("lazy").setup({ }, }, - -- File explorer ------------------------------------------- { "ibhagwan/fzf-lua", dependencies = { "echasnovski/mini.icons" }, @@ -364,18 +359,6 @@ require("lazy").setup({ }, }, - { - "NeogitOrg/neogit", - dependencies = { - "nvim-lua/plenary.nvim", -- required - "sindrets/diffview.nvim", -- optional - Diff integration - - -- Only one of these is needed. - "ibhagwan/fzf-lua", -- optional - }, - }, - - -- GUI ------------------------------------------------------ { "mrjones2014/smart-splits.nvim", lazy = false, @@ -385,7 +368,6 @@ require("lazy").setup({ }, { - -- Set lualine as statusline "nvim-lualine/lualine.nvim", opts = { options = { @@ -427,18 +409,24 @@ require("lazy").setup({ { "echasnovski/mini.icons", version = "*", opts = {} }, { "echasnovski/mini.pairs", version = "*", opts = {} }, + { "echasnovski/mini.surround", version = "*", opts = {} }, { "echasnovski/mini.files", version = "*", opts = { mappings = { - go_in_plus = "l", + go_n_plus = "l", go_out = "h", go_out_plus = "H", } }, }, { - "lewis6991/gitsigns.nvim", + "karb94/neoscroll.nvim", + opts = { duration_multiplier = 0.5 }, + }, + + { + "lews6991/gitsigns.nvim", opts = { signs = { add = { text = "▎" }, @@ -462,6 +450,8 @@ require("lazy").setup({ { "lukas-reineke/indent-blankline.nvim", main = "ibl", + ---@module "ibl" + ---@type ibl.config opts = { scope = { show_end = false, @@ -489,7 +479,6 @@ require("lazy").setup({ opts = {}, }, - -- Utils --------------------------------------------------- { "max397574/better-escape.nvim", opts = { timeout = 300 }, @@ -502,14 +491,6 @@ require("lazy").setup({ dependencies = { "nvim-lua/plenary.nvim" }, opts = {}, }, - - { - "phaazon/hop.nvim", - branch = "v2", -- optional but strongly recommended - opts = { - keys = "etovxqpdygfblzhckisuran", - }, - }, }, {}) -- resizing splits @@ -534,9 +515,8 @@ vim.keymap.set({ "n", "v" }, "d", '"+d', { noremap = true, silent = true }) -- vim.keymap.set({ 'n', 'v' }, 'x', '"+x', { noremap = true, silent = true }) vim.keymap.set({ "n", "v" }, "p", '"+p', { noremap = true, silent = true }) vim.keymap.set({ "n", "v" }, "P", '"+P', { noremap = true, silent = true }) ---Other +-- Other vim.keymap.set("n", "", "nohlsearch") -vim.keymap.set("n", "s", ":HopWord", { desc = "hop", silent = true }) vim.keymap.set("n", "", ":tabNext", { desc = "Next tab", silent = true }) vim.keymap.set("n", "", ":write", { desc = "Save", silent = true }) vim.keymap.set("n", "", ":quit", { desc = "Quit", silent = true })