Skip to content

Commit cc47657

Browse files
committed
Add some graphiti
1 parent 086a710 commit cc47657

18 files changed

+233
-16
lines changed

after/plugin/floating_terminal.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: floating_terminal.lua
10+
-- Description: Remaps for toggling on/off floating terminal
11+
-- Author: Josip Keresman
12+
113
vim.keymap.set("n", "<leader>ot", "<cmd>FloatingTerminal<cr>")
214
vim.keymap.set("t", "<leader>ot", "<cmd>FloatingTerminal<cr>")
315

after/plugin/fugative.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: fugative.lua
10+
-- Description: Git related stuff, read Pro Git book for more info
11+
-- Author: Josip Keresman
12+
13+
114
vim.keymap.set("n", "<leader>g", "<cmd>vs<CR><cmd>0Git<CR>")
215
vim.keymap.set("n", "<leader>gb", "<cmd>Git blame<CR>")
316
vim.keymap.set("n", "<leader>gl", "<cmd>vs<CR><cmd>0Git log %<CR>")

after/plugin/gitsigns.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: gitsigns.lua
10+
-- Description: More git related stuff, like preview preview_hunk, stage_hunk...
11+
-- Author: Josip Keresman
12+
113
require("gitsigns").setup({
214
signs = {
315
add = { text = "" },

after/plugin/harpoon.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: harpoon.lua
10+
-- Description: With this you can switch between files that use most often really quick, someting like intellijs or visual studios shift+tab
11+
-- Author: Josip Keresman
12+
113
local mark = require("harpoon.mark")
214
local ui = require("harpoon.ui")
315
local tmux = require("harpoon.tmux")

after/plugin/lsp.lua

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: lsp.lua
10+
-- Description: LSP specific stuff
11+
-- Author: Josip Keresman
12+
113
local lsp_zero = require("lsp-zero")
214

315
lsp_zero.on_attach(function(bufnr)
@@ -8,13 +20,13 @@ lsp_zero.on_attach(function(bufnr)
820

921
local opts = { noremap=true, silent=true, buffer=bufnr }
1022

11-
vim.api.nvim_buf_set_keymap(bufnr, "n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts)
12-
vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
13-
vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<Cmd>lua vim.lsp.buf.references()<CR>", opts)
14-
vim.api.nvim_buf_set_keymap(bufnr, "n", "gD", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts)
15-
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
16-
vim.api.nvim_buf_set_keymap(bufnr, "n", "gi", "<Cmd>lua vim.lsp.buf.implementation()<CR>", opts)
17-
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>rn", "<Cmd>lua vim.lsp.buf.rename()<CR>", opts)
23+
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
24+
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
25+
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
26+
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
27+
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, opts)
28+
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts)
29+
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
1830
end)
1931

2032
require("mason").setup({})

after/plugin/lualine.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: lualine.lua
10+
-- Description: This adds really cool line and that's it
11+
-- Author: Josip Keresman
12+
113
require("lualine").setup({
214
options = {
315
icons_enabled = true,

after/plugin/oil.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: oil.lua
10+
-- Description: OIL is really cool and simple file manager
11+
-- Author: Josip Keresman
12+
113
require("oil").setup()
214

315
vim.keymap.set("n", "<leader>e", "<CMD>Oil<CR>", { desc = "Open parent directory" })

after/plugin/telescope.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: telescope.lua
10+
-- Description: With this you serch for stuff in your project
11+
-- Author: Josip Keresman
12+
113
local builtin = require("telescope.builtin")
214

315
vim.keymap.set("n", "<leader>ff", builtin.find_files, {})

after/plugin/tmux-switch.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: tmux-switch.lua
10+
-- Description: With this you can switch between tmux sessions in a really cool way
11+
-- Author: Josip Keresman
12+
113
require("tmux-switch").setup()
214

315
vim.keymap.set("n", "<C-f>", "<cmd>TmuxSwitch<CR>")

after/plugin/treesiter.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: treesitter.lua
10+
-- Description: treesitte, really cool stuff, mostly for syntax highlights
11+
-- Author: Josip Keresman
12+
113
require("nvim-treesitter.configs").setup({
214
ensure_installed = { "java", "rust", "cpp", "c", "lua", "vim", "vimdoc", "query" },
315

after/plugin/trouble.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: trouble.lua
10+
-- Description: Naviagte to LSP diagnostics in reallt cool way
11+
-- Author: Josip Keresman
12+
113
require("trouble").setup({})
214

315
vim.keymap.set("n", "<leader>tt", "<cmd>Trouble diagnostics toggle<CR>")

lua/jk/colorscheme.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: colorscheme.lua
10+
-- Description: really ugly colorscheme
11+
-- Authorn: Josip Keresman
12+
113
vim.cmd("colorscheme dontuse")

lua/jk/init.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: init.lua
10+
-- Description: Initialize all modules, colorcsheme, remaps, set
11+
-- Author: Josip Keresman
12+
113
require("jk.colorscheme")
214
require("jk.set")
315
require("jk.remaps")

lua/jk/packer.lua

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: packer.lua
10+
-- Description: when you wan't to add new plugin you start here
11+
-- Author: Josip Keresman
12+
13+
114
vim.cmd([[packadd packer.nvim]])
215

316
return require("packer").startup(function(use)
@@ -58,13 +71,6 @@ return require("packer").startup(function(use)
5871

5972
use("ThePrimeagen/harpoon")
6073

61-
use({
62-
"rcarriga/nvim-notify",
63-
config = function()
64-
require("notify").setup({
65-
stages = "fade_in_slide_out",
66-
})
67-
vim.notify = require("notify")
68-
end,
69-
})
74+
-- use({ "rcarriga/nvim-notify", config = function() require("notify").setup({ stages = "fade_in_slide_out", }) vim.notify = require("notify") end, })
75+
7076
end)

lua/jk/remaps.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: remaps.lua
10+
-- Description: Some weird remaps that have sense only to me
11+
-- Author: Josip Keresman
12+
13+
-- leader key
114
vim.g.mapleader = ","
215

16+
-- random general stuff
317
vim.keymap.set("n", "<leader>e", vim.cmd.Explore)
418
vim.keymap.set("n", "<leader>b", vim.cmd.bprevious)
519
vim.keymap.set("n", "<leader>v", vim.cmd.vs)
620
vim.keymap.set("n", "<leader>s", vim.cmd.so)
721

22+
-- more random general stuff
823
vim.keymap.set("n", "<leader>ss", "<cmd>set spell")
924
vim.keymap.set("n", "<leader>sns", "<cmd>set nospell")
1025
vim.keymap.set("n", "<leader>srn", "<cmd>set relativenumber")
1126
vim.keymap.set("n", "<leader>snrn", "<cmd>set relativenumber")
1227
vim.keymap.set("n", "<leader>sn", "<cmd>set number")
1328
vim.keymap.set("n", "<leader>snn", "<cmd>set nonumber")
1429

30+
-- split navigation nonsense
1531
vim.keymap.set("n", "<c-k>", "<cmd>wincmd k<CR>")
1632
vim.keymap.set("n", "<c-j>", "<cmd>wincmd j<CR>")
1733
vim.keymap.set("n", "<c-h>", "<cmd>wincmd h<CR>")

lua/jk/set.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
--
2+
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
3+
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
4+
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
5+
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
6+
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
7+
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
8+
--
9+
-- File: set.lua
10+
-- Description: Setting some general stuff the way I wan't it
11+
-- Author: Josip Keresman
12+
13+
-- pretty self explanatory
14+
-- For more info, enter help in command mode: example: :help relativenumber'
15+
116
vim.g.mapleader = ","
217

318
vim.opt.guicursor = ""

0 commit comments

Comments
 (0)