Moved configs to seperate files
This commit is contained in:
parent
fdb565ce87
commit
3b96ad1b57
26 changed files with 578 additions and 229 deletions
5
lua/angryluck/plugins/autopairs.lua
Normal file
5
lua/angryluck/plugins/autopairs.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
opts = {}
|
||||
}
|
||||
21
lua/angryluck/plugins/colorscheme.lua
Normal file
21
lua/angryluck/plugins/colorscheme.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
{
|
||||
-- Best colorscheme
|
||||
"catppuccin/nvim",
|
||||
lazy = false,
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme "catppuccin"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
-- Theme inspired by Atom
|
||||
"navarasu/onedark.nvim",
|
||||
priority = 1000,
|
||||
-- config = function()
|
||||
-- vim.cmd.colorscheme 'onedark'
|
||||
-- end,
|
||||
},
|
||||
}
|
||||
64
lua/angryluck/plugins/harpoon.lua
Normal file
64
lua/angryluck/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
return {
|
||||
-- "ThePrimeagen/harpoon",
|
||||
-- branch = "harpoon2",
|
||||
-- dependencies = { "nvim-lua/plenary.nvim" },
|
||||
-- config = function()
|
||||
-- local harpoon = require "harpoon"
|
||||
--
|
||||
-- -- REQUIRED
|
||||
-- harpoon:setup {}
|
||||
-- -- REQUIRED
|
||||
--
|
||||
-- vim.keymap.set("n", "<leader>a", function()
|
||||
-- harpoon:list():append()
|
||||
-- end)
|
||||
-- -- vim.keymap.set("n", "<C-g>", function()
|
||||
-- -- harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
-- -- end)
|
||||
--
|
||||
-- vim.keymap.set("n", "<C-h>", function()
|
||||
-- harpoon:list():select(1)
|
||||
-- end)
|
||||
-- vim.keymap.set("n", "<C-j>", function()
|
||||
-- harpoon:list():select(2)
|
||||
-- end)
|
||||
-- vim.keymap.set("n", "<C-k>", function()
|
||||
-- harpoon:list():select(3)
|
||||
-- end)
|
||||
-- vim.keymap.set("n", "<C-l>", function()
|
||||
-- harpoon:list():select(4)
|
||||
-- end)
|
||||
--
|
||||
-- -- Toggle previous & next buffers stored within Harpoon list
|
||||
-- vim.keymap.set("n", "<C-S-P>", function()
|
||||
-- harpoon:list():prev()
|
||||
-- end)
|
||||
-- vim.keymap.set("n", "<C-S-N>", function()
|
||||
-- harpoon:list():next()
|
||||
-- end)
|
||||
--
|
||||
-- -- basic telescope configuration
|
||||
-- local conf = require("telescope.config").values
|
||||
-- local function toggle_telescope(harpoon_files)
|
||||
-- local file_paths = {}
|
||||
-- for _, item in ipairs(harpoon_files.items) do
|
||||
-- table.insert(file_paths, item.value)
|
||||
-- end
|
||||
--
|
||||
-- require("telescope.pickers")
|
||||
-- .new({}, {
|
||||
-- prompt_title = "Harpoon",
|
||||
-- finder = require("telescope.finders").new_table {
|
||||
-- results = file_paths,
|
||||
-- },
|
||||
-- previewer = conf.file_previewer {},
|
||||
-- sorter = conf.generic_sorter {},
|
||||
-- })
|
||||
-- :find()
|
||||
-- end
|
||||
--
|
||||
-- vim.keymap.set("n", "<C-g>", function()
|
||||
-- toggle_telescope(harpoon:list())
|
||||
-- end, { desc = "Open harpoon window" })
|
||||
-- end,
|
||||
}
|
||||
6
lua/angryluck/plugins/haskell-tools.lua
Normal file
6
lua/angryluck/plugins/haskell-tools.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
-- "mrcjkb/haskell-tools.nvim",
|
||||
-- version = "^3", -- Recommended
|
||||
-- lazy = false,
|
||||
-- ft = { "haskell", "stack", "lhaskell", "cabal", "cabalproject" },
|
||||
}
|
||||
78
lua/angryluck/plugins/init.lua
Normal file
78
lua/angryluck/plugins/init.lua
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
-- Own plugins, too small for own file
|
||||
-- Probably better to add one file for each
|
||||
return {
|
||||
"fladson/vim-kitty",
|
||||
|
||||
-- OWN PLUGINS
|
||||
-- Better scrolloff
|
||||
{
|
||||
"Aasim-A/scrollEOF.nvim",
|
||||
event = { "CursorMoved", "WinScrolled" },
|
||||
opts = {},
|
||||
},
|
||||
|
||||
{
|
||||
"renerocksai/telekasten.nvim",
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
},
|
||||
|
||||
-- install without yarn or npm
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown" },
|
||||
build = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
},
|
||||
|
||||
-- Better than mini.surround, imo
|
||||
-- Remember: y for "yadd".
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- "." repeats plugincommands
|
||||
"tpope/vim-repeat",
|
||||
|
||||
-- {
|
||||
-- "ggandor/leap.nvim",
|
||||
-- -- opts = {},
|
||||
-- config = function()
|
||||
-- require("leap").create_default_mappings()
|
||||
-- end,
|
||||
-- },
|
||||
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
keys = {
|
||||
-- stylua: ignore start
|
||||
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash", },
|
||||
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter", },
|
||||
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash", },
|
||||
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search", },
|
||||
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search", },
|
||||
-- stylua: ignore end
|
||||
},
|
||||
},
|
||||
|
||||
-- Edit files like nvim buffer
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("oil").setup()
|
||||
end,
|
||||
},
|
||||
}
|
||||
29
lua/angryluck/plugins/neorg.lua
Normal file
29
lua/angryluck/plugins/neorg.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
-- "nvim-neorg/neorg",
|
||||
-- dependencies = { "nvim-lua/plenary.nvim" },
|
||||
-- build = ":Neorg sync-parsers",
|
||||
-- -- tag = "*",
|
||||
-- lazy = true, -- enable lazy load
|
||||
-- ft = "norg", -- lazy load on file type
|
||||
-- cmd = "Neorg", -- lazy load on command
|
||||
-- config = function()
|
||||
-- require("neorg").setup {
|
||||
-- load = {
|
||||
-- ["core.defaults"] = {}, -- Loads default behaviour
|
||||
-- ["core.concealer"] = {}, -- Adds pretty icons to your documents
|
||||
-- ["core.dirman"] = { -- Manages Neorg workspaces
|
||||
-- config = {
|
||||
-- workspaces = {
|
||||
-- notes = "~/documents/notes",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- ["core.completion"] = {
|
||||
-- config = {
|
||||
-- engine = "nvim-cmp",
|
||||
-- }
|
||||
-- }
|
||||
-- },
|
||||
-- }
|
||||
-- end,
|
||||
}
|
||||
4
lua/angryluck/plugins/rasi.lua
Normal file
4
lua/angryluck/plugins/rasi.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
-- Syntax highlight for rofi config (config.rasi)
|
||||
"Fymyte/rasi.vim",
|
||||
}
|
||||
10
lua/angryluck/plugins/sideways.lua
Normal file
10
lua/angryluck/plugins/sideways.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
-- -- TREESITTER SHOULD HANDLE THIS!
|
||||
-- "AndrewRadev/sideways.vim",
|
||||
-- config = function()
|
||||
-- vim.keymap.set("n", "<leader>s<", ":SidewaysLeft<Cr>")
|
||||
-- vim.keymap.set("n", "<leader>s>", ":SidewaysRight<Cr>")
|
||||
-- vim.keymap.set("n", "<leader>sh", ":SidewaysJumpLeft<Cr>")
|
||||
-- vim.keymap.set("n", "<leader>sl", ":SidewaysJumpRight<Cr>")
|
||||
-- end,
|
||||
}
|
||||
83
lua/angryluck/plugins/vim-orgmode.lua
Normal file
83
lua/angryluck/plugins/vim-orgmode.lua
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
return {
|
||||
"nvim-orgmode/orgmode",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = true,
|
||||
config = function()
|
||||
-- Setup treesitter
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
ensure_installed = { "org" },
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"akinsho/org-bullets.nvim",
|
||||
config = function()
|
||||
require("org-bullets").setup()
|
||||
end,
|
||||
},
|
||||
-- "joaomsa/telescope-orgmode.nvim",
|
||||
-- "nvim-telescope/telescope.nvim",
|
||||
-- {
|
||||
-- "lukas-reineke/headlines.nvim",
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- config = function()
|
||||
-- vim.cmd [[highlight Headline1 guibg=#1e2718]]
|
||||
-- vim.cmd [[highlight Headline2 guibg=#21262d]]
|
||||
-- vim.cmd [[highlight CodeBlock guibg=#1c1c1c]]
|
||||
-- vim.cmd [[highlight Dash guibg=#D19A66 gui=bold]]
|
||||
--
|
||||
-- require("headlines").setup {
|
||||
-- org = {
|
||||
-- headline_highlights = { "Headline1", "Headline2" },
|
||||
-- },
|
||||
-- }
|
||||
-- end, -- or `opts = {}`
|
||||
-- },
|
||||
},
|
||||
-- ADD THIS BACK LATER - SOMETHING WRONG, SO DOESNT START
|
||||
-- event = 'VeryLazy',
|
||||
config = function()
|
||||
-- Load treesitter grammar for org
|
||||
-- require("orgmode").setup_ts_grammar()
|
||||
-- require("telescope").load_extension "orgmode"
|
||||
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "org",
|
||||
-- group = vim.api.nvim_create_augroup("orgmode_telescope_nvim", { clear = true }),
|
||||
-- callback = function()
|
||||
-- vim.keymap.set("n", "<leader>or", require("telescope").extensions.orgmode.refile_heading)
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
-- Setup orgmode
|
||||
require("orgmode").setup {
|
||||
org_agenda_files = { "~/documents/orgfiles/**/*", "~/gtd/**/*" },
|
||||
-- org_default_notes_file = "~/documents/orgfiles/refile.org",
|
||||
org_default_notes_file = "~/gtd/inbox.org",
|
||||
org_archive_location = "~/gtd/archive/%s_archive::",
|
||||
org_todo_keywords = {
|
||||
"NEXT(n)",
|
||||
"TODO(t)",
|
||||
"WAITING(w)",
|
||||
-- "SCHEDULED(s)",
|
||||
"|",
|
||||
"DONE(d)",
|
||||
"CANCELLED(c)",
|
||||
},
|
||||
-- org_hide_leading_stars = true,
|
||||
mappings = {
|
||||
capture = {
|
||||
org_capture_finalize = "<Leader>ow",
|
||||
},
|
||||
note = {
|
||||
org_note_finalize = "<Leader>ow",
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
14
lua/angryluck/plugins/vim-template.lua
Normal file
14
lua/angryluck/plugins/vim-template.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"aperezdc/vim-template",
|
||||
-- Change init to config, and then tell when to load
|
||||
-- config only works for lua modules that are "required" by nvim.
|
||||
init = function()
|
||||
vim.g.templates_directory = "~/documents/latex-templates/"
|
||||
vim.g.templates_no_builtin_templates = true
|
||||
vim.g.templates_global_name_prefix = "template:"
|
||||
vim.g.templates_name_prefix = "template:"
|
||||
vim.g.templates_no_autocmd = true
|
||||
-- vim.cmd("let g:templates_no_autocmd=1")
|
||||
end,
|
||||
-- cmd = "Template",
|
||||
}
|
||||
6
lua/angryluck/plugins/vimtex.lua
Normal file
6
lua/angryluck/plugins/vimtex.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"lervag/vimtex",
|
||||
config = function()
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue