diff --git a/after/plugin/nvimcord.lua b/after/plugin/nvimcord.lua new file mode 100644 index 0000000..e4f5d0d --- /dev/null +++ b/after/plugin/nvimcord.lua @@ -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, +} diff --git a/lua/taken/packer.lua b/lua/taken/packer.lua index be2d2a5..873db25 100644 --- a/lua/taken/packer.lua +++ b/lua/taken/packer.lua @@ -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 { @@ -55,7 +55,7 @@ return require('packer').startup(function(use) requires = { 'nvim-tree/nvim-web-devicons', opt = true } } 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({ "kylechui/nvim-surround", @@ -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) diff --git a/lua/taken/remaps.lua b/lua/taken/remaps.lua index e989767..8111eeb 100644 --- a/lua/taken/remaps.lua +++ b/lua/taken/remaps.lua @@ -41,4 +41,7 @@ vim.keymap.set("n", "n", ":NvimTreeToggle ") vim.keymap.set("n", "e", ":NvimTreeFocus ") -- trouble -vim.keymap.set("n", "tt", "TroubleToggle", { silent = true }) +vim.keymap.set("n", "tt", "TroubleToggle ", { silent = true }) + +-- markdown preview +vim.keymap.set("n", "bm", "MarkdownPreviewToggle ", { silent = true })