nvim: add some plugins such as otify

This commit is contained in:
Nydragon 2024-05-20 10:09:51 +09:00
parent e9c3793331
commit 34db23916b
3 changed files with 32 additions and 3 deletions

View file

@ -74,6 +74,7 @@ vim.cmd("set signcolumn=yes")
vim.cmd("filetype plugin on") vim.cmd("filetype plugin on")
vim.g.mapleader = " " vim.g.mapleader = " "
vim.o.termguicolors = 1
vim.api.nvim_set_option("clipboard", "unnamedplus") vim.api.nvim_set_option("clipboard", "unnamedplus")

View file

@ -27,4 +27,4 @@ local function open_nvim_tree(data)
}) })
end end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree }) --vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })

View file

@ -96,7 +96,15 @@ require("lazy").setup({
name = "catppuccin", name = "catppuccin",
priority = 1000, priority = 1000,
}, },
{ "lukas-reineke/virt-column.nvim", opts = { virtcolumn = "120" } }, -- thin bar indicating an arbitray character limit {
"lukas-reineke/virt-column.nvim",
opts = {
virtcolumn = "120",
exclude = {
buftypes = {},
},
},
}, -- thin bar indicating an arbitray character limit
{ {
"nvim-telescope/telescope.nvim", -- fuzzy file finder "nvim-telescope/telescope.nvim", -- fuzzy file finder
@ -119,13 +127,33 @@ require("lazy").setup({
}, },
{ {
"mhartington/formatter.nvim", "mhartington/formatter.nvim",
--opts = require("formatter-config").build(),
config = function() config = function()
local opts = require("formatter-config").build() local opts = require("formatter-config").build()
require("formatter").setup(opts) require("formatter").setup(opts)
end
},
{
"rcarriga/nvim-notify",
opts = {
render = "wrapped-compact",
max_width = function()
return math.floor(vim.o.columns * 0.5)
end,
},
config = function(_, opts)
require("notify").setup(opts)
vim.notify = require("notify")
end, end,
}, },
{
"stevearc/dressing.nvim",
},
{
"nvimdev/dashboard-nvim",
event = "VimEnter",
dependencies = { { "nvim-tree/nvim-web-devicons" } },
},
{ {
"sudormrfbin/cheatsheet.nvim", "sudormrfbin/cheatsheet.nvim",
dependencies = { dependencies = {