diff options
author | listout <listout@protonmail.com> | 2022-08-25 01:14:33 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-09-01 16:26:42 +0530 |
commit | dd31843246ccdf9783f1b54d79b5e1ee22596399 (patch) | |
tree | 9b0f42dbe44fd0dd79d8de963092daf04671e6d9 /lua/plugins/plugins.lua | |
parent | f07108dca88d47eeae67587011994c6179a7d035 (diff) |
[wip] better lua config for nvim
Signed-off-by: listout <listout@protonmail.com>
Diffstat (limited to 'lua/plugins/plugins.lua')
-rw-r--r-- | lua/plugins/plugins.lua | 72 |
1 files changed, 54 insertions, 18 deletions
diff --git a/lua/plugins/plugins.lua b/lua/plugins/plugins.lua index 5b9bc6b..185514d 100644 --- a/lua/plugins/plugins.lua +++ b/lua/plugins/plugins.lua @@ -1,38 +1,74 @@ -- This file can be loaded by calling `lua require('plugins')` from your init.vim -- Only required if you have packer configured as `opt` -vim.cmd [[packadd packer.nvim]] - -return require('packer').startup(function(use) +local use = require('packer').use +return require('packer').startup(function() -- Packer can manage itself use 'wbthomason/packer.nvim' -- Nord color scheme - use 'folke/tokyonight.nvim' - - -- Completion - use {'neoclide/coc.nvim', branch = 'release'} + use 'arzg/vim-substrata' + -- Completion and language server + use {'neovim/nvim-lspconfig'} -- Collection of configurations for built-in LSP client + use {'hrsh7th/cmp-nvim-lsp'} -- LSP source for nvim-cmp + use {'hrsh7th/cmp-buffer'} -- LSP source nvim-cmp + use {'hrsh7th/cmp-path'} -- LSP source for nvim-cmp + use {'hrsh7th/cmp-cmdline'} -- LSP source nvim-cmp + use {'hrsh7th/cmp-nvim-lsp-signature-help'} + use {'hrsh7th/nvim-cmp'} -- Autocompletion plugin + use {'hrsh7th/cmp-nvim-lua'} + use {'saadparwaiz1/cmp_luasnip'} -- Snippets source for nvim-cmp + use {'L3MON4D3/LuaSnip'} -- Snippets plugin + -- Show color under hex codes use {'ap/vim-css-color'} - use {'jiangmiao/auto-pairs'} - use {'preservim/nerdcommenter'} - use { 'dhruvasagar/vim-table-mode', ft = {'markdown', 'markdown.pandoc'} } + -- Productivity plugins + use {'jiangmiao/auto-pairs'} -- Auto add matching brackets + use {'preservim/nerdcommenter'} -- Easy commenting + use {'dhruvasagar/vim-table-mode', ft = {'markdown', 'markdown.pandoc'} } -- Markdown easy tables + use {'junegunn/fzf', run = ":call fzf#install()" } + use {'junegunn/fzf.vim' } -- Fuzzy file finding + use {'tpope/vim-surround'} -- Easy surrounding with brackets, quotes ... + use {'junegunn/vim-easy-align'} -- Easy aling with space, = ... + + -- Writing + use {'junegunn/goyo.vim', ft = {'markdown', 'markdown.pandoc'}} + use {'junegunn/limelight.vim', ft = {'markdown', 'markdown.pandoc'}} use { 'vim-pandoc/vim-pandoc-syntax', ft = { 'markdown', 'markdown.pandoc' } } use { 'lervag/vimtex', ft = { 'tex' } } - use { 'junegunn/fzf', run = ":call fzf#install()" } - use { 'junegunn/fzf.vim' } + -- Git intigration + use { 'tpope/vim-fugitive', ft = {'cpp', 'c'} } + + -- Treesitter integration + use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } - use { 'honza/vim-snippets' } - use { 'SirVer/ultisnips' } + -- Better per project settings + use { 'windwp/nvim-projectconfig' } + --[[ + [use { + [ "klen/nvim-config-local", + [ config = function() + [ require('config-local').setup { + [ -- Default configuration (optional) + [ config_files = { ".vimrc.lua", ".vimrc" }, -- Config file patterns to load (lua supported) + [ hashfile = vim.fn.stdpath("data") .. "/config-local", -- Where the plugin keeps files data + [ autocommands_create = true, -- Create autocommands (VimEnter, DirectoryChanged) + [ commands_create = true, -- Create commands (ConfigSource, ConfigEdit, ConfigTrust, ConfigIgnore) + [ silent = false, -- Disable plugin messages (Config loaded/ignored) + [ lookup_parents = true, -- Lookup config files in parent directories + [ } + [ end + [} + ]] - use {'tpope/vim-surround'} - use {'junegunn/vim-easy-align'} + --[[ Most probably not needed anymore + [use { 'honza/vim-snippets' } + [use { 'SirVer/ultisnips' } + ]] - use { 'tpope/vim-fugitive', ft = {'cpp', 'c'} } - use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } end) |