Updates nvim setup
This commit is contained in:
parent
1c38c7b171
commit
6f069d32e1
13 changed files with 285 additions and 4 deletions
6
.config/nvim/lua/plugins/buffer-closer.lua
Normal file
6
.config/nvim/lua/plugins/buffer-closer.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"psjay/buffer-closer.nvim",
|
||||
config = function()
|
||||
require("buffer-closer").setup()
|
||||
end,
|
||||
}
|
||||
4
.config/nvim/lua/plugins/bullets.lua
Normal file
4
.config/nvim/lua/plugins/bullets.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"bullets-vim/bullets.vim",
|
||||
version = "*"
|
||||
}
|
||||
5
.config/nvim/lua/plugins/git-conflict.lua
Normal file
5
.config/nvim/lua/plugins/git-conflict.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"akinsho/git-conflict.nvim",
|
||||
version = "*",
|
||||
config = true,
|
||||
}
|
||||
24
.config/nvim/lua/plugins/neotree.lua
Normal file
24
.config/nvim/lua/plugins/neotree.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
opts = {
|
||||
window = {
|
||||
width = 40,
|
||||
},
|
||||
filesystem = {
|
||||
window = {
|
||||
mappings = {
|
||||
["<C-l>"] = function(state)
|
||||
local node = state.tree:get_node()
|
||||
|
||||
if vim.fn.fnamemodify(node.path, ":e") == "opto" then
|
||||
vim.cmd.Optolith()
|
||||
return
|
||||
end
|
||||
|
||||
os.execute(string.format('xdg-open "%s" &> /dev/null &', node.path))
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
3
.config/nvim/lua/plugins/nio.lua
Normal file
3
.config/nvim/lua/plugins/nio.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"nvim-neotest/nvim-nio",
|
||||
}
|
||||
21
.config/nvim/lua/plugins/obsidian.lua
Normal file
21
.config/nvim/lua/plugins/obsidian.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*",
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = {
|
||||
-- Required.
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {
|
||||
ui = {
|
||||
enable = true,
|
||||
},
|
||||
workspaces = {
|
||||
{
|
||||
name = "notes",
|
||||
path = ".",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
17
.config/nvim/lua/plugins/render-markdown.lua
Normal file
17
.config/nvim/lua/plugins/render-markdown.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" }, -- if you use the mini.nvim suite
|
||||
opts = {},
|
||||
config = function()
|
||||
require("render-markdown").setup({
|
||||
bullet = {},
|
||||
anti_conceal = {
|
||||
enabled = false,
|
||||
},
|
||||
preset = "obsidian",
|
||||
heading = {
|
||||
position = "inline",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
22
.config/nvim/lua/plugins/style.lua
Normal file
22
.config/nvim/lua/plugins/style.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
-- since this is just an example spec, don't actually load anything here and return an empty spec
|
||||
-- stylua: ignore
|
||||
if false then return {} end
|
||||
|
||||
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
||||
--
|
||||
-- In your plugin files, you can:
|
||||
-- * add extra plugins
|
||||
-- * disable/enabled LazyVim plugins
|
||||
-- * override the configuration of LazyVim plugins
|
||||
return {
|
||||
-- add gruvbox
|
||||
{ "ellisonleao/gruvbox.nvim" },
|
||||
|
||||
-- Configure LazyVim to load gruvbox
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "gruvbox",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue