i use arch btw
0
fork

Configure Feed

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

Format on save and format file

+122 -114
+122 -114
nvim/.config/nvim/lua/plugins.lua
··· 1 - local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' 1 + local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 2 2 3 3 if not vim.loop.fs_stat(lazypath) then 4 4 vim.fn.system({ 5 - 'git', 6 - 'clone', 7 - '--filter=blob:none', 8 - 'https://github.com/folke/lazy.nvim.git', 9 - '--branch=stable', -- latest stable release 5 + "git", 6 + "clone", 7 + "--filter=blob:none", 8 + "https://github.com/folke/lazy.nvim.git", 9 + "--branch=stable", -- latest stable release 10 10 lazypath, 11 11 }) 12 12 end 13 13 14 14 vim.opt.rtp:prepend(lazypath) 15 15 16 - require('lazy').setup({ 16 + require("lazy").setup({ 17 17 { 18 - 'shaunsingh/nord.nvim', 18 + "shaunsingh/nord.nvim", 19 19 priority = 1000, 20 20 init = function() 21 21 vim.g.nord_borders = true -- border between splits 22 22 vim.g.nord_italic = false 23 23 end, 24 24 config = function() 25 - vim.cmd.colorscheme('nord') 25 + vim.cmd.colorscheme("nord") 26 26 end, 27 27 }, 28 28 29 29 { 30 - 'folke/which-key.nvim', 30 + "folke/which-key.nvim", 31 31 opts = { 32 32 window = { 33 - border = 'single', 33 + border = "single", 34 34 }, 35 35 }, 36 36 }, 37 37 38 38 { 39 - 'nvim-lualine/lualine.nvim', 40 - dependencies = { 'nvim-tree/nvim-web-devicons' }, 39 + "nvim-lualine/lualine.nvim", 40 + dependencies = { "nvim-tree/nvim-web-devicons" }, 41 41 opts = { 42 42 options = { 43 - theme = 'nord', 44 - component_separators = '|', 45 - section_separators = { left = '', right = '' }, 43 + theme = "nord", 44 + component_separators = "|", 45 + section_separators = { left = "", right = "" }, 46 46 }, 47 47 sections = { 48 48 lualine_a = { 49 49 { 50 50 function() 51 - return ' ' 51 + return " " 52 52 end, 53 53 padding_left = 1, 54 - color = 'Normal', 54 + color = "Normal", 55 55 }, 56 - { 'mode', separator = { left = '' } }, 56 + { "mode", separator = { left = "" } }, 57 57 }, 58 58 lualine_b = { 59 - { 'filename' }, 60 - { 'branch' }, 61 - { 'diff' }, 62 - { 'diagnostics' }, 59 + { "filename" }, 60 + { "branch" }, 61 + { "diff" }, 62 + { "diagnostics" }, 63 63 }, 64 64 lualine_c = {}, 65 65 lualine_x = {}, 66 66 lualine_y = { 67 - { 'filetype' }, 68 - { 'fileformat', icons_enabled = false }, 69 - { 'progress' }, 67 + { "filetype" }, 68 + { "fileformat", icons_enabled = false }, 69 + { "progress" }, 70 70 }, 71 71 lualine_z = { 72 - { 'location', separator = { right = '' } }, 72 + { "location", separator = { right = "" } }, 73 73 { 74 74 function() 75 - return ' ' 75 + return " " 76 76 end, 77 77 padding_right = 1, 78 - color = 'Normal', 78 + color = "Normal", 79 79 }, 80 80 }, 81 81 }, ··· 83 83 }, 84 84 85 85 { 86 - 'nvim-treesitter/nvim-treesitter', 87 - build = ':TSUpdate', 86 + "nvim-treesitter/nvim-treesitter", 87 + build = ":TSUpdate", 88 88 dependencies = { 89 - 'nvim-treesitter/nvim-treesitter-textobjects', 90 - 'RRethy/nvim-treesitter-endwise', 91 - 'windwp/nvim-ts-autotag', 89 + "nvim-treesitter/nvim-treesitter-textobjects", 90 + "RRethy/nvim-treesitter-endwise", 91 + "windwp/nvim-ts-autotag", 92 92 }, 93 93 config = function() 94 94 ---@diagnostic disable-next-line: missing-fields 95 - require('nvim-treesitter.configs').setup { 95 + require("nvim-treesitter.configs").setup({ 96 96 ensure_installed = { 97 - 'lua', 'vim', 'vimdoc', 'bash', 'fish', 'diff', 'json', 'jsonc', 98 - 'markdown', 'markdown_inline', 'regex', 97 + "lua", 98 + "vim", 99 + "vimdoc", 100 + "bash", 101 + "fish", 102 + "diff", 103 + "json", 104 + "jsonc", 105 + "markdown", 106 + "markdown_inline", 107 + "regex", 99 108 }, 100 109 auto_install = true, 101 110 highlight = { 102 111 enable = true, 103 - disable = { 'gitcommit' }, 112 + disable = { "gitcommit" }, 104 113 }, 105 114 indent = { 106 115 enable = true, ··· 110 119 enable = true, 111 120 lookahead = true, 112 121 keymaps = { 113 - ['af'] = '@function.outer', 114 - ['if'] = '@function.inner', 115 - ['ac'] = '@comment.outer', 122 + ["af"] = "@function.outer", 123 + ["if"] = "@function.inner", 124 + ["ac"] = "@comment.outer", 116 125 }, 117 126 selection_modes = { 118 - ['@function.outer'] = 'V', 119 - ['@function.inner'] = 'V', 127 + ["@function.outer"] = "V", 128 + ["@function.inner"] = "V", 120 129 }, 121 130 }, 122 131 move = { 123 132 enable = true, 124 133 set_jumps = true, 125 134 goto_next_start = { 126 - [']m'] = '@function.outer', 135 + ["]m"] = "@function.outer", 127 136 }, 128 137 }, 129 138 }, ··· 133 142 autotag = { 134 143 enable = true, 135 144 }, 136 - } 145 + }) 137 146 end, 138 147 }, 139 148 140 149 { 141 - 'wansmer/treesj', 150 + "wansmer/treesj", 142 151 keys = { 143 152 { 144 - '<leader>s', 153 + "<leader>s", 145 154 function() 146 - require('treesj').toggle({ split = { recursive = true } }) 155 + require("treesj").toggle({ split = { recursive = true } }) 147 156 end, 148 - desc = 'Toggle node (split/join)', 157 + desc = "Toggle node (split/join)", 149 158 }, 150 159 }, 151 160 dependencies = { 152 - 'nvim-treesitter/nvim-treesitter', 161 + "nvim-treesitter/nvim-treesitter", 153 162 }, 154 163 opts = { 155 164 use_default_keymaps = false, ··· 158 167 }, 159 168 160 169 { 161 - 'vonheikemen/lsp-zero.nvim', 162 - branch = 'dev-v3', 170 + "vonheikemen/lsp-zero.nvim", 171 + branch = "dev-v3", 163 172 dependencies = { 164 - 'williamboman/mason.nvim', 165 - 'williamboman/mason-lspconfig.nvim', 166 - 'neovim/nvim-lspconfig', 167 - 'hrsh7th/nvim-cmp', 168 - 'hrsh7th/cmp-nvim-lsp', 169 - 'l3mon4d3/luasnip', 170 - 'b0o/schemastore.nvim', 173 + "williamboman/mason.nvim", 174 + "williamboman/mason-lspconfig.nvim", 175 + "neovim/nvim-lspconfig", 176 + "hrsh7th/nvim-cmp", 177 + "hrsh7th/cmp-nvim-lsp", 178 + "l3mon4d3/luasnip", 179 + "b0o/schemastore.nvim", 171 180 }, 172 181 config = function() 173 - local lsp_zero = require('lsp-zero') 174 - local lspconfig = require('lspconfig') 175 - local schemastore = require('schemastore') 182 + local lsp_zero = require("lsp-zero") 183 + local lspconfig = require("lspconfig") 184 + local schemastore = require("schemastore") 176 185 177 186 lsp_zero.on_attach(function(client, bufnr) 178 187 -- see :help lsp-zero-keybindings ··· 183 192 }) 184 193 end) 185 194 186 - require('mason').setup({}) 187 - require('mason-lspconfig').setup({ 188 - ensure_installed = { 'lua_ls', 'clangd', 'jsonls', 'yamlls', 189 - 'jsonnet_ls' }, 195 + require("mason").setup({}) 196 + require("mason-lspconfig").setup({ 197 + ensure_installed = { "lua_ls", "clangd", "jsonls", "yamlls", "jsonnet_ls" }, 190 198 handlers = { 191 199 lsp_zero.default_setup, 192 200 lua_ls = function() ··· 208 216 yaml = { 209 217 schemaStore = { 210 218 enable = false, 211 - url = '', 219 + url = "", 212 220 }, 213 221 schemas = schemastore.yaml.schemas, 214 222 }, ··· 230 238 ft("fish"):fmt("fish_indent") 231 239 232 240 require("guard").setup({ 233 - fmt_on_save = false, 241 + fmt_on_save = true, 234 242 lsp_as_default_formatter = false, 235 243 }) 236 244 end, 237 245 }, 238 246 239 247 { 240 - 'folke/neodev.nvim', 248 + "folke/neodev.nvim", 241 249 opts = { 242 250 override = function(root_dir, library) 243 251 library.enabled = true ··· 247 255 }, 248 256 249 257 { 250 - 'folke/trouble.nvim', 251 - dependencies = 'nvim-tree/nvim-web-devicons', 258 + "folke/trouble.nvim", 259 + dependencies = "nvim-tree/nvim-web-devicons", 252 260 keys = { 253 - { '<leader>t', '<Cmd>TroubleToggle<CR>' }, 261 + { "<leader>t", "<Cmd>TroubleToggle<CR>" }, 254 262 }, 255 263 config = true, 256 264 }, 257 265 258 266 { 259 - 'nvim-telescope/telescope.nvim', 260 - version = '*', 267 + "nvim-telescope/telescope.nvim", 268 + version = "*", 261 269 dependencies = { 262 - 'nvim-lua/plenary.nvim', 270 + "nvim-lua/plenary.nvim", 263 271 }, 264 272 keys = { 265 - { '<leader>ff', '<cmd>Telescope find_files<cr>', desc = 'Telescope find files' }, 266 - { '<leader>fb', '<cmd>Telescope buffers<cr>', desc = 'Telescope buffers' }, 267 - { '<leader>fg', '<cmd>Telescope live_grep<cr>', desc = 'Telescope grep' }, 268 - { '<leader>fh', '<cmd>Telescope help_tags<cr>', desc = 'Telescope help' }, 269 - { '<leader>fm', '<cmd>Telescope man_pages<cr>', desc = 'Telescope man' }, 273 + { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Telescope find files" }, 274 + { "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Telescope buffers" }, 275 + { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Telescope grep" }, 276 + { "<leader>fh", "<cmd>Telescope help_tags<cr>", desc = "Telescope help" }, 277 + { "<leader>fm", "<cmd>Telescope man_pages<cr>", desc = "Telescope man" }, 270 278 --{ 'gd', '<cmd>Telescope lsp_definitions<cr>', desc = 'Telescope definitions' }, 271 279 --{ 'gi', '<cmd>Telescope implementations<cr>', desc = 'Telescope implementations' }, 272 280 --{ '<leader>dl', '<cmd>Telescope diagnostics<cr>', desc = 'Telescope diagnostics' }, ··· 274 282 }, 275 283 276 284 { 277 - 'folke/noice.nvim', 285 + "folke/noice.nvim", 278 286 dependencies = { 279 - 'muniftanjim/nui.nvim', 280 - 'rcarriga/nvim-notify', 287 + "muniftanjim/nui.nvim", 288 + "rcarriga/nvim-notify", 281 289 }, 282 290 opts = { 283 291 lsp = { 284 292 override = { 285 - ['vim.lsp.util.convert_input_to_markdown_lines'] = true, 286 - ['vim.lsp.util.stylize_markdown'] = true, 287 - ['cmp.entry.get_documentation'] = true, 293 + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, 294 + ["vim.lsp.util.stylize_markdown"] = true, 295 + ["cmp.entry.get_documentation"] = true, 288 296 }, 289 297 }, 290 298 presets = { ··· 296 304 }, 297 305 298 306 { 299 - 'stevearc/dressing.nvim', 307 + "stevearc/dressing.nvim", 300 308 }, 301 309 302 310 { 303 - 'andweeb/presence.nvim', 311 + "andweeb/presence.nvim", 304 312 enabled = false, 305 313 config = function() 306 - require('presence'):setup({ 314 + require("presence"):setup({ 307 315 show_time = false, 308 - neovim_image_text = 'Neovim', 309 - log_level = 'debug', 316 + neovim_image_text = "Neovim", 317 + log_level = "debug", 310 318 }) 311 319 end, 312 320 }, 313 321 314 322 { 315 - 'stevearc/qf_helper.nvim', 323 + "stevearc/qf_helper.nvim", 316 324 keys = { 317 - { '<C-n>', '<Cmd>QNext<CR>' }, 318 - { '<C-p>', '<Cmd>QPrev<CR>' }, 319 - { '<leader>q', '<Cmd>QFToggle!<CR>' }, 320 - { '<leader>l', '<Cmd>LLToggle!<CR>' }, 325 + { "<C-n>", "<Cmd>QNext<CR>" }, 326 + { "<C-p>", "<Cmd>QPrev<CR>" }, 327 + { "<leader>q", "<Cmd>QFToggle!<CR>" }, 328 + { "<leader>l", "<Cmd>LLToggle!<CR>" }, 321 329 }, 322 330 config = true, 323 331 }, 324 332 325 333 { 326 - 'yorickpeterse/nvim-pqf', 334 + "yorickpeterse/nvim-pqf", 327 335 config = true, 328 336 }, 329 337 330 338 { 331 - 'petertriho/nvim-scrollbar', 339 + "petertriho/nvim-scrollbar", 332 340 config = function() 333 - require('scrollbar').setup { 341 + require("scrollbar").setup({ 334 342 handle = { 335 - color = require('nord.colors').nord2_gui, 343 + color = require("nord.colors").nord2_gui, 336 344 }, 337 345 handlers = { 338 346 search = true, 339 347 }, 340 - } 348 + }) 341 349 end, 342 350 }, 343 351 344 352 { 345 - 'kylechui/nvim-surround', 353 + "kylechui/nvim-surround", 346 354 config = true, 347 355 }, 348 356 349 357 { 350 - 'numtostr/comment.nvim', 358 + "numtostr/comment.nvim", 351 359 config = true, 352 360 }, 353 361 354 362 { 355 - 'zegervdv/nrpattern.nvim', 363 + "zegervdv/nrpattern.nvim", 356 364 config = function() -- for some reason `config = true` isn't enough here 357 - require('nrpattern').setup() 365 + require("nrpattern").setup() 358 366 end, 359 367 }, 360 368 361 369 { 362 - 'j-hui/fidget.nvim', 363 - tag = 'legacy', 370 + "j-hui/fidget.nvim", 371 + tag = "legacy", 364 372 config = true, 365 373 }, 366 374 367 375 { 368 - 'lewis6991/gitsigns.nvim', 376 + "lewis6991/gitsigns.nvim", 369 377 config = true, 370 378 }, 371 379 372 380 { 373 - 'karb94/neoscroll.nvim', 381 + "karb94/neoscroll.nvim", 374 382 opts = { 375 - easing_function = 'quadratic', 383 + easing_function = "quadratic", 376 384 }, 377 385 }, 378 386 379 387 { 380 - 'JopjeKnopje/42header_codam', 388 + "JopjeKnopje/42header_codam", 381 389 }, 382 390 383 391 { 384 - 'altermo/ultimate-autopair.nvim', 385 - event = { 'InsertEnter', 'CmdlineEnter' }, 392 + "altermo/ultimate-autopair.nvim", 393 + event = { "InsertEnter", "CmdlineEnter" }, 386 394 config = true, 387 395 }, 388 396 389 397 { 390 - 'abecodes/tabout.nvim', 398 + "abecodes/tabout.nvim", 391 399 config = true, 392 400 }, 393 401 })