diff --git a/nvim/init.vim b/nvim/init.vim index fe0edc6..66037df 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -82,6 +82,7 @@ if has('nvim') " Plug 'TimUntersberger/neogit' Plug 'akinsho/bufferline.nvim' + Plug 'andweeb/presence.nvim' Plug 'f-person/git-blame.nvim' Plug 'folke/which-key.nvim' Plug 'glepnir/dashboard-nvim' @@ -137,6 +138,7 @@ if has('nvim') source ~/.config/nvim/keybindings.vim source ~/.config/nvim/plugin-confs/bufferline.lua + source ~/.config/nvim/plugin-confs/presence.lua source ~/.config/nvim/plugin-confs/dashboard-art.vim source ~/.config/nvim/plugin-confs/dashboard-nvim.lua source ~/.config/nvim/plugin-confs/git-blame.lua diff --git a/nvim/keybindings.vim b/nvim/keybindings.vim index 5e10034..a02da9a 100644 --- a/nvim/keybindings.vim +++ b/nvim/keybindings.vim @@ -44,6 +44,7 @@ nmap bp :bprev nmap ca :lua vim.lsp.buf.code_action() nmap cd :LspDiagnostics +nmap cl :lua vim.lsp.diagnostic.show_line_diagnostics() nnoremap cn :DashboardNewFile nmap ff :CocCommand fzf-preview.ProjectFiles diff --git a/nvim/plugin-confs/presence.lua b/nvim/plugin-confs/presence.lua new file mode 100644 index 0000000..a801714 --- /dev/null +++ b/nvim/plugin-confs/presence.lua @@ -0,0 +1,22 @@ +require("presence"):setup({ + -- General options + auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) + neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image + main_image = "neovim", -- Main image display (either "neovim" or "file") + -- client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) + log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") + debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) + enable_line_number = false, -- Displays the current line number instead of the current project + blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "