From abb301f2ab56424cd56f12b93e3cdcedeab97951 Mon Sep 17 00:00:00 2001 From: megawonzz9 Date: Tue, 29 Apr 2025 18:30:20 +0200 Subject: [PATCH] very good --- init.lua | 40 ++++++++++++++++++++++++-------- lua/custom/plugins/cord.lua | 6 +++++ lua/custom/plugins/crates.lua | 7 ++++++ lua/custom/plugins/leap.lua | 10 ++++++++ lua/custom/plugins/snipe.lua | 13 +++++++++++ lua/custom/plugins/tscontext.lua | 6 +++++ lua/custom/plugins/vimbegood.lua | 3 +++ 7 files changed, 75 insertions(+), 10 deletions(-) create mode 100644 lua/custom/plugins/cord.lua create mode 100644 lua/custom/plugins/crates.lua create mode 100644 lua/custom/plugins/leap.lua create mode 100644 lua/custom/plugins/snipe.lua create mode 100644 lua/custom/plugins/tscontext.lua create mode 100644 lua/custom/plugins/vimbegood.lua diff --git a/init.lua b/init.lua index 776c6873..52feff0a 100644 --- a/init.lua +++ b/init.lua @@ -83,6 +83,10 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now! :) --]] +vim.opt.tabstop = 4 +vim.opt.softtabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.expandtab = false -- Set as the leader key -- See `:help mapleader` @@ -91,7 +95,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -102,7 +106,7 @@ vim.g.have_nerd_font = false vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -664,7 +668,13 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = { + settings = { + format = { + indent = 'tab', + }, + }, + }, -- pyright = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -828,6 +838,11 @@ require('lazy').setup({ -- -- See :h blink-cmp-config-keymap for defining your own keymap preset = 'default', + [''] = { 'show', 'show_documentation', 'hide_documentation' }, + + [''] = { 'accept', 'fallback' }, + [''] = { 'select_next', 'fallback' }, + [''] = { 'select_prev', 'fallback' }, -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps @@ -865,6 +880,10 @@ require('lazy').setup({ -- Shows a signature help window while you type arguments for a function signature = { enabled = true }, + + cmdline = { + enabled = false, + }, }, }, @@ -965,18 +984,19 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', + require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, + require 'custom.plugins.init', -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/cord.lua b/lua/custom/plugins/cord.lua new file mode 100644 index 00000000..361c2938 --- /dev/null +++ b/lua/custom/plugins/cord.lua @@ -0,0 +1,6 @@ +return { + + 'vyfor/cord.nvim', + build = ':Cord update', + -- opts = {} +} diff --git a/lua/custom/plugins/crates.lua b/lua/custom/plugins/crates.lua new file mode 100644 index 00000000..763d19de --- /dev/null +++ b/lua/custom/plugins/crates.lua @@ -0,0 +1,7 @@ +return { + 'saecki/crates.nvim', + tag = 'stable', + config = function() + require('crates').setup() + end, +} diff --git a/lua/custom/plugins/leap.lua b/lua/custom/plugins/leap.lua new file mode 100644 index 00000000..c50137fc --- /dev/null +++ b/lua/custom/plugins/leap.lua @@ -0,0 +1,10 @@ +return { + 'ggandor/leap.nvim', + init = function() + require('leap').add_default_mappings() + end, + dependencies = { + 'tpope/vim-repeat', + }, + lazy = false, +} diff --git a/lua/custom/plugins/snipe.lua b/lua/custom/plugins/snipe.lua new file mode 100644 index 00000000..fa7c1ba8 --- /dev/null +++ b/lua/custom/plugins/snipe.lua @@ -0,0 +1,13 @@ +return { + 'leath-dub/snipe.nvim', + keys = { + { + 'gb', + function() + require('snipe').open_buffer_menu() + end, + desc = 'Open Snipe buffer menu', + }, + }, + opts = {}, +} diff --git a/lua/custom/plugins/tscontext.lua b/lua/custom/plugins/tscontext.lua new file mode 100644 index 00000000..814ca8ea --- /dev/null +++ b/lua/custom/plugins/tscontext.lua @@ -0,0 +1,6 @@ +return { + { + 'nvim-treesitter/nvim-treesitter-context', + lazy = false, + }, +} diff --git a/lua/custom/plugins/vimbegood.lua b/lua/custom/plugins/vimbegood.lua new file mode 100644 index 00000000..b1e2a543 --- /dev/null +++ b/lua/custom/plugins/vimbegood.lua @@ -0,0 +1,3 @@ +return { + 'ThePrimeagen/vim-be-good', +}