add custom plugins

This commit is contained in:
Flavio Oliveira 2023-10-29 17:13:33 +00:00
parent 720abbc642
commit 7cdb358917
3 changed files with 44 additions and 19 deletions

View File

@ -227,6 +227,7 @@ require('lazy').setup({
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
--
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
{ import = 'custom.plugins' },
}, {})
@ -271,10 +272,7 @@ vim.o.completeopt = 'menuone,noselect'
-- NOTE: You should make sure your terminal supports this
vim.o.termguicolors = true
-- Enhancement: Visual Padding in Neovim
-- The following settings are used to create a visual "padding" effect around the text arena
vim.wo.number = true -- Enable line numbering for a left padding effect
vim.wo.signcolumn = 'yes' -- Ensure the sign column is always present for consistent padding
vim.wo.scrolloff = 8
-- [[ Basic Keymaps ]]
@ -338,7 +336,8 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim',
'bash' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,

View File

@ -25,8 +25,11 @@
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
"telescope.nvim": { "branch": "0.1.x", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
"vim-fugitive": { "branch": "master", "commit": "cbe9dfa162c178946afa689dd3f42d4ea8bf89c1" },
"vim-go": { "branch": "master", "commit": "1401b576c6ac382529188d3d26cff866139f2f9a" },
"vim-rhubarb": { "branch": "master", "commit": "ee69335de176d9325267b0fd2597a22901d927b1" },
"vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" },
"vim-wakatime": { "branch": "master", "commit": "cda81ada9a3bf8168e2381c33831e0dd7be9b828" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
}

View File

@ -3,9 +3,11 @@
--
-- See the kickstart.nvim README for more information
return {
-- nvim-autopairs configuration
{
"windwp/nvim-autopairs",
-- Optional dependency
dependencies = { 'hrsh7th/nvim-cmp' },
requires = { 'hrsh7th/nvim-cmp' },
config = function()
require("nvim-autopairs").setup {}
-- If you want to automatically add `(` after selecting a function or method
@ -16,4 +18,25 @@ return {
cmp_autopairs.on_confirm_done()
)
end,
},
-- vim-wakatime plugin
{
"wakatime/vim-wakatime"
},
-- todo-comments plugin
{
"folke/todo-comments.nvim",
event = "BufRead",
requires = "nvim-lua/plenary.nvim",
config = function()
require("todo-comments").setup()
end,
},
{
"fatih/vim-go"
},
}