Adding new plugins and remaps
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
18
after/plugin/nvimcord.lua
Normal file
18
after/plugin/nvimcord.lua
Normal 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,
|
||||||
|
}
|
||||||
@@ -26,19 +26,19 @@ return require('packer').startup(function(use)
|
|||||||
'VonHeikemen/lsp-zero.nvim',
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
branch = 'v2.x',
|
branch = 'v2.x',
|
||||||
requires = {
|
requires = {
|
||||||
{ 'neovim/nvim-lspconfig' }, -- Required
|
{ 'neovim/nvim-lspconfig' },
|
||||||
{ -- Optional
|
{
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
run = function()
|
run = function()
|
||||||
pcall(vim.cmd, 'MasonUpdate')
|
pcall(vim.cmd, 'MasonUpdate')
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
{ 'williamboman/mason-lspconfig.nvim' },
|
||||||
|
|
||||||
-- Autocompletion
|
|
||||||
{ 'hrsh7th/nvim-cmp' }, -- Required
|
{ 'hrsh7th/nvim-cmp' },
|
||||||
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||||
{ 'L3MON4D3/LuaSnip' }, -- Required
|
{ 'L3MON4D3/LuaSnip' },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
@@ -55,7 +55,7 @@ return require('packer').startup(function(use)
|
|||||||
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
||||||
}
|
}
|
||||||
use 'rcarriga/nvim-notify'
|
use 'rcarriga/nvim-notify'
|
||||||
use {'akinsho/bufferline.nvim', tag = "*", requires = 'nvim-tree/nvim-web-devicons'}
|
use { 'akinsho/bufferline.nvim', tag = "*", requires = 'nvim-tree/nvim-web-devicons' }
|
||||||
use 'andweeb/presence.nvim'
|
use 'andweeb/presence.nvim'
|
||||||
use({
|
use({
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
@@ -69,4 +69,9 @@ return require('packer').startup(function(use)
|
|||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
requires = { "nvim-tree/nvim-web-devicons" },
|
requires = { "nvim-tree/nvim-web-devicons" },
|
||||||
}
|
}
|
||||||
|
use({
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
run = function() vim.fn["mkdp#util#install"]() end,
|
||||||
|
})
|
||||||
|
use 'ObserverOfTime/nvimcord'
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -41,4 +41,7 @@ vim.keymap.set("n", "<leader>n", ":NvimTreeToggle <CR>")
|
|||||||
vim.keymap.set("n", "<leader>e", ":NvimTreeFocus <CR>")
|
vim.keymap.set("n", "<leader>e", ":NvimTreeFocus <CR>")
|
||||||
|
|
||||||
-- trouble
|
-- 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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user