this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvim config

+245
+30
nvim/init.lua
··· 1 + require("config.lazy") 2 + require("config.keys") 3 + 4 + ---@diagnostic disable-next-line: undefined-field 5 + vim.opt.fillchars:append { diff = "╱" } 6 + 7 + vim.opt.termguicolors = true 8 + vim.opt.relativenumber = true 9 + vim.opt.shiftwidth = 2 10 + vim.opt.tabstop = 2 11 + vim.opt.clipboard = "" 12 + 13 + -- Reserve a space in the gutter 14 + vim.opt.signcolumn = 'yes' 15 + 16 + 17 + local cmp = require('cmp') 18 + 19 + cmp.setup({ 20 + sources = { 21 + { name = 'nvim_lsp' }, 22 + }, 23 + snippet = { 24 + expand = function(args) 25 + -- You need Neovim v0.10 to use vim.snippet 26 + vim.snippet.expand(args.body) 27 + end, 28 + }, 29 + mapping = cmp.mapping.preset.insert({}), 30 + })
+23
nvim/lazy-lock.json
··· 1 + { 2 + "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, 3 + "avante.nvim": { "branch": "main", "commit": "f8d80d87c5e2a230ccb29805411bb67aefa1cf96" }, 4 + "bufferline.nvim": { "branch": "main", "commit": "5c528bee3dd797d5bd6bae5f229411939b25b203" }, 5 + "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, 6 + "copilot.lua": { "branch": "master", "commit": "f8d8d872bb319f640d5177dad5fbf01f7a16d7d0" }, 7 + "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, 8 + "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" }, 9 + "img-clip.nvim": { "branch": "main", "commit": "28a32d811d69042f4fa5c3d5fa35571df2bc1623" }, 10 + "lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" }, 11 + "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, 12 + "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, 13 + "nvim-cmp": { "branch": "main", "commit": "29fb4854573355792df9e156cb779f0d31308796" }, 14 + "nvim-lspconfig": { "branch": "master", "commit": "59a6766cbf32c7e4cf3ed685ccad7ffe1dde8c40" }, 15 + "nvim-tree.lua": { "branch": "master", "commit": "4a9e82d10a3715d0c3845e1d2f66ddfb8b711253" }, 16 + "nvim-treesitter": { "branch": "master", "commit": "1c111e3e8f42c85b16cb4bf30e4254fcb5607817" }, 17 + "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, 18 + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, 19 + "render-markdown.nvim": { "branch": "main", "commit": "fc05fb7c56795f191b6800799a2ec6ea325ba715" }, 20 + "rose-pine": { "branch": "main", "commit": "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e" }, 21 + "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, 22 + "which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" } 23 + }
+43
nvim/lua/config/keys.lua
··· 1 + local wk = require("which-key") 2 + 3 + wk.add({ 4 + { "<C-h>", "<C-w>h", desc = "Move focus to left pane" }, 5 + { "<C-j>", "<C-w>j", desc = "Move focus to below pane" }, 6 + { "<C-k>", "<C-w>k", desc = "Move focus to above pane" }, 7 + { "<C-l>", "<C-w>l", desc = "Move focus to right pane" }, 8 + 9 + { "<leader>b", group = "buffer" }, 10 + { "<leader>bd", "<cmd>bd<cr>", desc = "Delete Buffer" }, 11 + { "<leader>bf", "<cmd>lua vim.lsp.buf.format()<CR>", desc = "Format buffer" }, 12 + { "<leader>c", "<cmd>CommentToggle<cr>", desc = "Toggle Comment" }, 13 + { "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<cr>", desc = "Code Action" }, 14 + { "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Toggle NvimTree" }, 15 + { "E", "<cmd>NvimTreeFindFile<cr>", desc = "Toggle NvimTree" }, 16 + 17 + { "<leader>f", group = "file" }, 18 + { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" }, 19 + { "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Recent Files" }, 20 + { "<leader>q", "<cmd>q<cr>", desc = "Quit" }, 21 + 22 + { "<leader>s", group = "search" }, 23 + { "<leader>sb", "<cmd>Telescope buffers<cr>", desc = "Buffers" }, 24 + { "<leader>sg", "<cmd>Telescope live_grep<cr>", desc = "Live Grep" }, 25 + { "<leader>sh", "<cmd>Telescope help_tags<cr>", desc = "Help Tags" }, 26 + { "<leader>w", "<cmd>w<cr>", desc = "Save" }, 27 + 28 + { "<leader>Q", "<cmd>qa<cr>", desc = "Quit all" }, 29 + { "H", ":bp<cr>", desc = "Switch to previous buffer" }, 30 + { "K", "<cmd>lua vim.lsp.buf.hover()<cr>", desc = "Hover" }, 31 + { "L", ":bn<cr>", desc = "Switch to next buffer" }, 32 + { "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>", desc = "Previous Diagnostic" }, 33 + { "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<cr>", desc = "Next Diagnostic" }, 34 + 35 + { "g", group = "goto" }, 36 + { "gD", "<cmd>lua vim.lsp.buf.declaration()<cr>", desc = "Declaration" }, 37 + { "gd", "<cmd>lua vim.lsp.buf.definition()<cr>", desc = "Definition" }, 38 + { "gi", "<cmd>lua vim.lsp.buf.implementation()<cr>", desc = "Implementation" }, 39 + { "gr", "<cmd>lua vim.lsp.buf.references()<cr>", desc = "References" }, 40 + 41 + { "G", group = "git" }, 42 + -- { "Gd", 43 + })
+35
nvim/lua/config/lazy.lua
··· 1 + -- Bootstrap lazy.nvim 2 + local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 3 + if not (vim.uv or vim.loop).fs_stat(lazypath) then 4 + local lazyrepo = "https://github.com/folke/lazy.nvim.git" 5 + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) 6 + if vim.v.shell_error ~= 0 then 7 + vim.api.nvim_echo({ 8 + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, 9 + { out, "WarningMsg" }, 10 + { "\nPress any key to exit..." }, 11 + }, true, {}) 12 + vim.fn.getchar() 13 + os.exit(1) 14 + end 15 + end 16 + vim.opt.rtp:prepend(lazypath) 17 + 18 + -- Make sure to setup `mapleader` and `maplocalleader` before 19 + -- loading lazy.nvim so that mappings are correct. 20 + -- This is also a good place to setup other settings (vim.opt) 21 + vim.g.mapleader = " " 22 + vim.g.maplocalleader = "\\" 23 + 24 + -- Setup lazy.nvim 25 + require("lazy").setup({ 26 + spec = { 27 + -- import your plugins 28 + { import = "plugins" }, 29 + }, 30 + -- Configure any other settings here. See the documentation for more details. 31 + -- colorscheme that will be used when installing plugins. 32 + install = { colorscheme = { "rose-pine" } }, 33 + -- automatically check for plugin updates 34 + checker = { enabled = true }, 35 + })
+48
nvim/lua/plugins/avante.lua
··· 1 + return { 2 + "yetone/avante.nvim", 3 + event = "VeryLazy", 4 + lazy = false, 5 + version = false, -- set this if you want to always pull the latest change 6 + opts = { 7 + -- add any opts here 8 + }, 9 + -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` 10 + build = "make", 11 + -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows 12 + dependencies = { 13 + "nvim-treesitter/nvim-treesitter", 14 + "stevearc/dressing.nvim", 15 + "nvim-lua/plenary.nvim", 16 + "MunifTanjim/nui.nvim", 17 + --- The below dependencies are optional, 18 + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons 19 + "zbirenbaum/copilot.lua", -- for providers='copilot' 20 + { 21 + -- support for image pasting 22 + "HakonHarnes/img-clip.nvim", 23 + event = "VeryLazy", 24 + opts = { 25 + -- recommended settings 26 + default = { 27 + provider = "openai", 28 + auto_suggestions_provider = "copilot", 29 + embed_image_as_base64 = false, 30 + prompt_for_file_name = false, 31 + drag_and_drop = { 32 + insert_mode = true, 33 + }, 34 + -- required for Windows users 35 + use_absolute_path = true, 36 + }, 37 + }, 38 + }, 39 + { 40 + -- Make sure to set this up properly if you have lazy=true 41 + 'MeanderingProgrammer/render-markdown.nvim', 42 + opts = { 43 + file_types = { "markdown", "Avante" }, 44 + }, 45 + ft = { "markdown", "Avante" }, 46 + }, 47 + }, 48 + }
+7
nvim/lua/plugins/bufferline.lua
··· 1 + return { 2 + "akinsho/bufferline.nvim", 3 + version = "*", 4 + config = function() 5 + require("bufferline").setup({}) 6 + end, 7 + }
+1
nvim/lua/plugins/cmp-nvim-lsp.lua
··· 1 + return { "hrsh7th/cmp-nvim-lsp" }
+3
nvim/lua/plugins/comment.lua
··· 1 + return { 2 + "numToStr/Comment.nvim", 3 + }
+3
nvim/lua/plugins/diffview.lua
··· 1 + return { 2 + "sindrets/diffview.nvim", 3 + }
+6
nvim/lua/plugins/mason.lua
··· 1 + return { 2 + "williamboman/mason.nvim", 3 + config = function() 4 + require("mason").setup() 5 + end, 6 + }
+1
nvim/lua/plugins/nvim-cmp.lua
··· 1 + return { "hrsh7th/nvim-cmp" }
+18
nvim/lua/plugins/nvim-lspconfig.lua
··· 1 + return { 2 + "neovim/nvim-lspconfig", 3 + config = function() 4 + local lspconfig_defaults = require("lspconfig").util.default_config 5 + lspconfig_defaults.capabilities = vim.tbl_deep_extend( 6 + "force", 7 + lspconfig_defaults.capabilities, 8 + require("cmp_nvim_lsp").default_capabilities() 9 + ) 10 + 11 + require("lspconfig").vtsls.setup({}) 12 + require("lspconfig").eslint.setup({}) 13 + require("lspconfig").gitlab_ci_ls.setup({}) 14 + require("lspconfig").spectral.setup({}) 15 + require("lspconfig").yamlls.setup({}) 16 + require("lspconfig").lua_ls.setup({}) 17 + end, 18 + }
+10
nvim/lua/plugins/nvim-tree.lua
··· 1 + return { 2 + "nvim-tree/nvim-tree.lua", 3 + version = "*", 4 + lazy = false, 5 + config = function() 6 + vim.g.loaded_netrw = 1 7 + vim.g.loaded_netrwPlugin = 1 8 + require("nvim-tree").setup({}) 9 + end, 10 + }
+10
nvim/lua/plugins/rose-pine.lua
··· 1 + return { 2 + "rose-pine/neovim", 3 + name = "rose-pine", 4 + config = function() 5 + require("rose-pine").setup({ 6 + variant = "main", 7 + }) 8 + vim.cmd("colorscheme rose-pine") 9 + end, 10 + }
+6
nvim/lua/plugins/telescope.lua
··· 1 + return { 2 + 'nvim-telescope/telescope.nvim', 3 + tag = '0.1.8', 4 + dependencies = { 'nvim-lua/plenary.nvim' }, 5 + opts = {}, 6 + }
+1
nvim/lua/plugins/which-key.lua
··· 1 + return { "folke/which-key.nvim" }