Update filenames to follow new convention.
This commit is contained in:
parent
ec1c3f5c39
commit
187e8a48cf
|
@ -1,4 +1,4 @@
|
||||||
export _gdconf_path="${HOME}/.config/linux/gnome.dconf"
|
export _gdconf_path="${HOME}/.config/linux/Gnome.dconf"
|
||||||
|
|
||||||
# Load Gnome settings.
|
# Load Gnome settings.
|
||||||
function dconf_load() {
|
function dconf_load() {
|
|
@ -1,24 +1,24 @@
|
||||||
require("key/leader")
|
require("key/Leader")
|
||||||
|
|
||||||
require("plugin/init")
|
require("plugin/Init")
|
||||||
|
|
||||||
require("config/autoread")
|
require("config/Autoread")
|
||||||
require("config/search")
|
require("config/Search")
|
||||||
require("config/tab")
|
require("config/Tab")
|
||||||
require("config/etc")
|
require("config/Etc")
|
||||||
|
|
||||||
require("key/filetree")
|
require("key/Filetree")
|
||||||
require("key/lsp")
|
require("key/Lsp")
|
||||||
require("key/whichkey")
|
require("key/Whichkey")
|
||||||
require("key/navigation")
|
require("key/Navigation")
|
||||||
require("key/comment")
|
require("key/Comment")
|
||||||
require("key/gitsigns")
|
require("key/Gitsigns")
|
||||||
require("key/trouble")
|
require("key/Trouble")
|
||||||
require("key/terminal")
|
require("key/Terminal")
|
||||||
require("key/autocomplete")
|
require("key/Autocomplete")
|
||||||
require("key/telescope")
|
require("key/Telescope")
|
||||||
require("key/common")
|
require("key/Common")
|
||||||
require("key/todo")
|
require("key/Todo")
|
||||||
require("key/fold")
|
require("key/Fold")
|
||||||
require("key/update")
|
require("key/Update")
|
||||||
require("key/macro")
|
require("key/Macro")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_input('<C-Space>', '<C-n>') -- autocomplete.
|
rekey_input('<C-Space>', '<C-n>') -- autocomplete.
|
||||||
rekey_normal('<C-Space>', '<cmd>lua vim.lsp.buf.code_action()<cr>') -- LSP autocomplete.
|
rekey_normal('<C-Space>', '<cmd>lua vim.lsp.buf.code_action()<cr>') -- LSP autocomplete.
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>.', '@:') -- repeat command.
|
rekey_normal('<Leader>.', '@:') -- repeat command.
|
||||||
rekey_visual('<Leader>.', '@:') -- repeat command.
|
rekey_visual('<Leader>.', '@:') -- repeat command.
|
|
@ -1,3 +1,3 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>1', '<cmd>NvimTreeToggle<cr>') -- toggle file tree.
|
rekey_normal('<Leader>1', '<cmd>NvimTreeToggle<cr>') -- toggle file tree.
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
remap_normal('<Leader>o', 'za') -- toggle fold.
|
remap_normal('<Leader>o', 'za') -- toggle fold.
|
||||||
remap_normal('<Leader>O', 'zM') -- fold everything.
|
remap_normal('<Leader>O', 'zM') -- fold everything.
|
|
@ -1,3 +1,3 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>g', '<cmd>Gitsigns toggle_current_line_blame<cr><cmd>Gitsigns toggle_word_diff<cr><cmd>Gitsigns toggle_linehl<cr>') -- toggle git inspection mode.
|
rekey_normal('<Leader>g', '<cmd>Gitsigns toggle_current_line_blame<cr><cmd>Gitsigns toggle_word_diff<cr><cmd>Gitsigns toggle_linehl<cr>') -- toggle git inspection mode.
|
|
@ -1,4 +1,4 @@
|
||||||
require("key/rekey")
|
require("key/Rekey")
|
||||||
|
|
||||||
leader = " "
|
leader = " "
|
||||||
|
|
1
.config/nvim/lua/key/Lsp.lua
Normal file
1
.config/nvim/lua/key/Lsp.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require('key/Rekey')
|
|
@ -1,4 +1,4 @@
|
||||||
require("key/rekey")
|
require("key/Rekey")
|
||||||
|
|
||||||
-- wraps.
|
-- wraps.
|
||||||
rekey_visual("mwx", "s<delete><backspace><esc>p") -- unwrap once (select only stuff inside).
|
rekey_visual("mwx", "s<delete><backspace><esc>p") -- unwrap once (select only stuff inside).
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
-- switch windows.
|
-- switch windows.
|
||||||
rekey_normal('<Leader>w', '<C-w>k')
|
rekey_normal('<Leader>w', '<C-w>k')
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>ff', '<cmd>lua require("telescope.builtin").find_files()<cr>')
|
rekey_normal('<Leader>ff', '<cmd>lua require("telescope.builtin").find_files()<cr>')
|
||||||
rekey_normal('<Leader>fg', '<cmd>lua require("telescope.builtin").live_grep()<cr>')
|
rekey_normal('<Leader>fg', '<cmd>lua require("telescope.builtin").live_grep()<cr>')
|
|
@ -1,4 +1,4 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>4', '<cmd>terminal<cr>')
|
rekey_normal('<Leader>4', '<cmd>terminal<cr>')
|
||||||
rekey_terminal('<Esc>', '<C-\\><C-n>')
|
rekey_terminal('<Esc>', '<C-\\><C-n>')
|
|
@ -1,3 +1,3 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>3', '<cmd>TroubleToggle todo<cr>')
|
rekey_normal('<Leader>3', '<cmd>TroubleToggle todo<cr>')
|
|
@ -1,3 +1,3 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>2', '<cmd>TroubleToggle document_diagnostics<cr>')
|
rekey_normal('<Leader>2', '<cmd>TroubleToggle document_diagnostics<cr>')
|
|
@ -1,3 +1,3 @@
|
||||||
require('key/rekey')
|
require('key/Rekey')
|
||||||
|
|
||||||
rekey_normal('<Leader>0', '<cmd>WhichKey<cr>')
|
rekey_normal('<Leader>0', '<cmd>WhichKey<cr>')
|
|
@ -1 +0,0 @@
|
||||||
require('key/rekey')
|
|
|
@ -59,26 +59,26 @@ return require("packer").startup(function(use)
|
||||||
local treesitter = true
|
local treesitter = true
|
||||||
|
|
||||||
-- plugin setup.
|
-- plugin setup.
|
||||||
require("plugin/mason")
|
require("plugin/Mason")
|
||||||
require("plugin/lsp/init")
|
require("plugin/lsp/Init")
|
||||||
require("plugin/filetree")
|
require("plugin/Filetree")
|
||||||
require("plugin/bufferline")
|
require("plugin/Bufferline")
|
||||||
require("plugin/lualine")
|
require("plugin/Lualine")
|
||||||
require("plugin/autoclose")
|
require("plugin/Autoclose")
|
||||||
require("plugin/gitsigns")
|
require("plugin/Gitsigns")
|
||||||
require("plugin/trouble")
|
require("plugin/Trouble")
|
||||||
require("plugin/tokyonight")
|
require("plugin/Tokyonight")
|
||||||
require("plugin/gruvbox")
|
require("plugin/Gruvbox")
|
||||||
require("plugin/closebuffers")
|
require("plugin/Closebuffers")
|
||||||
require("plugin/telescope")
|
require("plugin/Telescope")
|
||||||
require("plugin/todo")
|
require("plugin/Todo")
|
||||||
require("plugin/indent")
|
require("plugin/Indent")
|
||||||
require("plugin/align")
|
require("plugin/Align")
|
||||||
|
|
||||||
if available({"g++"}) then
|
if available({"g++"}) then
|
||||||
if treesitter then
|
if treesitter then
|
||||||
require("plugin/treesitter")
|
require("plugin/Treesitter")
|
||||||
require("plugin/fold")
|
require("plugin/Fold")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue