diff --git a/.config/lf/lfrc b/.config/lf/lfrc index da48e047..497d6c2f 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -6,6 +6,7 @@ set icons true set ignorecase true set previewer "~/.config/lf/preview" set cleaner "~/.config/lf/cleaner" +set scrolloff 8 # Custom Functions @@ -62,7 +63,6 @@ map '"' map d map c map p -map c $vscodium "$f" map au unarchive @@ -74,7 +74,7 @@ map open map $lf -remote "send $id select '$(sk)'" map rename map push :mkdir -map DD delete +map D delete map dd cut map mv moveto map cp copyto @@ -83,6 +83,8 @@ map mf push :mkfile map md push :mkdir map clear map bg setwallpaper +map c $vscodium "$f" +map e $nvim "$f" # Movement diff --git a/.config/nvim/lua/user/indentline.lua b/.config/nvim/lua/user/indentline.lua index 9b0b8c70..74b1f6d6 100644 --- a/.config/nvim/lua/user/indentline.lua +++ b/.config/nvim/lua/user/indentline.lua @@ -18,8 +18,8 @@ g.indent_blankline_filetype_exclude = { } g.indentLine_enabled = 1 -- g.indent_blankline_char = '│' -g.indent_blankline_char = "▏" --- g.indent_blankline_char = '▎' +-- g.indent_blankline_char = "▏" +g.indent_blankline_char = "▎" g.indent_blankline_show_trailing_blankline_indent = false g.indent_blankline_show_first_indent_level = true g.indent_blankline_use_treesitter = true @@ -49,25 +49,28 @@ g.indent_blankline_context_patterns = { -- HACK: work-around for https://github.com/lukas-reineke/indent-blankline.nvim/issues/59 vim.wo.colorcolumn = "99999" -cmd([[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]) +cmd([[highlight IndentBlanklineIndent1 guifg=#C678DD gui=nocombine]]) cmd([[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]) cmd([[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]) cmd([[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]) cmd([[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]) -cmd([[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]) +cmd([[highlight IndentBlanklineIndent6 guifg=#E06C75 gui=nocombine]]) opt.list = true opt.listchars:append("space:⋅") -- opt.listchars:append 'space:' opt.listchars:append("eol:↴") indent_blankline.setup({ - -- show_end_of_line = true, - -- space_char_blankline = ' ', + show_end_of_line = true, + space_char_blankline = " ", show_current_context = true, - -- show_current_context_start = true, - -- char_highlight_list = { - -- 'IndentBlanklineIndent1', - -- 'IndentBlanklineIndent2', - -- 'IndentBlanklineIndent3', - -- }, + show_current_context_start = true, + char_highlight_list = { + "IndentBlanklineIndent1", + "IndentBlanklineIndent2", + "IndentBlanklineIndent3", + "IndentBlanklineIndent4", + "IndentBlanklineIndent5", + "IndentBlanklineIndent6", + }, }) diff --git a/.config/nvim/lua/user/keymaps.lua b/.config/nvim/lua/user/keymaps.lua index e07336dd..1261e038 100644 --- a/.config/nvim/lua/user/keymaps.lua +++ b/.config/nvim/lua/user/keymaps.lua @@ -69,4 +69,4 @@ keymap("t", "", "l", term_opts) -- Shortcutting -- -- Substitute -keymap("n", "C-f", ":%s//", {}) +keymap("n", "S", ":%s//", {}) diff --git a/.config/nvim/lua/user/lsp/configs.lua b/.config/nvim/lua/user/lsp/configs.lua index 09850a67..6bf23738 100644 --- a/.config/nvim/lua/user/lsp/configs.lua +++ b/.config/nvim/lua/user/lsp/configs.lua @@ -5,7 +5,7 @@ end local lspconfig = require("lspconfig") -local servers = { "jsonls", "sumneko_lua", "pyright", "rust_analyzer" } +local servers = { "jsonls", "sumneko_lua", "pyright" } lsp_installer.setup({ ensure_installed = servers, diff --git a/.config/nvim/lua/user/lsp/handlers.lua b/.config/nvim/lua/user/lsp/handlers.lua index d1344f70..06777ff3 100644 --- a/.config/nvim/lua/user/lsp/handlers.lua +++ b/.config/nvim/lua/user/lsp/handlers.lua @@ -60,20 +60,20 @@ end local function lsp_keymaps(bufnr) local opts = { noremap = true, silent = true } - api.nvim_buf_set_keymap(bufnr, "n", "gD", "lua lsp.buf.declaration()", opts) - api.nvim_buf_set_keymap(bufnr, "n", "gd", "lua lsp.buf.definition()", opts) - api.nvim_buf_set_keymap(bufnr, "n", "K", "lua lsp.buf.hover()", opts) - api.nvim_buf_set_keymap(bufnr, "n", "gi", "lua lsp.buf.implementation()", opts) - api.nvim_buf_set_keymap(bufnr, "n", "", "lua lsp.buf.signature_help()", opts) - -- api.nvim_buf_set_keymap(bufnr, 'n', 'rn', 'lua lsp.buf.rename()', opts) - api.nvim_buf_set_keymap(bufnr, "n", "gr", "lua lsp.buf.references()", opts) - -- api.nvim_buf_set_keymap(bufnr, 'n', 'ca', 'lua lsp.buf.code_action()', opts) - -- api.nvim_buf_set_keymap(bufnr, 'n', 'f', 'lua vim.diagnostic.open_float()', opts) - api.nvim_buf_set_keymap(bufnr, "n", "[d", 'lua vim.diagnostic.goto_prev({ border = "rounded" })', opts) - api.nvim_buf_set_keymap(bufnr, "n", "gl", 'lua vim.diagnostic.open_float({ border = "rounded" })', opts) - api.nvim_buf_set_keymap(bufnr, "n", "]d", 'lua vim.diagnostic.goto_next({ border = "rounded" })', opts) - api.nvim_buf_set_keymap(bufnr, "n", "q", "lua vim.diagnostic.setloclist()", opts) - vim.cmd([[ command! Format execute 'lua lsp.buf.format{async=true}' ]]) + api.nvim_buf_set_keymap(bufnr, "n", "gD", "lua vim.lsp.buf.declaration()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "gd", "lua vim.lsp.buf.definition()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "K", "lua vim.lsp.buf.hover()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "gi", "lua vim.lsp.buf.implementation()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "", "lua vim.lsp.buf.signature_help()", opts) + -- api.nvim_buf_set_keymap(bufnr, "n", "rn", "lua vim.lsp.buf.rename()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "gr", "lua vim.lsp.buf.references()", opts) + -- api.nvim_buf_set_keymap(bufnr, "n", "ca", "lua vim.lsp.buf.code_action()", opts) + -- api.nvim_buf_set_keymap(bufnr, "n", "f", "lua vim.diagnostic.open_float()", opts) + api.nvim_buf_set_keymap(bufnr, "n", "]d", "lua vim.lsp.diagnostic.goto_next({ border = 'rounded' })", opts) + api.nvim_buf_set_keymap(bufnr, "n", "[d", "lua vim.lsp.diagnostic.goto_prev({ border = 'rounded' })", opts) + api.nvim_buf_set_keymap(bufnr, "n", "gl", "lua vim.diagnostic.open_float({ border = 'rounded' })", opts) + api.nvim_buf_set_keymap(bufnr, "n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) + vim.cmd([[ command! Format execute "lua vim.lsp.buf.formatting()" ]]) end M.on_attach = function(client, bufnr) diff --git a/.config/nvim/lua/user/lsp/settings/rust_analyzer.lua b/.config/nvim/lua/user/lsp/settings/rust_analyzer.lua deleted file mode 100644 index bb5a3860..00000000 --- a/.config/nvim/lua/user/lsp/settings/rust_analyzer.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - settings = { - ["rust_analyzer"] = { - cargo = { - loadOutDirsFromCheck = true, - }, - checkOnSave = { - command = "clippy", - }, - experimental = { - procAttrMacros = true, - }, - }, - }, -} diff --git a/.config/nvim/lua/user/telescope.lua b/.config/nvim/lua/user/telescope.lua index d80d7d7b..d1d5060c 100644 --- a/.config/nvim/lua/user/telescope.lua +++ b/.config/nvim/lua/user/telescope.lua @@ -99,7 +99,7 @@ telescope.setup({ media_files = { -- filetypes whitelist -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} - filetypes = { "png", "webp", "jpg", "jpeg" }, + filetypes = { "png", "webp", "jpg", "jpeg", "mp4", "pdf" }, find_cmd = "rg", -- find command (defaults to `fd`) }, }, diff --git a/.config/nvim/lua/user/whichkey.lua b/.config/nvim/lua/user/whichkey.lua index 34ef94ae..b5403b7e 100644 --- a/.config/nvim/lua/user/whichkey.lua +++ b/.config/nvim/lua/user/whichkey.lua @@ -93,7 +93,7 @@ local mappings = { "lua require('telescope.builtin').find_files({hidden=true}, require('telescope.themes').get_dropdown{previewer = false})", "Find files", }, - ["F"] = { "Telescope live_grep theme=ivy hidden=true", "Find Text" }, + ["F"] = { "Telescope live_grep theme=ivy", "Find Text" }, ["P"] = { "lua require('telescope').extensions.projects.projects()", "Projects" }, p = { @@ -131,15 +131,15 @@ local mappings = { l = { name = "LSP", a = { "lua vim.lsp.buf.code_action()", "Code Action" }, - d = { - "Telescope lsp_document_diagnostics", - "Document Diagnostics", - }, + -- d = { + -- "Telescope lsp_document_diagnostics", + -- "Document Diagnostics", + -- }, w = { - "Telescope lsp_workspace_diagnostics", + "Telescope diagnostics", "Workspace Diagnostics", }, - f = { "lua vim.lsp.buf.format{async=true}", "Format" }, + f = { "lua vim.lsp.buf.formatting()", "Format" }, i = { "LspInfo", "Info" }, I = { "LspInstallInfo", "Installer Info" }, j = { diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 9721e9b4..be4726b0 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -33,7 +33,8 @@ alias \ g="git" \ ga="git add" \ gc="git commit" \ - gp="git push" \ + gP="git push" \ + gp="git pull" \ e="$EDITOR" \ v="$EDITOR" \ battery="acpi" \