Something went wrong. Try again.
My personal dotfiles
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950vim.g.floaterm_autoclose = 1local function nnoremap(shortcut, command, desc) vim.keymap.set("n", shortcut, command, { noremap = true, silent = true, desc = desc })endlocal function tnoremap(shortcut, command) vim.keymap.set("t", shortcut, command, { noremap = true, silent = true })endnnoremap("<leader>w", ":write!<cr>")nnoremap("Q", "@q")nnoremap("<leader>vp", ":Telescope find_files search_dirs=$HOME/.config/nvim/<cr>")nnoremap("<leader>vn", function() local new_file = vim.fn.input(":new $HOME/.config/nvim/") vim.cmd("new $HOME/.config/nvim/" .. new_file)end)
nnoremap("<enter>", ":nohlsearch<cr>:echo<cr>", "Clear highlights and the cmdline")
-- terminalnnoremap("<leader>T", ":split<cr>:terminal<cr>i")
-- Movementtnoremap("<M-h>", "<c-\\><c-n><c-w>h")tnoremap("<M-j>", "<c-\\><c-n><c-w>j")tnoremap("<M-k>", "<c-\\><c-n><c-w>k")tnoremap("<M-l>", "<c-\\><c-n><c-w>l")
-- Make movement and mode changes remove highlightsnnoremap("<M-h>", "<c-w>h")nnoremap("<M-j>", "<c-w>j")nnoremap("<M-k>", "<c-w>k")nnoremap("<M-l>", "<c-w>l")
-- Move tabsnnoremap("<left>", "gT")nnoremap("<right>", "gt")
vim.cmd([[hi link helpCommand Type]])
vim.opt_global.runtimepath:append("~/workspace/nvim/crates")
-- Various lsp thingsrequire 'lsp_test'-- Toggle inlay hintsvim.keymap.set("n", "<leader>i", function() vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled()) end)
function R(name) package.loaded[name] = nil return require(name)end