dots - my configuration files
plugins.lua (3868B) - raw
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ -- lsp "neovim/nvim-lspconfig", "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", { "hrsh7th/nvim-cmp", dependencies = "hrsh7th/cmp-nvim-lsp" }, { "hrsh7th/cmp-path", dependencies = "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-buffer", dependencies = "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-nvim-lsp-signature-help", dependencies = "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-cmdline", dependencies = "hrsh7th/nvim-cmp" }, { "L3MON4D3/LuaSnip", dependencies = "saadparwaiz1/cmp_luasnip" }, "andersevenrud/cmp-tmux", "microsoft/python-type-stubs", "rafamadriz/friendly-snippets", "SmiteshP/nvim-navic", -- db "tpope/vim-dadbod", "kristijanhusak/vim-dadbod-ui", { "kristijanhusak/vim-dadbod-completion", init = function() vim.g.db_ui_use_nerd_fonts = 1 end, }, -- ai 'Exafunction/codeium.vim', { "rj1/ai.nvim", dev = true }, -- syntax / editing { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" }, "windwp/nvim-ts-autotag", "windwp/nvim-autopairs", "mhartington/formatter.nvim", "Vimjas/vim-python-pep8-indent", "jidn/vim-dbml", "b3nj5m1n/kommentary", "JoosepAlviste/nvim-ts-context-commentstring", "kylechui/nvim-surround", "leafOfTree/vim-matchtag", "folke/todo-comments.nvim", "junegunn/vim-easy-align", "mbbill/undotree", "jwalton512/vim-blade", "NMAC427/guess-indent.nvim", -- git { "lewis6991/gitsigns.nvim", dependencies = "nvim-lua/plenary.nvim" }, "tpope/vim-fugitive", "tpope/vim-rhubarb", "rj1/yadm.nvim", -- visual "olimorris/onedarkpro.nvim", { "nvim-lualine/lualine.nvim", dependencies = "kyazdani42/nvim-web-devicons" }, { "noib3/nvim-cokeline", dependencies = "kyazdani42/nvim-web-devicons" }, { "nvim-tree/nvim-tree.lua", dependencies = "kyazdani42/nvim-web-devicons" }, "karb94/neoscroll.nvim", { "iamcco/markdown-preview.nvim", build = "cd app && npm install" }, "uga-rosa/ccc.nvim", "tversteeg/registers.nvim", "jinh0/eyeliner.nvim", "folke/which-key.nvim", -- "lukas-reineke/indent-blankline.nvim", "folke/trouble.nvim", -- { "jakewvincent/mkdnflow.nvim", rocks = "luautf8" }, -- telescope { "nvim-telescope/telescope-fzf-native.nvim", build = "make", dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, }, -- session management { "jedrzejboczar/possession.nvim", dependencies = "nvim-lua/plenary.nvim" }, -- tmux integration "preservim/vimux", -- Rename/Delete/Chmod/etc "tpope/vim-eunuch", }, { dev = { path = "~/play" } }) -- kommentary require("kommentary.config").configure_language("php", { single_line_comment_string = "//", multi_line_comment_strings = { "/*", "*/" }, }) -- nvim-surround require("nvim-surround").setup({}) -- nvim-tree require("nvim-tree").setup({ on_attach = function(bufnr) local api = require("nvim-tree.api") api.config.mappings.default_on_attach(bufnr) vim.keymap.set("n", "s", "", { buffer = bufnr }) vim.keymap.del("n", "s", { buffer = bufnr }) end, view = { relativenumber = true, side = "right", width = 70, }, }) -- smooth scrolling require("neoscroll").setup({ hide_cursor = false, mappings = { "<C-u>", "<C-d>", }, }) -- todo highlighter require("todo-comments").setup({}) -- registers preview popup require("registers").setup({}) -- hotreload flutter on save vim.api.nvim_create_autocmd("bufwritepost", { pattern = "*.dart", command = "silent execute '!kill -SIGUSR1 $(pgrep -f \"[f]lutter_tool.*run\")'", }) -- eyeliner (quick-scope lua replacement) require("eyeliner").setup({ highlight_on_key = true, }) require("guess-indent").setup({}) |