This commit is contained in:
Saeed Afzal
2024-01-08 21:16:52 +00:00
parent c094afe79c
commit bfcdea9887
9 changed files with 87 additions and 100 deletions

View File

@@ -1,25 +0,0 @@
return {
"NvChad/nvim-colorizer.lua",
event = "BufEnter",
opts = {
filetypes = {
"*";
"!markdown";
"!neorg";
},
buftypes = {
"*",
"!prompt",
"!popup"
},
user_default_options = {
RRGGBBAA = true,
AARRGGBB = true,
rgb_fn = true,
hsl_fn = true,
css = true,
css_fn = true,
sass = { enable = true }
}
}
}

View File

@@ -7,28 +7,12 @@ return {
-- NOTE: Plugins
{
"nvim-pack/nvim-spectre",
dependencies = "nvim-lua/plenary.nvim"
},
{
"folke/todo-comments.nvim",
event = "BufRead",
dependencies = "nvim-lua/plenary.nvim",
"lukas-reineke/indent-blankline.nvim",
event = "BufEnter",
main = "ibl",
config = true
},
{
"nmac427/guess-indent.nvim",
lazy = false,
config = true
},
{
"f-person/git-blame.nvim",
cmd = "GitBlameToggle"
},
{
"lewis6991/gitsigns.nvim",
event = "BufEnter",
@@ -36,16 +20,12 @@ return {
},
{
"sindrets/diffview.nvim",
dependencies = "nvim-lua/plenary.nvim",
cmd = "DiffviewOpen",
config = true
},
{
"lukas-reineke/indent-blankline.nvim",
event = "BufEnter",
main = "ibl",
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
"nvim-telescope/telescope.nvim"
},
config = true
},
@@ -61,25 +41,12 @@ return {
dependencies = "neovim/nvim-lspconfig",
config = true
},
{
"simrat39/symbols-outline.nvim",
cmd = "SymbolsOutline",
config = true
},
{
"folke/trouble.nvim",
dependencies = "nvim-tree/nvim-web-devicons",
cmd = "TroubleToggle",
config = true
},
{
"numToStr/Comment.nvim",
lazy = false,
config = true
},
"RRethy/vim-illuminate",
-- NOTE: Flutter
{

20
lua/plugins/neorg.lua Normal file
View File

@@ -0,0 +1,20 @@
return {
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",
dependencies = "nvim-lua/plenary.nvim",
opts = {
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/Sync/Neorg",
work = "~/Sync/Work"
},
default_workspace = "notes"
}
}
}
}
}

View File

@@ -12,9 +12,15 @@ return {
local telescope = require("telescope")
telescope.setup {
defaults = {
layout_config = {
vertical = { width = 0.5 }
}
},
pickers = {
fd = { theme = "dropdown" },
current_buffer_fuzzy_find = { theme = "dropdown" }
fd = { layout_strategy = "vertical" },
live_grep = { layout_strategy = "vertical" },
current_buffer_fuzzy_find = { layout_strategy = "vertical" }
}
}

View File

@@ -0,0 +1,11 @@
return {
"akinsho/toggleterm.nvim",
version = "*",
opts = {
open_mapping = [[<c-t>]],
direction = "float",
float_opts = {
border = "curved"
}
}
}

View File

@@ -31,20 +31,19 @@ local function config()
r = { "<cmd>lua vim.lsp.buf.rename()<CR>", "Rename" }
},
-- Spectre
r = {
name = "Spectre",
r = { "<cmd>lua require('spectre').open_file_search({select_word=true})<CR>", "Search & Replace" },
R = { "<cmd>lua require('spectre').toggle()<CR>", "Replace All" }
},
-- Buffers
b = { "<cmd>lua require('buffer_manager.ui').toggle_quick_menu()<CR>", "Buffer Manager" },
-- Misc
h = { "<cmd>noh<CR>", "No highlight" },
s = { "<cmd>SymbolsOutline<CR>", "Symbols outline" },
t = { "<cmd>TroubleToggle<CR>", "Toggle trouble" }
-- Terminal
t = {
t = { "<cmd>ToggleTerm size=40 direction=horizontal<CR>", "Horizontal Terminal" }
},
T = { "<cmd>TroubleToggle<CR>", "Toggle trouble" }
},
g = {
@@ -56,7 +55,7 @@ local function config()
["<C-f>"] = { "<cmd>Telescope current_buffer_fuzzy_find<CR>", "Find in file" },
-- Neotree
["<C-n>"] = { "<cmd>Neotree<CR>", "Neotree" },
["<C-n>"] = { "<cmd>Neotree reveal_force_cwd<CR>", "Neotree" },
-- Misc
K = { "<cmd>lua vim.lsp.buf.hover()<CR>", "Hover" }