Adding new plugins and remaps

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-06-17 20:45:39 +02:00
parent 7a42480c98
commit 282a7bf919
3 changed files with 35 additions and 9 deletions

18
after/plugin/nvimcord.lua Normal file
View File

@@ -0,0 +1,18 @@
require('nvimcord').setup {
-- Start the RPC manually (boolean)
autostart = false,
-- Set the client ID (string)
client_id = '954365489214291979',
-- Use the filetype as the large icon (boolean)
large_file_icon = true,
-- Set the log level (enum)
log_level = vim.log.levels.DEBUG,
-- Get the workspace name (function|string)
workspace_name = function()
return --[[cwd basename]]
end,
-- Get the workspace URL (function|string)
workspace_url = function()
return ''
end,
}

View File

@@ -26,19 +26,19 @@ return require('packer').startup(function(use)
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
{ 'neovim/nvim-lspconfig' }, -- Required
{ -- Optional
{ 'neovim/nvim-lspconfig' },
{
'williamboman/mason.nvim',
run = function()
pcall(vim.cmd, 'MasonUpdate')
end,
},
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
{ 'williamboman/mason-lspconfig.nvim' },
-- Autocompletion
{ 'hrsh7th/nvim-cmp' }, -- Required
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
{ 'L3MON4D3/LuaSnip' }, -- Required
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'L3MON4D3/LuaSnip' },
}
}
use {
@@ -69,4 +69,9 @@ return require('packer').startup(function(use)
"folke/trouble.nvim",
requires = { "nvim-tree/nvim-web-devicons" },
}
use({
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
})
use 'ObserverOfTime/nvimcord'
end)

View File

@@ -41,4 +41,7 @@ vim.keymap.set("n", "<leader>n", ":NvimTreeToggle <CR>")
vim.keymap.set("n", "<leader>e", ":NvimTreeFocus <CR>")
-- trouble
vim.keymap.set("n", "<leader>tt", "<cmd>TroubleToggle<cr>", { silent = true })
vim.keymap.set("n", "<leader>tt", "<cmd>TroubleToggle <CR>", { silent = true })
-- markdown preview
vim.keymap.set("n", "<leader>bm", "<cmd>MarkdownPreviewToggle <CR>", { silent = true })