-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
276 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
vim.g.mapleader = ' ' | ||
vim.g.maplocalleader = ' ' | ||
|
||
require("config.keymaps") | ||
require("config.options") | ||
require("config.lazy") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
{ | ||
"LuaSnip": { "branch": "master", "commit": "8d6c0a93dec34900577ba725e91c44b8d3ca1f45" }, | ||
"alpha-nvim": { "branch": "main", "commit": "87c204040e3f5d4c1c95067b35905d8f8a2f2545" }, | ||
"bufferline.nvim": { "branch": "main", "commit": "8b32447f1ba00f71ec2ebb413249d1d84228d9fb" }, | ||
"cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, | ||
"gitsigns.nvim": { "branch": "main", "commit": "7dfe4be94b4f84a9931098f0f0f618d055e50bd5" }, | ||
"gruvbox-material": { "branch": "master", "commit": "5fd0f0e4133d2416b0d69c26c87189fced9060ec" }, | ||
"lazy.nvim": { "branch": "main", "commit": "fe28f4b73e0df887ec20196a00a1eddd12a2cf5f" }, | ||
"lsp-zero.nvim": { "branch": "v2.x", "commit": "28a9c8f6cdf562d41171349e874afa3b7bc02097" }, | ||
"lualine.nvim": { "branch": "master", "commit": "84ffb80e452d95e2c46fa29a98ea11a240f7843e" }, | ||
"mason-lspconfig.nvim": { "branch": "main", "commit": "463e5e7441c17c0f9fba35b3016e7691a78983b9" }, | ||
"mason.nvim": { "branch": "main", "commit": "d76949e3b92a8a184bac683227c1024920fe763b" }, | ||
"mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" }, | ||
"neo-tree.nvim": { "branch": "v2.x", "commit": "7a6b0d43d70636edfec183fb49c02f725765da73" }, | ||
"nui.nvim": { "branch": "main", "commit": "ecd9def93891b9260b15b5fcef542eaabf4145c9" }, | ||
"nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" }, | ||
"nvim-lspconfig": { "branch": "master", "commit": "cf95480e876ef7699bf08a1d02aa0ae3f4d5f353" }, | ||
"nvim-treesitter": { "branch": "master", "commit": "57d1a5843742a180be9a3a1d1c652a7d22709691" }, | ||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "8673926519ea61069f9c1366d1ad1949316d250e" }, | ||
"nvim-web-devicons": { "branch": "master", "commit": "4ec26d67d419c12a4abaea02f1b6c57b40c08d7e" }, | ||
"plenary.nvim": { "branch": "master", "commit": "9ac3e9541bbabd9d73663d757e4fe48a675bb054" }, | ||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "580b6c48651cabb63455e97d7e131ed557b8c7e2" }, | ||
"telescope-project.nvim": { "branch": "master", "commit": "fa081e35ba7397e5147a51ece693aa3afda167fc" }, | ||
"telescope.nvim": { "branch": "master", "commit": "6258d50b09f9ae087317e392efe7c05a7323492d" }, | ||
"trouble.nvim": { "branch": "main", "commit": "d56bfc0c501ced4002a57cb60433362fb2ce9c4d" }, | ||
"vim-illuminate": { "branch": "master", "commit": "a2907275a6899c570d16e95b9db5fd921c167502" }, | ||
"which-key.nvim": { "branch": "main", "commit": "94cb020ff33a1e0e22fac1c41663d2c439741f17" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ require("lazy").setup({ | |
}, | ||
}, | ||
}) | ||
|
||
require("telescope").load_extension("fzf") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
return { | ||
"lewis6991/gitsigns.nvim", | ||
config = function() | ||
local icons = require("config.icons") | ||
require("gitsigns").setup { | ||
signs = { | ||
add = { | ||
hl = "GitSignsAdd", | ||
text = icons.ui.BoldLineLeft, | ||
numhl = "GitSignsAddNr", | ||
linehl = "GitSignsAddLn", | ||
}, | ||
change = { | ||
hl = "GitSignsChange", | ||
text = icons.ui.BoldLineLeft, | ||
numhl = "GitSignsChangeNr", | ||
linehl = "GitSignsChangeLn", | ||
}, | ||
delete = { | ||
hl = "GitSignsDelete", | ||
text = icons.ui.Triangle, | ||
numhl = "GitSignsDeleteNr", | ||
linehl = "GitSignsDeleteLn", | ||
}, | ||
topdelete = { | ||
hl = "GitSignsDelete", | ||
text = icons.ui.Triangle, | ||
numhl = "GitSignsDeleteNr", | ||
linehl = "GitSignsDeleteLn", | ||
}, | ||
changedelete = { | ||
hl = "GitSignsChange", | ||
text = icons.ui.BoldLineLeft, | ||
numhl = "GitSignsChangeNr", | ||
linehl = "GitSignsChangeLn", | ||
}, | ||
}, | ||
signcolumn = true, | ||
numhl = false, | ||
linehl = false, | ||
word_diff = false, | ||
watch_gitdir = { | ||
interval = 1000, | ||
follow_files = true, | ||
}, | ||
attach_to_untracked = true, | ||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` | ||
current_line_blame_opts = { | ||
virt_text = true, | ||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align' | ||
delay = 1000, | ||
ignore_whitespace = false, | ||
}, | ||
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>", | ||
sign_priority = 6, | ||
status_formatter = nil, -- Use default | ||
update_debounce = 200, | ||
max_file_length = 40000, | ||
preview_config = { | ||
-- Options passed to nvim_open_win | ||
border = "rounded", | ||
style = "minimal", | ||
relative = "cursor", | ||
row = 0, | ||
col = 1, | ||
}, | ||
yadm = { enable = false }, | ||
} | ||
end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,58 @@ | ||
return { | ||
'nvim-telescope/telescope.nvim', | ||
cmd = 'Telescope', | ||
version = false, | ||
dependencies = { | ||
'nvim-lua/plenary.nvim', | ||
{'nvim-telescope/telescope-fzf-native.nvim', build = 'make'} | ||
}, | ||
keys = { | ||
{ '<leader>f', '<cmd>Telescope find_files<CR>', desc = "Find Files" } | ||
}, | ||
opts = { | ||
config = function() | ||
require('telescope').setup { | ||
defaults = { | ||
file_ignore_patterns = { 'node_modules', 'package-lock.json' } | ||
}, | ||
theme = 'dropdown', | ||
initial_mode = 'insert', | ||
select_strategy = 'reset', | ||
sorting_strategy = nil, | ||
layout_strategy = nil, | ||
layout_config = {}, | ||
path_display = { "smart" }, | ||
winblend = 0, | ||
border = {}, | ||
borderchars = nil, | ||
color_devicons = true, | ||
set_env = { ["COLORTERM"] = "truecolor" }, | ||
pickers = { | ||
find_files = { | ||
hidden = true, | ||
}, | ||
live_grep = { | ||
--@usage don't include the filename in the search results | ||
only_sort_text = true, | ||
{ | ||
'nvim-telescope/telescope.nvim', | ||
cmd = 'Telescope', | ||
version = false, | ||
lazy = true, | ||
dependencies = { | ||
'nvim-lua/plenary.nvim', | ||
"nvim-tree/nvim-web-devicons", | ||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' } | ||
}, | ||
opts = { | ||
config = function() | ||
require('telescope').setup({ | ||
defaults = { | ||
file_ignore_patterns = { 'node_modules', 'package-lock.json' } | ||
}, | ||
grep_string = { | ||
only_sort_text = true, | ||
theme = 'dropdown', | ||
initial_mode = 'insert', | ||
select_strategy = 'ascending', | ||
sorting_strategy = nil, | ||
layout_strategy = nil, | ||
layout_config = {}, | ||
path_display = { "smart" }, | ||
winblend = 0, | ||
border = {}, | ||
borderchars = nil, | ||
color_devicons = true, | ||
set_env = { ["COLORTERM"] = "truecolor" }, | ||
pickers = { | ||
find_files = { | ||
hidden = true, | ||
}, | ||
live_grep = { | ||
--@usage don't include the filename in the search results | ||
only_sort_text = true, | ||
}, | ||
grep_string = { | ||
only_sort_text = true, | ||
}, | ||
}, | ||
}, | ||
extensions = { | ||
fzf = { | ||
fuzzy = true, -- false will only do exact matching | ||
override_generic_sorter = true, -- override the generic sorter | ||
override_file_sorter = true, -- override the file sorter | ||
case_mode = "smart_case", -- or "ignore_case" or "respect_case" | ||
extensions = { | ||
fzf = { | ||
fuzzy = true, -- false will only do exact matching | ||
override_generic_sorter = true, -- override the generic sorter | ||
override_file_sorter = true, -- override the file sorter | ||
case_mode = "smart_case", -- or "ignore_case" or "respect_case" | ||
}, | ||
}, | ||
}, | ||
} | ||
}) | ||
end | ||
}, | ||
config = function() | ||
local telescope = require('telescope') | ||
telescope.load_extension('fzf') | ||
end | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
return { | ||
"folke/trouble.nvim", | ||
cmd = { "TroubleToggle", "Trouble" }, | ||
opts = { use_diagnostic_signs = true } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
return { | ||
"RRethy/vim-illuminate", | ||
event = { "BufReadPost", "BufNewFile" }, | ||
opts = { delay = 200 }, | ||
config = function(_, opts) | ||
require("illuminate").configure(opts) | ||
|
||
local function map(key, dir, buffer) | ||
vim.keymap.set("n", key, function() | ||
require("illuminate")["goto_" .. dir .. "_reference"](false) | ||
end, { desc = dir:sub(1, 1):upper() .. dir:sub(2) .. " Reference", buffer = buffer }) | ||
end | ||
|
||
map("]]", "next") | ||
map("[[", "prev") | ||
|
||
vim.api.nvim_create_autocmd("FileType", { | ||
callback = function() | ||
local buffer = vim.api.nvim_get_current_buf() | ||
map("]]", "next", buffer) | ||
map("[[", "prev", buffer) | ||
end, | ||
}) | ||
end, | ||
keys = { | ||
{ "]]", desc = "Next Reference" }, | ||
{ "[[", desc = "Prev Reference" }, | ||
}, | ||
} |
Oops, something went wrong.