Neovim plugin updates
Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
parent
b79cf55813
commit
703d4fe215
|
@ -1,31 +0,0 @@
|
||||||
require('chatgpt').setup {
|
|
||||||
api_key_cmd = 'gpg --decrypt /home/tiagorg/.gnupg/openai_key.txt.gpg',
|
|
||||||
chat = {
|
|
||||||
keymaps = {
|
|
||||||
close = "<C-c>",
|
|
||||||
yank_last = "<C-y>",
|
|
||||||
yank_last_code = "<C-k>",
|
|
||||||
scroll_up = "<C-u>",
|
|
||||||
scroll_down = "<C-d>",
|
|
||||||
new_session = "<C-n>",
|
|
||||||
cycle_windows = "<C-t>",
|
|
||||||
cycle_modes = "<C-f>",
|
|
||||||
next_message = "<C-j>",
|
|
||||||
prev_message = "<C-k>",
|
|
||||||
select_session = "<Space>",
|
|
||||||
rename_session = "r",
|
|
||||||
delete_session = "d",
|
|
||||||
draft_message = "<C-r>",
|
|
||||||
edit_message = "e",
|
|
||||||
delete_message = "d",
|
|
||||||
toggle_settings = "<C-o>",
|
|
||||||
toggle_sessions = "<C-p>",
|
|
||||||
toggle_help = "<C-h>",
|
|
||||||
toggle_message_role = "<C-r>",
|
|
||||||
toggle_system_role_open = "<C-s>",
|
|
||||||
stop_generating = "<C-x>",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>gpt", "<cmd>ChatGPT<cr>", { noremap = true, silent = true })
|
|
|
@ -15,9 +15,13 @@ require("presence").setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"curriculum-vitae",
|
"curriculum-vitae",
|
||||||
"Nextcloud",
|
"Nextcloud",
|
||||||
|
"NvimTree",
|
||||||
},
|
},
|
||||||
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
|
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
|
||||||
file_assets = { -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
|
file_assets = { -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
|
||||||
|
adoc = { "AsciiDoc", "https://www.tiagorg.pt/assets/logos/adoc.png" },
|
||||||
|
asm = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" },
|
||||||
|
s = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" },
|
||||||
},
|
},
|
||||||
show_time = true, -- Show the timer
|
show_time = true, -- Show the timer
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,8 @@ return require('packer').startup(function(use)
|
||||||
|
|
||||||
-- Themes
|
-- Themes
|
||||||
use "loctvl842/monokai-pro.nvim"
|
use "loctvl842/monokai-pro.nvim"
|
||||||
use {
|
|
||||||
'rose-pine/neovim',
|
|
||||||
as = 'rose-pine',
|
|
||||||
}
|
|
||||||
use 'olimorris/onedarkpro.nvim'
|
use 'olimorris/onedarkpro.nvim'
|
||||||
use 'Mofiqul/vscode.nvim'
|
use 'Mofiqul/vscode.nvim'
|
||||||
use 'Mofiqul/dracula.nvim'
|
|
||||||
|
|
||||||
-- Essentials
|
-- Essentials
|
||||||
use {
|
use {
|
||||||
|
@ -65,6 +60,7 @@ return require('packer').startup(function(use)
|
||||||
use 'romgrk/barbar.nvim'
|
use 'romgrk/barbar.nvim'
|
||||||
use { "akinsho/toggleterm.nvim", tag = '*' }
|
use { "akinsho/toggleterm.nvim", tag = '*' }
|
||||||
use 'nvim-lualine/lualine.nvim'
|
use 'nvim-lualine/lualine.nvim'
|
||||||
|
use 'lervag/vimtex'
|
||||||
|
|
||||||
-- Misc
|
-- Misc
|
||||||
use('wakatime/vim-wakatime')
|
use('wakatime/vim-wakatime')
|
||||||
|
@ -74,13 +70,19 @@ return require('packer').startup(function(use)
|
||||||
use("github/copilot.vim")
|
use("github/copilot.vim")
|
||||||
|
|
||||||
-- trying out
|
-- trying out
|
||||||
use 'lervag/vimtex'
|
|
||||||
use {
|
use {
|
||||||
'jackMort/ChatGPT.nvim',
|
'windwp/nvim-ts-autotag',
|
||||||
requires = {
|
config = function()
|
||||||
"MunifTanjim/nui.nvim",
|
require('nvim-ts-autotag').setup()
|
||||||
"nvim-lua/plenary.nvim",
|
require 'nvim-treesitter.configs'.setup {
|
||||||
"nvim-telescope/telescope.nvim"
|
autotag = {
|
||||||
|
enable = true,
|
||||||
|
enable_rename = true,
|
||||||
|
enable_close = true,
|
||||||
|
enable_close_on_slash = true,
|
||||||
|
filetypes = { "html", "xml", "javascript", "typescript", "svelte", "vue", "javascriptreact", "typescriptreact"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -74,11 +74,6 @@ end
|
||||||
time([[try_loadstring definition]], false)
|
time([[try_loadstring definition]], false)
|
||||||
time([[Defining packer_plugins]], true)
|
time([[Defining packer_plugins]], true)
|
||||||
_G.packer_plugins = {
|
_G.packer_plugins = {
|
||||||
["ChatGPT.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/ChatGPT.nvim",
|
|
||||||
url = "https://github.com/jackMort/ChatGPT.nvim"
|
|
||||||
},
|
|
||||||
["Comment.nvim"] = {
|
["Comment.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/Comment.nvim",
|
||||||
|
@ -134,11 +129,6 @@ _G.packer_plugins = {
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/copilot.vim",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/copilot.vim",
|
||||||
url = "https://github.com/github/copilot.vim"
|
url = "https://github.com/github/copilot.vim"
|
||||||
},
|
},
|
||||||
["dracula.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/dracula.nvim",
|
|
||||||
url = "https://github.com/Mofiqul/dracula.nvim"
|
|
||||||
},
|
|
||||||
["friendly-snippets"] = {
|
["friendly-snippets"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/friendly-snippets",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/friendly-snippets",
|
||||||
|
@ -179,11 +169,6 @@ _G.packer_plugins = {
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim",
|
||||||
url = "https://github.com/loctvl842/monokai-pro.nvim"
|
url = "https://github.com/loctvl842/monokai-pro.nvim"
|
||||||
},
|
},
|
||||||
["nui.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nui.nvim",
|
|
||||||
url = "https://github.com/MunifTanjim/nui.nvim"
|
|
||||||
},
|
|
||||||
["nvim-cmp"] = {
|
["nvim-cmp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||||
|
@ -214,6 +199,12 @@ _G.packer_plugins = {
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context",
|
||||||
url = "https://github.com/nvim-treesitter/nvim-treesitter-context"
|
url = "https://github.com/nvim-treesitter/nvim-treesitter-context"
|
||||||
},
|
},
|
||||||
|
["nvim-ts-autotag"] = {
|
||||||
|
config = { "\27LJ\2\nŸ\2\0\0\5\0\t\0\0166\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\0029\0\2\0005\2\a\0005\3\4\0005\4\5\0=\4\6\3=\3\b\2B\0\2\1K\0\1\0\fautotag\1\0\0\14filetypes\1\t\0\0\thtml\bxml\15javascript\15typescript\vsvelte\bvue\20javascriptreact\20typescriptreact\1\0\4\18enable_rename\2\17enable_close\2\26enable_close_on_slash\2\venable\2\28nvim-treesitter.configs\nsetup\20nvim-ts-autotag\frequire\0" },
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag",
|
||||||
|
url = "https://github.com/windwp/nvim-ts-autotag"
|
||||||
|
},
|
||||||
["nvim-ts-rainbow2"] = {
|
["nvim-ts-rainbow2"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-ts-rainbow2",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-ts-rainbow2",
|
||||||
|
@ -244,11 +235,6 @@ _G.packer_plugins = {
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/presence.nvim",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/presence.nvim",
|
||||||
url = "https://github.com/andweeb/presence.nvim"
|
url = "https://github.com/andweeb/presence.nvim"
|
||||||
},
|
},
|
||||||
["rose-pine"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/rose-pine",
|
|
||||||
url = "https://github.com/rose-pine/neovim"
|
|
||||||
},
|
|
||||||
["tabset.nvim"] = {
|
["tabset.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/tabset.nvim",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/tabset.nvim",
|
||||||
|
@ -302,6 +288,10 @@ _G.packer_plugins = {
|
||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
|
-- Config for: nvim-ts-autotag
|
||||||
|
time([[Config for nvim-ts-autotag]], true)
|
||||||
|
try_loadstring("\27LJ\2\nŸ\2\0\0\5\0\t\0\0166\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\0029\0\2\0005\2\a\0005\3\4\0005\4\5\0=\4\6\3=\3\b\2B\0\2\1K\0\1\0\fautotag\1\0\0\14filetypes\1\t\0\0\thtml\bxml\15javascript\15typescript\vsvelte\bvue\20javascriptreact\20typescriptreact\1\0\4\18enable_rename\2\17enable_close\2\26enable_close_on_slash\2\venable\2\28nvim-treesitter.configs\nsetup\20nvim-ts-autotag\frequire\0", "config", "nvim-ts-autotag")
|
||||||
|
time([[Config for nvim-ts-autotag]], false)
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
_G._packer.inside_compile = false
|
||||||
if _G._packer.needs_bufread == true then
|
if _G._packer.needs_bufread == true then
|
||||||
|
|
Loading…
Reference in New Issue